Documentation ¶
Overview ¶
Package sources provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
Index ¶
- Constants
- Variables
- func BuildQuery(keysAndValues ...string) func(ctx context.Context, req *stdhttp.Request) error
- func NewBulkCreateRequest(server string, body BulkCreateJSONRequestBody) (*http.Request, error)
- func NewBulkCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCheckAvailabilitySourceRequest(server string, id ID) (*http.Request, error)
- func NewCreateApplicationRequest(server string, body CreateApplicationJSONRequestBody) (*http.Request, error)
- func NewCreateApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSourceRequest(server string, body CreateSourceJSONRequestBody) (*http.Request, error)
- func NewCreateSourceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteApplicationRequest(server string, id ID) (*http.Request, error)
- func NewDeleteSourceRequest(server string, id ID) (*http.Request, error)
- func NewGetSourcesRhcConnectionRequest(server string, id ID, params *GetSourcesRhcConnectionParams) (*http.Request, error)
- func NewListApplicationAuthenticationsRequest(server string, id ID, params *ListApplicationAuthenticationsParams) (*http.Request, error)
- func NewListApplicationTypeAppMetaDataRequest(server string, id ID, params *ListApplicationTypeAppMetaDataParams) (*http.Request, error)
- func NewListApplicationTypeSourcesRequest(server string, id ID, params *ListApplicationTypeSourcesParams) (*http.Request, error)
- func NewListApplicationTypesRequest(server string, params *ListApplicationTypesParams) (*http.Request, error)
- func NewListApplicationsRequest(server string, params *ListApplicationsParams) (*http.Request, error)
- func NewListSourceApplicationTypesRequest(server string, id ID, params *ListSourceApplicationTypesParams) (*http.Request, error)
- func NewListSourceApplicationsRequest(server string, id ID, params *ListSourceApplicationsParams) (*http.Request, error)
- func NewListSourceAuthenticationsRequest(server string, id ID, params *ListSourceAuthenticationsParams) (*http.Request, error)
- func NewListSourceEndpointsRequest(server string, id ID, params *ListSourceEndpointsParams) (*http.Request, error)
- func NewListSourceTypeSourcesRequest(server string, id ID, params *ListSourceTypeSourcesParams) (*http.Request, error)
- func NewListSourceTypesRequest(server string, params *ListSourceTypesParams) (*http.Request, error)
- func NewListSourcesRequest(server string, params *ListSourcesParams) (*http.Request, error)
- func NewPauseApplicationRequest(server string, id ID) (*http.Request, error)
- func NewPauseSourceRequest(server string, id ID) (*http.Request, error)
- func NewShowApplicationRequest(server string, id ID) (*http.Request, error)
- func NewShowApplicationTypeRequest(server string, id ID) (*http.Request, error)
- func NewShowSourceRequest(server string, id ID) (*http.Request, error)
- func NewShowSourceTypeRequest(server string, id ID) (*http.Request, error)
- func NewSourcesClientWithUrl(ctx context.Context, url string) (clients.Sources, error)
- func NewUnpauseApplicationRequest(server string, id ID) (*http.Request, error)
- func NewUnpauseSourceRequest(server string, id ID) (*http.Request, error)
- func NewUpdateApplicationRequest(server string, id ID, body UpdateApplicationJSONRequestBody) (*http.Request, error)
- func NewUpdateApplicationRequestWithBody(server string, id ID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSourceRequest(server string, id ID, body UpdateSourceJSONRequestBody) (*http.Request, error)
- func NewUpdateSourceRequestWithBody(server string, id ID, contentType string, body io.Reader) (*http.Request, error)
- type AppMetaData
- type AppMetaDataCollection
- type Application
- type ApplicationAvailabilityStatus
- type ApplicationCreate
- type ApplicationType
- type ApplicationTypesCollection
- type ApplicationUpdate
- type ApplicationUpdateAvailabilityStatus
- type ApplicationsCollection
- type AuthenticationRead
- type AuthenticationReadResourceType
- type AuthenticationsCollection
- type BadRequest
- type BulkCreateJSONRequestBody
- type BulkCreatePayload
- type BulkCreatePayloadAuthenticationsResourceType
- type BulkCreatePayloadSourcesAppCreationWorkflow
- type BulkCreatePayloadSourcesSourceTypeName
- type BulkCreateResponse
- type CheckAvailabilitySourceResponse
- type Client
- func (c *Client) BulkCreate(ctx context.Context, body BulkCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BulkCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CheckAvailabilitySource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateApplicationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSource(ctx context.Context, body CreateSourceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSourceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSourcesRhcConnection(ctx context.Context, id ID, params *GetSourcesRhcConnectionParams, ...) (*http.Response, error)
- func (c *Client) ListApplicationAuthentications(ctx context.Context, id ID, params *ListApplicationAuthenticationsParams, ...) (*http.Response, error)
- func (c *Client) ListApplicationTypeAppMetaData(ctx context.Context, id ID, params *ListApplicationTypeAppMetaDataParams, ...) (*http.Response, error)
- func (c *Client) ListApplicationTypeSources(ctx context.Context, id ID, params *ListApplicationTypeSourcesParams, ...) (*http.Response, error)
- func (c *Client) ListApplicationTypes(ctx context.Context, params *ListApplicationTypesParams, ...) (*http.Response, error)
- func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsParams, ...) (*http.Response, error)
- func (c *Client) ListSourceApplicationTypes(ctx context.Context, id ID, params *ListSourceApplicationTypesParams, ...) (*http.Response, error)
- func (c *Client) ListSourceApplications(ctx context.Context, id ID, params *ListSourceApplicationsParams, ...) (*http.Response, error)
- func (c *Client) ListSourceAuthentications(ctx context.Context, id ID, params *ListSourceAuthenticationsParams, ...) (*http.Response, error)
- func (c *Client) ListSourceEndpoints(ctx context.Context, id ID, params *ListSourceEndpointsParams, ...) (*http.Response, error)
- func (c *Client) ListSourceTypeSources(ctx context.Context, id ID, params *ListSourceTypeSourcesParams, ...) (*http.Response, error)
- func (c *Client) ListSourceTypes(ctx context.Context, params *ListSourceTypesParams, ...) (*http.Response, error)
- func (c *Client) ListSources(ctx context.Context, params *ListSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PauseApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PauseSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ShowApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ShowApplicationType(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ShowSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ShowSourceType(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnpauseApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnpauseSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateApplication(ctx context.Context, id ID, body UpdateApplicationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateApplicationWithBody(ctx context.Context, id ID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSource(ctx context.Context, id ID, body UpdateSourceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSourceWithBody(ctx context.Context, id ID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) BulkCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BulkCreateResponse, error)
- func (c *ClientWithResponses) BulkCreateWithResponse(ctx context.Context, body BulkCreateJSONRequestBody, ...) (*BulkCreateResponse, error)
- func (c *ClientWithResponses) CheckAvailabilitySourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*CheckAvailabilitySourceResponse, error)
- func (c *ClientWithResponses) CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateApplicationResponse, error)
- func (c *ClientWithResponses) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, ...) (*CreateApplicationResponse, error)
- func (c *ClientWithResponses) CreateSourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSourceResponse, error)
- func (c *ClientWithResponses) CreateSourceWithResponse(ctx context.Context, body CreateSourceJSONRequestBody, ...) (*CreateSourceResponse, error)
- func (c *ClientWithResponses) DeleteApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*DeleteApplicationResponse, error)
- func (c *ClientWithResponses) DeleteSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*DeleteSourceResponse, error)
- func (c *ClientWithResponses) GetSourcesRhcConnectionWithResponse(ctx context.Context, id ID, params *GetSourcesRhcConnectionParams, ...) (*GetSourcesRhcConnectionResponse, error)
- func (c *ClientWithResponses) ListApplicationAuthenticationsWithResponse(ctx context.Context, id ID, params *ListApplicationAuthenticationsParams, ...) (*ListApplicationAuthenticationsResponse, error)
- func (c *ClientWithResponses) ListApplicationTypeAppMetaDataWithResponse(ctx context.Context, id ID, params *ListApplicationTypeAppMetaDataParams, ...) (*ListApplicationTypeAppMetaDataResponse, error)
- func (c *ClientWithResponses) ListApplicationTypeSourcesWithResponse(ctx context.Context, id ID, params *ListApplicationTypeSourcesParams, ...) (*ListApplicationTypeSourcesResponse, error)
- func (c *ClientWithResponses) ListApplicationTypesWithResponse(ctx context.Context, params *ListApplicationTypesParams, ...) (*ListApplicationTypesResponse, error)
- func (c *ClientWithResponses) ListApplicationsWithResponse(ctx context.Context, params *ListApplicationsParams, ...) (*ListApplicationsResponse, error)
- func (c *ClientWithResponses) ListSourceApplicationTypesWithResponse(ctx context.Context, id ID, params *ListSourceApplicationTypesParams, ...) (*ListSourceApplicationTypesResponse, error)
- func (c *ClientWithResponses) ListSourceApplicationsWithResponse(ctx context.Context, id ID, params *ListSourceApplicationsParams, ...) (*ListSourceApplicationsResponse, error)
- func (c *ClientWithResponses) ListSourceAuthenticationsWithResponse(ctx context.Context, id ID, params *ListSourceAuthenticationsParams, ...) (*ListSourceAuthenticationsResponse, error)
- func (c *ClientWithResponses) ListSourceEndpointsWithResponse(ctx context.Context, id ID, params *ListSourceEndpointsParams, ...) (*ListSourceEndpointsResponse, error)
- func (c *ClientWithResponses) ListSourceTypeSourcesWithResponse(ctx context.Context, id ID, params *ListSourceTypeSourcesParams, ...) (*ListSourceTypeSourcesResponse, error)
- func (c *ClientWithResponses) ListSourceTypesWithResponse(ctx context.Context, params *ListSourceTypesParams, ...) (*ListSourceTypesResponse, error)
- func (c *ClientWithResponses) ListSourcesWithResponse(ctx context.Context, params *ListSourcesParams, reqEditors ...RequestEditorFn) (*ListSourcesResponse, error)
- func (c *ClientWithResponses) PauseApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*PauseApplicationResponse, error)
- func (c *ClientWithResponses) PauseSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*PauseSourceResponse, error)
- func (c *ClientWithResponses) ShowApplicationTypeWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowApplicationTypeResponse, error)
- func (c *ClientWithResponses) ShowApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowApplicationResponse, error)
- func (c *ClientWithResponses) ShowSourceTypeWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowSourceTypeResponse, error)
- func (c *ClientWithResponses) ShowSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowSourceResponse, error)
- func (c *ClientWithResponses) UnpauseApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*UnpauseApplicationResponse, error)
- func (c *ClientWithResponses) UnpauseSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*UnpauseSourceResponse, error)
- func (c *ClientWithResponses) UpdateApplicationWithBodyWithResponse(ctx context.Context, id ID, contentType string, body io.Reader, ...) (*UpdateApplicationResponse, error)
- func (c *ClientWithResponses) UpdateApplicationWithResponse(ctx context.Context, id ID, body UpdateApplicationJSONRequestBody, ...) (*UpdateApplicationResponse, error)
- func (c *ClientWithResponses) UpdateSourceWithBodyWithResponse(ctx context.Context, id ID, contentType string, body io.Reader, ...) (*UpdateSourceResponse, error)
- func (c *ClientWithResponses) UpdateSourceWithResponse(ctx context.Context, id ID, body UpdateSourceJSONRequestBody, ...) (*UpdateSourceResponse, error)
- type ClientWithResponsesInterface
- type CollectionLinks
- type CollectionMetadata
- type CreateApplicationJSONRequestBody
- type CreateApplicationResponse
- type CreateSourceJSONRequestBody
- type CreateSourceResponse
- type DeleteApplicationResponse
- type DeleteSourceResponse
- type Endpoint
- type EndpointAvailabilityStatus
- type EndpointRead
- type EndpointReadAvailabilityStatus
- type EndpointsCollection
- type ErrorBadRequest
- type ErrorNotFound
- type GetSourcesRhcConnectionParams
- type GetSourcesRhcConnectionResponse
- type HttpRequestDoer
- type ID
- type IDW
- type ListApplicationAuthenticationsParams
- type ListApplicationAuthenticationsResponse
- type ListApplicationTypeAppMetaDataParams
- type ListApplicationTypeAppMetaDataResponse
- type ListApplicationTypeSourcesParams
- type ListApplicationTypeSourcesResponse
- type ListApplicationTypesParams
- type ListApplicationTypesResponse
- type ListApplicationsParams
- type ListApplicationsResponse
- type ListSourceApplicationTypesParams
- type ListSourceApplicationTypesResponse
- type ListSourceApplicationsParams
- type ListSourceApplicationsResponse
- type ListSourceAuthenticationsParams
- type ListSourceAuthenticationsResponse
- type ListSourceEndpointsParams
- type ListSourceEndpointsResponse
- type ListSourceTypeSourcesParams
- type ListSourceTypeSourcesResponse
- type ListSourceTypesParams
- type ListSourceTypesResponse
- type ListSourcesParams
- type ListSourcesResponse
- type NotFound
- type PauseApplicationResponse
- type PauseSourceResponse
- type QueryFilter
- type QueryLimit
- type QueryOffset
- type QuerySortBy
- type RequestEditorFn
- type RhcConnectionCollection
- type RhcConnectionRead
- type RhcConnectionReadAvailabilityStatus
- type ShowApplicationResponse
- type ShowApplicationTypeResponse
- type ShowSourceResponse
- type ShowSourceTypeResponse
- type Source
- type SourceAppCreationWorkflow
- type SourceAvailabilityStatus
- type SourceCreate
- type SourceCreateAppCreationWorkflow
- type SourceCreateAvailabilityStatus
- type SourceEdit
- type SourceEditAvailabilityStatus
- type SourceType
- type SourceTypesCollection
- type SourcesCollection
- type UnpauseApplicationResponse
- type UnpauseSourceResponse
- type UpdateApplicationJSONRequestBody
- type UpdateApplicationResponse
- type UpdateSourceJSONRequestBody
- type UpdateSourceResponse
Constants ¶
const ( Basic_authScopes = "basic_auth.Scopes" X_rh_identityScopes = "x_rh_identity.Scopes" X_rh_sources_account_numberScopes = "x_rh_sources_account_number.Scopes" X_rh_sources_org_idScopes = "x_rh_sources_org_id.Scopes" )
Variables ¶
var ErrCacheMiss = errors.New("source constants requested, before populating")
Functions ¶
func BuildQuery ¶
func NewBulkCreateRequest ¶
func NewBulkCreateRequest(server string, body BulkCreateJSONRequestBody) (*http.Request, error)
NewBulkCreateRequest calls the generic BulkCreate builder with application/json body
func NewBulkCreateRequestWithBody ¶
func NewBulkCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBulkCreateRequestWithBody generates requests for BulkCreate with any type of body
func NewCheckAvailabilitySourceRequest ¶
NewCheckAvailabilitySourceRequest generates requests for CheckAvailabilitySource
func NewCreateApplicationRequest ¶
func NewCreateApplicationRequest(server string, body CreateApplicationJSONRequestBody) (*http.Request, error)
NewCreateApplicationRequest calls the generic CreateApplication builder with application/json body
func NewCreateApplicationRequestWithBody ¶
func NewCreateApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateApplicationRequestWithBody generates requests for CreateApplication with any type of body
func NewCreateSourceRequest ¶
func NewCreateSourceRequest(server string, body CreateSourceJSONRequestBody) (*http.Request, error)
NewCreateSourceRequest calls the generic CreateSource builder with application/json body
func NewCreateSourceRequestWithBody ¶
func NewCreateSourceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSourceRequestWithBody generates requests for CreateSource with any type of body
func NewDeleteApplicationRequest ¶
NewDeleteApplicationRequest generates requests for DeleteApplication
func NewDeleteSourceRequest ¶
NewDeleteSourceRequest generates requests for DeleteSource
func NewGetSourcesRhcConnectionRequest ¶
func NewGetSourcesRhcConnectionRequest(server string, id ID, params *GetSourcesRhcConnectionParams) (*http.Request, error)
NewGetSourcesRhcConnectionRequest generates requests for GetSourcesRhcConnection
func NewListApplicationAuthenticationsRequest ¶
func NewListApplicationAuthenticationsRequest(server string, id ID, params *ListApplicationAuthenticationsParams) (*http.Request, error)
NewListApplicationAuthenticationsRequest generates requests for ListApplicationAuthentications
func NewListApplicationTypeAppMetaDataRequest ¶
func NewListApplicationTypeAppMetaDataRequest(server string, id ID, params *ListApplicationTypeAppMetaDataParams) (*http.Request, error)
NewListApplicationTypeAppMetaDataRequest generates requests for ListApplicationTypeAppMetaData
func NewListApplicationTypeSourcesRequest ¶
func NewListApplicationTypeSourcesRequest(server string, id ID, params *ListApplicationTypeSourcesParams) (*http.Request, error)
NewListApplicationTypeSourcesRequest generates requests for ListApplicationTypeSources
func NewListApplicationTypesRequest ¶
func NewListApplicationTypesRequest(server string, params *ListApplicationTypesParams) (*http.Request, error)
NewListApplicationTypesRequest generates requests for ListApplicationTypes
func NewListApplicationsRequest ¶
func NewListApplicationsRequest(server string, params *ListApplicationsParams) (*http.Request, error)
NewListApplicationsRequest generates requests for ListApplications
func NewListSourceApplicationTypesRequest ¶
func NewListSourceApplicationTypesRequest(server string, id ID, params *ListSourceApplicationTypesParams) (*http.Request, error)
NewListSourceApplicationTypesRequest generates requests for ListSourceApplicationTypes
func NewListSourceApplicationsRequest ¶
func NewListSourceApplicationsRequest(server string, id ID, params *ListSourceApplicationsParams) (*http.Request, error)
NewListSourceApplicationsRequest generates requests for ListSourceApplications
func NewListSourceAuthenticationsRequest ¶
func NewListSourceAuthenticationsRequest(server string, id ID, params *ListSourceAuthenticationsParams) (*http.Request, error)
NewListSourceAuthenticationsRequest generates requests for ListSourceAuthentications
func NewListSourceEndpointsRequest ¶
func NewListSourceEndpointsRequest(server string, id ID, params *ListSourceEndpointsParams) (*http.Request, error)
NewListSourceEndpointsRequest generates requests for ListSourceEndpoints
func NewListSourceTypeSourcesRequest ¶
func NewListSourceTypeSourcesRequest(server string, id ID, params *ListSourceTypeSourcesParams) (*http.Request, error)
NewListSourceTypeSourcesRequest generates requests for ListSourceTypeSources
func NewListSourceTypesRequest ¶
func NewListSourceTypesRequest(server string, params *ListSourceTypesParams) (*http.Request, error)
NewListSourceTypesRequest generates requests for ListSourceTypes
func NewListSourcesRequest ¶
func NewListSourcesRequest(server string, params *ListSourcesParams) (*http.Request, error)
NewListSourcesRequest generates requests for ListSources
func NewPauseApplicationRequest ¶
NewPauseApplicationRequest generates requests for PauseApplication
func NewPauseSourceRequest ¶
NewPauseSourceRequest generates requests for PauseSource
func NewShowApplicationRequest ¶
NewShowApplicationRequest generates requests for ShowApplication
func NewShowApplicationTypeRequest ¶
NewShowApplicationTypeRequest generates requests for ShowApplicationType
func NewShowSourceRequest ¶
NewShowSourceRequest generates requests for ShowSource
func NewShowSourceTypeRequest ¶
NewShowSourceTypeRequest generates requests for ShowSourceType
func NewSourcesClientWithUrl ¶
NewSourcesClientWithUrl allows customization of the URL for the underlying client. It is meant for testing only, for production please use clients.GetSourcesClient.
func NewUnpauseApplicationRequest ¶
NewUnpauseApplicationRequest generates requests for UnpauseApplication
func NewUnpauseSourceRequest ¶
NewUnpauseSourceRequest generates requests for UnpauseSource
func NewUpdateApplicationRequest ¶
func NewUpdateApplicationRequest(server string, id ID, body UpdateApplicationJSONRequestBody) (*http.Request, error)
NewUpdateApplicationRequest calls the generic UpdateApplication builder with application/json body
func NewUpdateApplicationRequestWithBody ¶
func NewUpdateApplicationRequestWithBody(server string, id ID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateApplicationRequestWithBody generates requests for UpdateApplication with any type of body
func NewUpdateSourceRequest ¶
func NewUpdateSourceRequest(server string, id ID, body UpdateSourceJSONRequestBody) (*http.Request, error)
NewUpdateSourceRequest calls the generic UpdateSource builder with application/json body
Types ¶
type AppMetaData ¶
type AppMetaData struct { // ApplicationTypeId The ID of the application the metadata belongs to ApplicationTypeId *string `json:"application_type_id,omitempty"` // CreatedAt The timestamp of the creation of the app metadata type CreatedAt *time.Time `json:"created_at,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // Name The name of the step of the metadata Name *string `json:"name,omitempty"` // Payload The payload of the step Payload *map[string]interface{} `json:"payload,omitempty"` // UpdatedAt The timestamp of the last time this app metadata type got updated UpdatedAt *time.Time `json:"updated_at,omitempty"` }
AppMetaData defines model for AppMetaData.
type AppMetaDataCollection ¶
type AppMetaDataCollection struct { Data *[]AppMetaData `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
AppMetaDataCollection defines model for AppMetaDataCollection.
type Application ¶
type Application struct { // ApplicationTypeId ID of the resource ApplicationTypeId *ID `json:"application_type_id,omitempty"` // AvailabilityStatus The availability status of the application AvailabilityStatus *ApplicationAvailabilityStatus `json:"availability_status,omitempty"` // AvailabilityStatusError The received error message when polling for the availability status AvailabilityStatusError *string `json:"availability_status_error,omitempty"` // CreatedAt The timestamp of the creation of the application CreatedAt *time.Time `json:"created_at,omitempty"` // Extra Any extra information you want stored for the application, in JSON format Extra *map[string]interface{} `json:"extra,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // LastAvailableAt The timestamp for when the application was last available at. LastAvailableAt *time.Time `json:"last_available_at,omitempty"` // LastCheckedAt Timestamp of the last time the availability was checked for the application LastCheckedAt *time.Time `json:"last_checked_at,omitempty"` // PausedAt The timestamp for when the application was paused PausedAt *time.Time `json:"paused_at,omitempty"` // SourceId ID of the resource SourceId *ID `json:"source_id,omitempty"` // UpdatedAt The timestamp of the last time this application got updated UpdatedAt *time.Time `json:"updated_at,omitempty"` }
Application defines model for Application.
type ApplicationAvailabilityStatus ¶
type ApplicationAvailabilityStatus string
ApplicationAvailabilityStatus The availability status of the application
const ( ApplicationAvailabilityStatusAvailable ApplicationAvailabilityStatus = "available" ApplicationAvailabilityStatusInProgress ApplicationAvailabilityStatus = "in_progress" ApplicationAvailabilityStatusPartiallyAvailable ApplicationAvailabilityStatus = "partially_available" )
Defines values for ApplicationAvailabilityStatus.
type ApplicationCreate ¶
type ApplicationCreate struct { // ApplicationTypeId ID of the resource. Not "readonly", since it might be used for create/update payloads ApplicationTypeId *IDW `json:"application_type_id,omitempty"` // Extra Any extra information you want stored for the application, in JSON format Extra *map[string]interface{} `json:"extra,omitempty"` // SourceId ID of the resource. Not "readonly", since it might be used for create/update payloads SourceId *IDW `json:"source_id,omitempty"` }
ApplicationCreate Expected payload to create an application
type ApplicationType ¶
type ApplicationType struct { // CreatedAt The timestamp of the creation of the application type CreatedAt *time.Time `json:"created_at,omitempty"` // DependentApplications The dependent applications of this application type DependentApplications *map[string]interface{} `json:"dependent_applications,omitempty"` // DisplayName The display name for the application type DisplayName *string `json:"display_name,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // Name The name for the application type Name *string `json:"name,omitempty"` // SupportedAuthenticationTypes The supported authentication types the applications of this type support SupportedAuthenticationTypes *map[string]interface{} `json:"supported_authentication_types,omitempty"` // SupportedSourceTypes The supported source types the applications of this type support SupportedSourceTypes *[]string `json:"supported_source_types,omitempty"` // UpdatedAt The timestamp of the last time this application type got updated UpdatedAt *time.Time `json:"updated_at,omitempty"` }
ApplicationType defines model for ApplicationType.
type ApplicationTypesCollection ¶
type ApplicationTypesCollection struct { Data *[]ApplicationType `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
ApplicationTypesCollection defines model for ApplicationTypesCollection.
type ApplicationUpdate ¶
type ApplicationUpdate struct { // AvailabilityStatus The availability status of the application AvailabilityStatus *ApplicationUpdateAvailabilityStatus `json:"availability_status,omitempty"` // AvailabilityStatusError The received error message when polling for the availability status AvailabilityStatusError *string `json:"availability_status_error,omitempty"` // Extra Any extra information you want stored for the application, in JSON format Extra *map[string]interface{} `json:"extra,omitempty"` // LastAvailableAt The timestamp for when the application was last available at. LastAvailableAt *time.Time `json:"last_available_at,omitempty"` // LastCheckedAt Timestamp of the last time the availability was checked for the application LastCheckedAt *time.Time `json:"last_checked_at,omitempty"` }
ApplicationUpdate Expected payload to update an application
type ApplicationUpdateAvailabilityStatus ¶
type ApplicationUpdateAvailabilityStatus string
ApplicationUpdateAvailabilityStatus The availability status of the application
const ( ApplicationUpdateAvailabilityStatusAvailable ApplicationUpdateAvailabilityStatus = "available" ApplicationUpdateAvailabilityStatusInProgress ApplicationUpdateAvailabilityStatus = "in_progress" ApplicationUpdateAvailabilityStatusPartiallyAvailable ApplicationUpdateAvailabilityStatus = "partially_available" )
Defines values for ApplicationUpdateAvailabilityStatus.
type ApplicationsCollection ¶
type ApplicationsCollection struct { Data *[]Application `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
ApplicationsCollection defines model for ApplicationsCollection.
type AuthenticationRead ¶
type AuthenticationRead struct { // Authtype The type of the authentication. You can find this by listing the source types or the application types Authtype *string `json:"authtype,omitempty"` // AvailabilityStatus The availability status of the authentication AvailabilityStatus *interface{} `json:"availability_status,omitempty"` // AvailabilityStatusError The received error message when polling for the availability status AvailabilityStatusError *string `json:"availability_status_error,omitempty"` // Extra Any extra information the authentication may have Extra *struct { Azure *struct { TenantId *string `json:"tenant_id,omitempty"` } `json:"azure,omitempty"` // ExternalId If the authentication is related to a AWS Source, it may contain an external ID. ExternalId *string `json:"external_id,omitempty"` // Marketplace If the authentication is of the "marketplace-token" type, then this key will contain an unexpired token for the API key that the authentication stores. Marketplace *struct { // AccessToken The authorization token AccessToken *string `json:"access_token,omitempty"` // Expiration The Unix timestamp for the expiration of the token Expiration *float32 `json:"expiration,omitempty"` } `json:"marketplace,omitempty"` } `json:"extra,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // Name The authentication's name Name *string `json:"name,omitempty"` // ResourceId ID of the resource ResourceId *ID `json:"resource_id,omitempty"` // ResourceType The type of the resource this authentication belongs to ResourceType *AuthenticationReadResourceType `json:"resource_type,omitempty"` // Username The username for the authentication Username *string `json:"username,omitempty"` }
AuthenticationRead Authentication object
type AuthenticationReadResourceType ¶
type AuthenticationReadResourceType string
AuthenticationReadResourceType The type of the resource this authentication belongs to
const ( AuthenticationReadResourceTypeApplication AuthenticationReadResourceType = "Application" AuthenticationReadResourceTypeAuthentication AuthenticationReadResourceType = "Authentication" AuthenticationReadResourceTypeEndpoint AuthenticationReadResourceType = "Endpoint" AuthenticationReadResourceTypeSource AuthenticationReadResourceType = "Source" )
Defines values for AuthenticationReadResourceType.
type AuthenticationsCollection ¶
type AuthenticationsCollection struct { Data *[]AuthenticationRead `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
AuthenticationsCollection defines model for AuthenticationsCollection.
type BadRequest ¶
type BadRequest = ErrorBadRequest
BadRequest Error structure for the "Bad Request" responses
type BulkCreateJSONRequestBody ¶
type BulkCreateJSONRequestBody = BulkCreatePayload
BulkCreateJSONRequestBody defines body for BulkCreate for application/json ContentType.
type BulkCreatePayload ¶
type BulkCreatePayload struct { // Applications Array of application objects to create. The operation looks up the parent Source by the `source_name` attribute so the `source_name` must match one of the `source` names in the payload. You can specify the application type by using either the `application_type_name` or the `application_type_id`. Applications *[]struct { // ApplicationTypeId The ID of the application type ApplicationTypeId *string `json:"application_type_id,omitempty"` // ApplicationTypeName The name of the application type ApplicationTypeName *string `json:"application_type_name,omitempty"` // Extra Any extra information you would like to store in JSON format Extra *map[string]interface{} `json:"extra,omitempty"` // SourceId The ID of the soruce this application will be attached to SourceId *string `json:"source_id,omitempty"` // SourceName The name of the source this application will be attached to SourceName string `json:"source_name"` } `json:"applications,omitempty"` // Authentications Array of authentications to create. `resource_type` tells the action where to look for the parent, must be either application, endpoint or source. // If the parent is a source, it looks up by name. If the parent is an endpoint, it looks up via host so the hostname must match. If the parent is an application, it looks up via application type so the value must match the application type which matches. Authentications *[]struct { // Authtype The type of the authentication. You can find this by listing the source types or the application types Authtype *string `json:"authtype,omitempty"` // Extra Any extra information you would like to store in JSON format Extra *map[string]interface{} `json:"extra,omitempty"` // Password The password of the authentication Password *string `json:"password,omitempty"` // ResourceName The name of the resource this authentication relates to ResourceName *string `json:"resource_name,omitempty"` // ResourceType The type of the resource this authentication relates to ResourceType *BulkCreatePayloadAuthenticationsResourceType `json:"resource_type,omitempty"` // Username The username of the authentication Username *string `json:"username,omitempty"` } `json:"authentications,omitempty"` // Endpoints Array of endpoint objects to create. The operation looks up the parent source by the `source_name` attribute so the `source_name` must match one of the `source`'s names in the payload. Endpoints *[]struct { // CertificateAuthority Optional X.509 Certificate Authority. CertificateAuthority *string `json:"certificate_authority,omitempty"` // Host URI host component of the endpoint. Host *string `json:"host,omitempty"` // Path URI path component of the endpoint. Path *string `json:"path,omitempty"` // Port URI port component of the endpoint. Port *int `json:"port,omitempty"` // Scheme URI scheme component of the endpoint. Scheme *string `json:"scheme,omitempty"` // SourceName The name of the source this endpoint will be attached to SourceName string `json:"source_name"` // VerifySsl Should the SSL certificate be verified? VerifySsl *bool `json:"verify_ssl,omitempty"` } `json:"endpoints,omitempty"` // Sources Array of source objects to create Sources *[]struct { // AppCreationWorkflow The way the source is going to be created: manually, or using superkey? AppCreationWorkflow *BulkCreatePayloadSourcesAppCreationWorkflow `json:"app_creation_workflow,omitempty"` // Name The name of the source Name string `json:"name"` // SourceRef The external referece or ID for the source SourceRef *string `json:"source_ref,omitempty"` // SourceTypeName The type of the source that will be created SourceTypeName BulkCreatePayloadSourcesSourceTypeName `json:"source_type_name"` } `json:"sources,omitempty"` }
BulkCreatePayload defines model for BulkCreatePayload.
type BulkCreatePayloadAuthenticationsResourceType ¶
type BulkCreatePayloadAuthenticationsResourceType string
BulkCreatePayloadAuthenticationsResourceType The type of the resource this authentication relates to
const ( BulkCreatePayloadAuthenticationsResourceTypeApplication BulkCreatePayloadAuthenticationsResourceType = "Application" BulkCreatePayloadAuthenticationsResourceTypeEndpoint BulkCreatePayloadAuthenticationsResourceType = "Endpoint" BulkCreatePayloadAuthenticationsResourceTypeSource BulkCreatePayloadAuthenticationsResourceType = "Source" )
Defines values for BulkCreatePayloadAuthenticationsResourceType.
type BulkCreatePayloadSourcesAppCreationWorkflow ¶
type BulkCreatePayloadSourcesAppCreationWorkflow string
BulkCreatePayloadSourcesAppCreationWorkflow The way the source is going to be created: manually, or using superkey?
const ( BulkCreatePayloadSourcesAppCreationWorkflowAccountAuthorization BulkCreatePayloadSourcesAppCreationWorkflow = "account_authorization" BulkCreatePayloadSourcesAppCreationWorkflowManualConfiguration BulkCreatePayloadSourcesAppCreationWorkflow = "manual_configuration" )
Defines values for BulkCreatePayloadSourcesAppCreationWorkflow.
type BulkCreatePayloadSourcesSourceTypeName ¶
type BulkCreatePayloadSourcesSourceTypeName string
BulkCreatePayloadSourcesSourceTypeName The type of the source that will be created
const ( Amazon BulkCreatePayloadSourcesSourceTypeName = "amazon" Azure BulkCreatePayloadSourcesSourceTypeName = "azure" Bitbucket BulkCreatePayloadSourcesSourceTypeName = "bitbucket" Dockerhub BulkCreatePayloadSourcesSourceTypeName = "dockerhub" Github BulkCreatePayloadSourcesSourceTypeName = "github" Gitlab BulkCreatePayloadSourcesSourceTypeName = "gitlab" Google BulkCreatePayloadSourcesSourceTypeName = "google" Ibm BulkCreatePayloadSourcesSourceTypeName = "ibm" Openshift BulkCreatePayloadSourcesSourceTypeName = "openshift" OracleCloudInfrastructure BulkCreatePayloadSourcesSourceTypeName = "oracle-cloud-infrastructure" Quay BulkCreatePayloadSourcesSourceTypeName = "quay" RhMarketplace BulkCreatePayloadSourcesSourceTypeName = "rh-marketplace" Satellite BulkCreatePayloadSourcesSourceTypeName = "satellite" )
Defines values for BulkCreatePayloadSourcesSourceTypeName.
type BulkCreateResponse ¶
type BulkCreateResponse struct { Body []byte HTTPResponse *http.Response JSON201 *BulkCreateResponse JSON400 *ErrorBadRequest }
func ParseBulkCreateResponse ¶
func ParseBulkCreateResponse(rsp *http.Response) (*BulkCreateResponse, error)
ParseBulkCreateResponse parses an HTTP response from a BulkCreateWithResponse call
func (BulkCreateResponse) Status ¶
func (r BulkCreateResponse) Status() string
Status returns HTTPResponse.Status
func (BulkCreateResponse) StatusCode ¶
func (r BulkCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CheckAvailabilitySourceResponse ¶
type CheckAvailabilitySourceResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON404 *NotFound }
func ParseCheckAvailabilitySourceResponse ¶
func ParseCheckAvailabilitySourceResponse(rsp *http.Response) (*CheckAvailabilitySourceResponse, error)
ParseCheckAvailabilitySourceResponse parses an HTTP response from a CheckAvailabilitySourceWithResponse call
func (CheckAvailabilitySourceResponse) Status ¶
func (r CheckAvailabilitySourceResponse) Status() string
Status returns HTTPResponse.Status
func (CheckAvailabilitySourceResponse) StatusCode ¶
func (r CheckAvailabilitySourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) BulkCreate ¶
func (c *Client) BulkCreate(ctx context.Context, body BulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BulkCreateWithBody ¶
func (*Client) CheckAvailabilitySource ¶
func (*Client) CreateApplication ¶
func (c *Client) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateApplicationWithBody ¶
func (*Client) CreateSource ¶
func (c *Client) CreateSource(ctx context.Context, body CreateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSourceWithBody ¶
func (*Client) DeleteApplication ¶
func (*Client) DeleteSource ¶
func (*Client) GetSourcesRhcConnection ¶
func (c *Client) GetSourcesRhcConnection(ctx context.Context, id ID, params *GetSourcesRhcConnectionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApplicationAuthentications ¶
func (c *Client) ListApplicationAuthentications(ctx context.Context, id ID, params *ListApplicationAuthenticationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApplicationTypeAppMetaData ¶
func (c *Client) ListApplicationTypeAppMetaData(ctx context.Context, id ID, params *ListApplicationTypeAppMetaDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApplicationTypeSources ¶
func (c *Client) ListApplicationTypeSources(ctx context.Context, id ID, params *ListApplicationTypeSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApplicationTypes ¶
func (c *Client) ListApplicationTypes(ctx context.Context, params *ListApplicationTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApplications ¶
func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSourceApplicationTypes ¶
func (c *Client) ListSourceApplicationTypes(ctx context.Context, id ID, params *ListSourceApplicationTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSourceApplications ¶
func (c *Client) ListSourceApplications(ctx context.Context, id ID, params *ListSourceApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSourceAuthentications ¶
func (c *Client) ListSourceAuthentications(ctx context.Context, id ID, params *ListSourceAuthenticationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSourceEndpoints ¶
func (c *Client) ListSourceEndpoints(ctx context.Context, id ID, params *ListSourceEndpointsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSourceTypeSources ¶
func (c *Client) ListSourceTypeSources(ctx context.Context, id ID, params *ListSourceTypeSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSourceTypes ¶
func (c *Client) ListSourceTypes(ctx context.Context, params *ListSourceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSources ¶
func (c *Client) ListSources(ctx context.Context, params *ListSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PauseApplication ¶
func (*Client) PauseSource ¶
func (*Client) ShowApplication ¶
func (*Client) ShowApplicationType ¶
func (*Client) ShowSource ¶
func (*Client) ShowSourceType ¶
func (*Client) UnpauseApplication ¶
func (*Client) UnpauseSource ¶
func (*Client) UpdateApplication ¶
func (c *Client) UpdateApplication(ctx context.Context, id ID, body UpdateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateApplicationWithBody ¶
func (*Client) UpdateSource ¶
func (c *Client) UpdateSource(ctx context.Context, id ID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // ListApplicationTypes request ListApplicationTypes(ctx context.Context, params *ListApplicationTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ShowApplicationType request ShowApplicationType(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // ListApplicationTypeAppMetaData request ListApplicationTypeAppMetaData(ctx context.Context, id ID, params *ListApplicationTypeAppMetaDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListApplicationTypeSources request ListApplicationTypeSources(ctx context.Context, id ID, params *ListApplicationTypeSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListApplications request ListApplications(ctx context.Context, params *ListApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateApplicationWithBody request with any body CreateApplicationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteApplication request DeleteApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // ShowApplication request ShowApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateApplicationWithBody request with any body UpdateApplicationWithBody(ctx context.Context, id ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateApplication(ctx context.Context, id ID, body UpdateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListApplicationAuthentications request ListApplicationAuthentications(ctx context.Context, id ID, params *ListApplicationAuthenticationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PauseApplication request PauseApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // UnpauseApplication request UnpauseApplication(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // BulkCreateWithBody request with any body BulkCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) BulkCreate(ctx context.Context, body BulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSourceTypes request ListSourceTypes(ctx context.Context, params *ListSourceTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ShowSourceType request ShowSourceType(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSourceTypeSources request ListSourceTypeSources(ctx context.Context, id ID, params *ListSourceTypeSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSources request ListSources(ctx context.Context, params *ListSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSourceWithBody request with any body CreateSourceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSource(ctx context.Context, body CreateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSource request DeleteSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // ShowSource request ShowSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSourceWithBody request with any body UpdateSourceWithBody(ctx context.Context, id ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateSource(ctx context.Context, id ID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSourceApplicationTypes request ListSourceApplicationTypes(ctx context.Context, id ID, params *ListSourceApplicationTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSourceApplications request ListSourceApplications(ctx context.Context, id ID, params *ListSourceApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSourceAuthentications request ListSourceAuthentications(ctx context.Context, id ID, params *ListSourceAuthenticationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CheckAvailabilitySource request CheckAvailabilitySource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // ListSourceEndpoints request ListSourceEndpoints(ctx context.Context, id ID, params *ListSourceEndpointsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // PauseSource request PauseSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSourcesRhcConnection request GetSourcesRhcConnection(ctx context.Context, id ID, params *GetSourcesRhcConnectionParams, reqEditors ...RequestEditorFn) (*http.Response, error) // UnpauseSource request UnpauseSource(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) BulkCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) BulkCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkCreateResponse, error)
BulkCreateWithBodyWithResponse request with arbitrary body returning *BulkCreateResponse
func (*ClientWithResponses) BulkCreateWithResponse ¶
func (c *ClientWithResponses) BulkCreateWithResponse(ctx context.Context, body BulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkCreateResponse, error)
func (*ClientWithResponses) CheckAvailabilitySourceWithResponse ¶
func (c *ClientWithResponses) CheckAvailabilitySourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*CheckAvailabilitySourceResponse, error)
CheckAvailabilitySourceWithResponse request returning *CheckAvailabilitySourceResponse
func (*ClientWithResponses) CreateApplicationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
CreateApplicationWithBodyWithResponse request with arbitrary body returning *CreateApplicationResponse
func (*ClientWithResponses) CreateApplicationWithResponse ¶
func (c *ClientWithResponses) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
func (*ClientWithResponses) CreateSourceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error)
CreateSourceWithBodyWithResponse request with arbitrary body returning *CreateSourceResponse
func (*ClientWithResponses) CreateSourceWithResponse ¶
func (c *ClientWithResponses) CreateSourceWithResponse(ctx context.Context, body CreateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error)
func (*ClientWithResponses) DeleteApplicationWithResponse ¶
func (c *ClientWithResponses) DeleteApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*DeleteApplicationResponse, error)
DeleteApplicationWithResponse request returning *DeleteApplicationResponse
func (*ClientWithResponses) DeleteSourceWithResponse ¶
func (c *ClientWithResponses) DeleteSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*DeleteSourceResponse, error)
DeleteSourceWithResponse request returning *DeleteSourceResponse
func (*ClientWithResponses) GetSourcesRhcConnectionWithResponse ¶
func (c *ClientWithResponses) GetSourcesRhcConnectionWithResponse(ctx context.Context, id ID, params *GetSourcesRhcConnectionParams, reqEditors ...RequestEditorFn) (*GetSourcesRhcConnectionResponse, error)
GetSourcesRhcConnectionWithResponse request returning *GetSourcesRhcConnectionResponse
func (*ClientWithResponses) ListApplicationAuthenticationsWithResponse ¶
func (c *ClientWithResponses) ListApplicationAuthenticationsWithResponse(ctx context.Context, id ID, params *ListApplicationAuthenticationsParams, reqEditors ...RequestEditorFn) (*ListApplicationAuthenticationsResponse, error)
ListApplicationAuthenticationsWithResponse request returning *ListApplicationAuthenticationsResponse
func (*ClientWithResponses) ListApplicationTypeAppMetaDataWithResponse ¶
func (c *ClientWithResponses) ListApplicationTypeAppMetaDataWithResponse(ctx context.Context, id ID, params *ListApplicationTypeAppMetaDataParams, reqEditors ...RequestEditorFn) (*ListApplicationTypeAppMetaDataResponse, error)
ListApplicationTypeAppMetaDataWithResponse request returning *ListApplicationTypeAppMetaDataResponse
func (*ClientWithResponses) ListApplicationTypeSourcesWithResponse ¶
func (c *ClientWithResponses) ListApplicationTypeSourcesWithResponse(ctx context.Context, id ID, params *ListApplicationTypeSourcesParams, reqEditors ...RequestEditorFn) (*ListApplicationTypeSourcesResponse, error)
ListApplicationTypeSourcesWithResponse request returning *ListApplicationTypeSourcesResponse
func (*ClientWithResponses) ListApplicationTypesWithResponse ¶
func (c *ClientWithResponses) ListApplicationTypesWithResponse(ctx context.Context, params *ListApplicationTypesParams, reqEditors ...RequestEditorFn) (*ListApplicationTypesResponse, error)
ListApplicationTypesWithResponse request returning *ListApplicationTypesResponse
func (*ClientWithResponses) ListApplicationsWithResponse ¶
func (c *ClientWithResponses) ListApplicationsWithResponse(ctx context.Context, params *ListApplicationsParams, reqEditors ...RequestEditorFn) (*ListApplicationsResponse, error)
ListApplicationsWithResponse request returning *ListApplicationsResponse
func (*ClientWithResponses) ListSourceApplicationTypesWithResponse ¶
func (c *ClientWithResponses) ListSourceApplicationTypesWithResponse(ctx context.Context, id ID, params *ListSourceApplicationTypesParams, reqEditors ...RequestEditorFn) (*ListSourceApplicationTypesResponse, error)
ListSourceApplicationTypesWithResponse request returning *ListSourceApplicationTypesResponse
func (*ClientWithResponses) ListSourceApplicationsWithResponse ¶
func (c *ClientWithResponses) ListSourceApplicationsWithResponse(ctx context.Context, id ID, params *ListSourceApplicationsParams, reqEditors ...RequestEditorFn) (*ListSourceApplicationsResponse, error)
ListSourceApplicationsWithResponse request returning *ListSourceApplicationsResponse
func (*ClientWithResponses) ListSourceAuthenticationsWithResponse ¶
func (c *ClientWithResponses) ListSourceAuthenticationsWithResponse(ctx context.Context, id ID, params *ListSourceAuthenticationsParams, reqEditors ...RequestEditorFn) (*ListSourceAuthenticationsResponse, error)
ListSourceAuthenticationsWithResponse request returning *ListSourceAuthenticationsResponse
func (*ClientWithResponses) ListSourceEndpointsWithResponse ¶
func (c *ClientWithResponses) ListSourceEndpointsWithResponse(ctx context.Context, id ID, params *ListSourceEndpointsParams, reqEditors ...RequestEditorFn) (*ListSourceEndpointsResponse, error)
ListSourceEndpointsWithResponse request returning *ListSourceEndpointsResponse
func (*ClientWithResponses) ListSourceTypeSourcesWithResponse ¶
func (c *ClientWithResponses) ListSourceTypeSourcesWithResponse(ctx context.Context, id ID, params *ListSourceTypeSourcesParams, reqEditors ...RequestEditorFn) (*ListSourceTypeSourcesResponse, error)
ListSourceTypeSourcesWithResponse request returning *ListSourceTypeSourcesResponse
func (*ClientWithResponses) ListSourceTypesWithResponse ¶
func (c *ClientWithResponses) ListSourceTypesWithResponse(ctx context.Context, params *ListSourceTypesParams, reqEditors ...RequestEditorFn) (*ListSourceTypesResponse, error)
ListSourceTypesWithResponse request returning *ListSourceTypesResponse
func (*ClientWithResponses) ListSourcesWithResponse ¶
func (c *ClientWithResponses) ListSourcesWithResponse(ctx context.Context, params *ListSourcesParams, reqEditors ...RequestEditorFn) (*ListSourcesResponse, error)
ListSourcesWithResponse request returning *ListSourcesResponse
func (*ClientWithResponses) PauseApplicationWithResponse ¶
func (c *ClientWithResponses) PauseApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*PauseApplicationResponse, error)
PauseApplicationWithResponse request returning *PauseApplicationResponse
func (*ClientWithResponses) PauseSourceWithResponse ¶
func (c *ClientWithResponses) PauseSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*PauseSourceResponse, error)
PauseSourceWithResponse request returning *PauseSourceResponse
func (*ClientWithResponses) ShowApplicationTypeWithResponse ¶
func (c *ClientWithResponses) ShowApplicationTypeWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowApplicationTypeResponse, error)
ShowApplicationTypeWithResponse request returning *ShowApplicationTypeResponse
func (*ClientWithResponses) ShowApplicationWithResponse ¶
func (c *ClientWithResponses) ShowApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowApplicationResponse, error)
ShowApplicationWithResponse request returning *ShowApplicationResponse
func (*ClientWithResponses) ShowSourceTypeWithResponse ¶
func (c *ClientWithResponses) ShowSourceTypeWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowSourceTypeResponse, error)
ShowSourceTypeWithResponse request returning *ShowSourceTypeResponse
func (*ClientWithResponses) ShowSourceWithResponse ¶
func (c *ClientWithResponses) ShowSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowSourceResponse, error)
ShowSourceWithResponse request returning *ShowSourceResponse
func (*ClientWithResponses) UnpauseApplicationWithResponse ¶
func (c *ClientWithResponses) UnpauseApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*UnpauseApplicationResponse, error)
UnpauseApplicationWithResponse request returning *UnpauseApplicationResponse
func (*ClientWithResponses) UnpauseSourceWithResponse ¶
func (c *ClientWithResponses) UnpauseSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*UnpauseSourceResponse, error)
UnpauseSourceWithResponse request returning *UnpauseSourceResponse
func (*ClientWithResponses) UpdateApplicationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateApplicationWithBodyWithResponse(ctx context.Context, id ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApplicationResponse, error)
UpdateApplicationWithBodyWithResponse request with arbitrary body returning *UpdateApplicationResponse
func (*ClientWithResponses) UpdateApplicationWithResponse ¶
func (c *ClientWithResponses) UpdateApplicationWithResponse(ctx context.Context, id ID, body UpdateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApplicationResponse, error)
func (*ClientWithResponses) UpdateSourceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSourceWithBodyWithResponse(ctx context.Context, id ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
UpdateSourceWithBodyWithResponse request with arbitrary body returning *UpdateSourceResponse
func (*ClientWithResponses) UpdateSourceWithResponse ¶
func (c *ClientWithResponses) UpdateSourceWithResponse(ctx context.Context, id ID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // ListApplicationTypesWithResponse request ListApplicationTypesWithResponse(ctx context.Context, params *ListApplicationTypesParams, reqEditors ...RequestEditorFn) (*ListApplicationTypesResponse, error) // ShowApplicationTypeWithResponse request ShowApplicationTypeWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowApplicationTypeResponse, error) // ListApplicationTypeAppMetaDataWithResponse request ListApplicationTypeAppMetaDataWithResponse(ctx context.Context, id ID, params *ListApplicationTypeAppMetaDataParams, reqEditors ...RequestEditorFn) (*ListApplicationTypeAppMetaDataResponse, error) // ListApplicationTypeSourcesWithResponse request ListApplicationTypeSourcesWithResponse(ctx context.Context, id ID, params *ListApplicationTypeSourcesParams, reqEditors ...RequestEditorFn) (*ListApplicationTypeSourcesResponse, error) // ListApplicationsWithResponse request ListApplicationsWithResponse(ctx context.Context, params *ListApplicationsParams, reqEditors ...RequestEditorFn) (*ListApplicationsResponse, error) // CreateApplicationWithBodyWithResponse request with any body CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error) // DeleteApplicationWithResponse request DeleteApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*DeleteApplicationResponse, error) // ShowApplicationWithResponse request ShowApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowApplicationResponse, error) // UpdateApplicationWithBodyWithResponse request with any body UpdateApplicationWithBodyWithResponse(ctx context.Context, id ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateApplicationResponse, error) UpdateApplicationWithResponse(ctx context.Context, id ID, body UpdateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateApplicationResponse, error) // ListApplicationAuthenticationsWithResponse request ListApplicationAuthenticationsWithResponse(ctx context.Context, id ID, params *ListApplicationAuthenticationsParams, reqEditors ...RequestEditorFn) (*ListApplicationAuthenticationsResponse, error) // PauseApplicationWithResponse request PauseApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*PauseApplicationResponse, error) // UnpauseApplicationWithResponse request UnpauseApplicationWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*UnpauseApplicationResponse, error) // BulkCreateWithBodyWithResponse request with any body BulkCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkCreateResponse, error) BulkCreateWithResponse(ctx context.Context, body BulkCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkCreateResponse, error) // ListSourceTypesWithResponse request ListSourceTypesWithResponse(ctx context.Context, params *ListSourceTypesParams, reqEditors ...RequestEditorFn) (*ListSourceTypesResponse, error) // ShowSourceTypeWithResponse request ShowSourceTypeWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowSourceTypeResponse, error) // ListSourceTypeSourcesWithResponse request ListSourceTypeSourcesWithResponse(ctx context.Context, id ID, params *ListSourceTypeSourcesParams, reqEditors ...RequestEditorFn) (*ListSourceTypeSourcesResponse, error) // ListSourcesWithResponse request ListSourcesWithResponse(ctx context.Context, params *ListSourcesParams, reqEditors ...RequestEditorFn) (*ListSourcesResponse, error) // CreateSourceWithBodyWithResponse request with any body CreateSourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error) CreateSourceWithResponse(ctx context.Context, body CreateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSourceResponse, error) // DeleteSourceWithResponse request DeleteSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*DeleteSourceResponse, error) // ShowSourceWithResponse request ShowSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*ShowSourceResponse, error) // UpdateSourceWithBodyWithResponse request with any body UpdateSourceWithBodyWithResponse(ctx context.Context, id ID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error) UpdateSourceWithResponse(ctx context.Context, id ID, body UpdateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSourceResponse, error) // ListSourceApplicationTypesWithResponse request ListSourceApplicationTypesWithResponse(ctx context.Context, id ID, params *ListSourceApplicationTypesParams, reqEditors ...RequestEditorFn) (*ListSourceApplicationTypesResponse, error) // ListSourceApplicationsWithResponse request ListSourceApplicationsWithResponse(ctx context.Context, id ID, params *ListSourceApplicationsParams, reqEditors ...RequestEditorFn) (*ListSourceApplicationsResponse, error) // ListSourceAuthenticationsWithResponse request ListSourceAuthenticationsWithResponse(ctx context.Context, id ID, params *ListSourceAuthenticationsParams, reqEditors ...RequestEditorFn) (*ListSourceAuthenticationsResponse, error) // CheckAvailabilitySourceWithResponse request CheckAvailabilitySourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*CheckAvailabilitySourceResponse, error) // ListSourceEndpointsWithResponse request ListSourceEndpointsWithResponse(ctx context.Context, id ID, params *ListSourceEndpointsParams, reqEditors ...RequestEditorFn) (*ListSourceEndpointsResponse, error) // PauseSourceWithResponse request PauseSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*PauseSourceResponse, error) // GetSourcesRhcConnectionWithResponse request GetSourcesRhcConnectionWithResponse(ctx context.Context, id ID, params *GetSourcesRhcConnectionParams, reqEditors ...RequestEditorFn) (*GetSourcesRhcConnectionResponse, error) // UnpauseSourceWithResponse request UnpauseSourceWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*UnpauseSourceResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CollectionLinks ¶
type CollectionLinks struct { // First The link to the first object of the list First *string `json:"first,omitempty"` // Last The link to the last object of the list Last *string `json:"last,omitempty"` // Next The link to the next page of objects Next *string `json:"next,omitempty"` // Prev The link to the previous page of objects Prev *string `json:"prev,omitempty"` }
CollectionLinks defines model for CollectionLinks.
type CollectionMetadata ¶
type CollectionMetadata struct { // Count The total amount of objects in the database Count *int `json:"count,omitempty"` // Limit The limit of objects that was applied to the object list Limit *int `json:"limit,omitempty"` // Offset The offset that was applied to the list Offset *int `json:"offset,omitempty"` }
CollectionMetadata defines model for CollectionMetadata.
type CreateApplicationJSONRequestBody ¶
type CreateApplicationJSONRequestBody = ApplicationCreate
CreateApplicationJSONRequestBody defines body for CreateApplication for application/json ContentType.
type CreateApplicationResponse ¶
type CreateApplicationResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Application JSON400 *BadRequest }
func ParseCreateApplicationResponse ¶
func ParseCreateApplicationResponse(rsp *http.Response) (*CreateApplicationResponse, error)
ParseCreateApplicationResponse parses an HTTP response from a CreateApplicationWithResponse call
func (CreateApplicationResponse) Status ¶
func (r CreateApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateApplicationResponse) StatusCode ¶
func (r CreateApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSourceJSONRequestBody ¶
type CreateSourceJSONRequestBody = SourceCreate
CreateSourceJSONRequestBody defines body for CreateSource for application/json ContentType.
type CreateSourceResponse ¶
type CreateSourceResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Source JSON400 *ErrorBadRequest }
func ParseCreateSourceResponse ¶
func ParseCreateSourceResponse(rsp *http.Response) (*CreateSourceResponse, error)
ParseCreateSourceResponse parses an HTTP response from a CreateSourceWithResponse call
func (CreateSourceResponse) Status ¶
func (r CreateSourceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSourceResponse) StatusCode ¶
func (r CreateSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteApplicationResponse ¶
type DeleteApplicationResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON404 *NotFound }
func ParseDeleteApplicationResponse ¶
func ParseDeleteApplicationResponse(rsp *http.Response) (*DeleteApplicationResponse, error)
ParseDeleteApplicationResponse parses an HTTP response from a DeleteApplicationWithResponse call
func (DeleteApplicationResponse) Status ¶
func (r DeleteApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApplicationResponse) StatusCode ¶
func (r DeleteApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSourceResponse ¶
type DeleteSourceResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON404 *NotFound }
func ParseDeleteSourceResponse ¶
func ParseDeleteSourceResponse(rsp *http.Response) (*DeleteSourceResponse, error)
ParseDeleteSourceResponse parses an HTTP response from a DeleteSourceWithResponse call
func (DeleteSourceResponse) Status ¶
func (r DeleteSourceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSourceResponse) StatusCode ¶
func (r DeleteSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Endpoint ¶
type Endpoint struct { // AvailabilityStatus The availability status of the endpoint. AvailabilityStatus *EndpointAvailabilityStatus `json:"availability_status,omitempty"` // AvailabilityStatusError The received error message when polling for the availability status AvailabilityStatusError *string `json:"availability_status_error,omitempty"` // CertificateAuthority Optional X.509 Certificate Authority CertificateAuthority *string `json:"certificate_authority,omitempty"` // CreatedAt The timestamp for when the endpoint was created. CreatedAt *time.Time `json:"created_at,omitempty"` // Default Mark endpoint as the default endpoint? Each source can only have one default endpoint. It gets set to true by default if the given source has no endpoints. Default *bool `json:"default,omitempty"` // Host URI host component of the endpoint. Host *string `json:"host,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // LastAvailableAt Timestamp of the last time the connection was available LastAvailableAt *time.Time `json:"last_available_at,omitempty"` // LastCheckedAt Timestamp of the last time the availability was checked for the connection LastCheckedAt *time.Time `json:"last_checked_at,omitempty"` // Path URI path component of the endpoint. Path *string `json:"path,omitempty"` // PausedAt The timestamp for when the endpoint was paused PausedAt *time.Time `json:"paused_at,omitempty"` // Port URI port component of the endpoint. Port *int `json:"port,omitempty"` // ReceptorNode Identifier of a receptor node. ReceptorNode *string `json:"receptor_node,omitempty"` // Role The role of the endpoint. It must be unique among the source's endpoints. Role *string `json:"role,omitempty"` // Scheme The scheme of the protocol. Scheme *string `json:"scheme,omitempty"` // SourceId ID of the resource SourceId *ID `json:"source_id,omitempty"` // UpdatedAt The timestamp for when the source was last updated UpdatedAt *time.Time `json:"updated_at,omitempty"` // VerifySsl Should the SSL certificate be verified? VerifySsl *bool `json:"verify_ssl,omitempty"` }
Endpoint Representation of an endpoint object
type EndpointAvailabilityStatus ¶
type EndpointAvailabilityStatus string
EndpointAvailabilityStatus The availability status of the endpoint.
const ( EndpointAvailabilityStatusAvailable EndpointAvailabilityStatus = "available" EndpointAvailabilityStatusEmpty EndpointAvailabilityStatus = "" EndpointAvailabilityStatusInProgress EndpointAvailabilityStatus = "in_progress" )
Defines values for EndpointAvailabilityStatus.
type EndpointRead ¶
type EndpointRead struct { // AvailabilityStatus The availability status of the endpoint. AvailabilityStatus *EndpointReadAvailabilityStatus `json:"availability_status,omitempty"` // AvailabilityStatusError The received error message when polling for the availability status AvailabilityStatusError *string `json:"availability_status_error,omitempty"` // CertificateAuthority Optional X.509 Certificate Authority CertificateAuthority *string `json:"certificate_authority,omitempty"` // CreatedAt The timestamp for when the endpoint was created. CreatedAt *time.Time `json:"created_at,omitempty"` // Default Mark endpoint as the default endpoint? Each source can only have one default endpoint. It gets set to true by default if the given source has no endpoints. Default *bool `json:"default,omitempty"` // Host URI host component of the endpoint. Host *string `json:"host,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // LastAvailableAt Timestamp of the last time the connection was available LastAvailableAt *time.Time `json:"last_available_at,omitempty"` // LastCheckedAt Timestamp of the last time the availability was checked for the connection LastCheckedAt *time.Time `json:"last_checked_at,omitempty"` // Path URI path component of the endpoint. Path *string `json:"path,omitempty"` // PausedAt The timestamp for when the endpoint was paused PausedAt *time.Time `json:"paused_at,omitempty"` // Port URI port component of the endpoint. Port *int `json:"port,omitempty"` // ReceptorNode Identifier of a receptor node. ReceptorNode *string `json:"receptor_node,omitempty"` // Role The role of the endpoint. It must be unique among the source's endpoints. Role *string `json:"role,omitempty"` // Scheme The scheme of the protocol. Scheme *string `json:"scheme,omitempty"` // SourceId ID of the resource SourceId *ID `json:"source_id,omitempty"` // UpdatedAt The timestamp for when the source was last updated UpdatedAt *time.Time `json:"updated_at,omitempty"` // VerifySsl Should the SSL certificate be verified? VerifySsl *bool `json:"verify_ssl,omitempty"` }
EndpointRead Endpoint object
type EndpointReadAvailabilityStatus ¶
type EndpointReadAvailabilityStatus string
EndpointReadAvailabilityStatus The availability status of the endpoint.
const ( EndpointReadAvailabilityStatusAvailable EndpointReadAvailabilityStatus = "available" EndpointReadAvailabilityStatusEmpty EndpointReadAvailabilityStatus = "" EndpointReadAvailabilityStatusInProgress EndpointReadAvailabilityStatus = "in_progress" )
Defines values for EndpointReadAvailabilityStatus.
type EndpointsCollection ¶
type EndpointsCollection struct { Data *[]EndpointRead `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
EndpointsCollection defines model for EndpointsCollection.
type ErrorBadRequest ¶
type ErrorBadRequest struct { Errors *[]struct { // Detail Detail of the error Detail *string `json:"detail,omitempty"` // Status Status of the response Status *string `json:"status,omitempty"` } `json:"errors,omitempty"` }
ErrorBadRequest Error structure for the "Bad Request" responses
type ErrorNotFound ¶
type ErrorNotFound struct { Errors *[]struct { // Detail Detail of the error Detail *string `json:"detail,omitempty"` // Status Status of the response Status *string `json:"status,omitempty"` } `json:"errors,omitempty"` }
ErrorNotFound Error structure for the "Not Found" responses
type GetSourcesRhcConnectionParams ¶
type GetSourcesRhcConnectionParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
GetSourcesRhcConnectionParams defines parameters for GetSourcesRhcConnection.
type GetSourcesRhcConnectionResponse ¶
type GetSourcesRhcConnectionResponse struct { Body []byte HTTPResponse *http.Response JSON200 *RhcConnectionCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseGetSourcesRhcConnectionResponse ¶
func ParseGetSourcesRhcConnectionResponse(rsp *http.Response) (*GetSourcesRhcConnectionResponse, error)
ParseGetSourcesRhcConnectionResponse parses an HTTP response from a GetSourcesRhcConnectionWithResponse call
func (GetSourcesRhcConnectionResponse) Status ¶
func (r GetSourcesRhcConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (GetSourcesRhcConnectionResponse) StatusCode ¶
func (r GetSourcesRhcConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IDW ¶
type IDW = string
IDW ID of the resource. Not "readonly", since it might be used for create/update payloads
type ListApplicationAuthenticationsParams ¶
type ListApplicationAuthenticationsParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListApplicationAuthenticationsParams defines parameters for ListApplicationAuthentications.
type ListApplicationAuthenticationsResponse ¶
type ListApplicationAuthenticationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AuthenticationsCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListApplicationAuthenticationsResponse ¶
func ParseListApplicationAuthenticationsResponse(rsp *http.Response) (*ListApplicationAuthenticationsResponse, error)
ParseListApplicationAuthenticationsResponse parses an HTTP response from a ListApplicationAuthenticationsWithResponse call
func (ListApplicationAuthenticationsResponse) Status ¶
func (r ListApplicationAuthenticationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListApplicationAuthenticationsResponse) StatusCode ¶
func (r ListApplicationAuthenticationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApplicationTypeAppMetaDataParams ¶
type ListApplicationTypeAppMetaDataParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListApplicationTypeAppMetaDataParams defines parameters for ListApplicationTypeAppMetaData.
type ListApplicationTypeAppMetaDataResponse ¶
type ListApplicationTypeAppMetaDataResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AppMetaDataCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListApplicationTypeAppMetaDataResponse ¶
func ParseListApplicationTypeAppMetaDataResponse(rsp *http.Response) (*ListApplicationTypeAppMetaDataResponse, error)
ParseListApplicationTypeAppMetaDataResponse parses an HTTP response from a ListApplicationTypeAppMetaDataWithResponse call
func (ListApplicationTypeAppMetaDataResponse) Status ¶
func (r ListApplicationTypeAppMetaDataResponse) Status() string
Status returns HTTPResponse.Status
func (ListApplicationTypeAppMetaDataResponse) StatusCode ¶
func (r ListApplicationTypeAppMetaDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApplicationTypeSourcesParams ¶
type ListApplicationTypeSourcesParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListApplicationTypeSourcesParams defines parameters for ListApplicationTypeSources.
type ListApplicationTypeSourcesResponse ¶
type ListApplicationTypeSourcesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SourcesCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListApplicationTypeSourcesResponse ¶
func ParseListApplicationTypeSourcesResponse(rsp *http.Response) (*ListApplicationTypeSourcesResponse, error)
ParseListApplicationTypeSourcesResponse parses an HTTP response from a ListApplicationTypeSourcesWithResponse call
func (ListApplicationTypeSourcesResponse) Status ¶
func (r ListApplicationTypeSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (ListApplicationTypeSourcesResponse) StatusCode ¶
func (r ListApplicationTypeSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApplicationTypesParams ¶
type ListApplicationTypesParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListApplicationTypesParams defines parameters for ListApplicationTypes.
type ListApplicationTypesResponse ¶
type ListApplicationTypesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ApplicationTypesCollection JSON400 *BadRequest }
func ParseListApplicationTypesResponse ¶
func ParseListApplicationTypesResponse(rsp *http.Response) (*ListApplicationTypesResponse, error)
ParseListApplicationTypesResponse parses an HTTP response from a ListApplicationTypesWithResponse call
func (ListApplicationTypesResponse) Status ¶
func (r ListApplicationTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListApplicationTypesResponse) StatusCode ¶
func (r ListApplicationTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApplicationsParams ¶
type ListApplicationsParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListApplicationsParams defines parameters for ListApplications.
type ListApplicationsResponse ¶
type ListApplicationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ApplicationsCollection JSON400 *BadRequest }
func ParseListApplicationsResponse ¶
func ParseListApplicationsResponse(rsp *http.Response) (*ListApplicationsResponse, error)
ParseListApplicationsResponse parses an HTTP response from a ListApplicationsWithResponse call
func (ListApplicationsResponse) Status ¶
func (r ListApplicationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListApplicationsResponse) StatusCode ¶
func (r ListApplicationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourceApplicationTypesParams ¶
type ListSourceApplicationTypesParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListSourceApplicationTypesParams defines parameters for ListSourceApplicationTypes.
type ListSourceApplicationTypesResponse ¶
type ListSourceApplicationTypesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ApplicationTypesCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListSourceApplicationTypesResponse ¶
func ParseListSourceApplicationTypesResponse(rsp *http.Response) (*ListSourceApplicationTypesResponse, error)
ParseListSourceApplicationTypesResponse parses an HTTP response from a ListSourceApplicationTypesWithResponse call
func (ListSourceApplicationTypesResponse) Status ¶
func (r ListSourceApplicationTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourceApplicationTypesResponse) StatusCode ¶
func (r ListSourceApplicationTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourceApplicationsParams ¶
type ListSourceApplicationsParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListSourceApplicationsParams defines parameters for ListSourceApplications.
type ListSourceApplicationsResponse ¶
type ListSourceApplicationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ApplicationsCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListSourceApplicationsResponse ¶
func ParseListSourceApplicationsResponse(rsp *http.Response) (*ListSourceApplicationsResponse, error)
ParseListSourceApplicationsResponse parses an HTTP response from a ListSourceApplicationsWithResponse call
func (ListSourceApplicationsResponse) Status ¶
func (r ListSourceApplicationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourceApplicationsResponse) StatusCode ¶
func (r ListSourceApplicationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourceAuthenticationsParams ¶
type ListSourceAuthenticationsParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListSourceAuthenticationsParams defines parameters for ListSourceAuthentications.
type ListSourceAuthenticationsResponse ¶
type ListSourceAuthenticationsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *AuthenticationsCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListSourceAuthenticationsResponse ¶
func ParseListSourceAuthenticationsResponse(rsp *http.Response) (*ListSourceAuthenticationsResponse, error)
ParseListSourceAuthenticationsResponse parses an HTTP response from a ListSourceAuthenticationsWithResponse call
func (ListSourceAuthenticationsResponse) Status ¶
func (r ListSourceAuthenticationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourceAuthenticationsResponse) StatusCode ¶
func (r ListSourceAuthenticationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourceEndpointsParams ¶
type ListSourceEndpointsParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListSourceEndpointsParams defines parameters for ListSourceEndpoints.
type ListSourceEndpointsResponse ¶
type ListSourceEndpointsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *EndpointsCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListSourceEndpointsResponse ¶
func ParseListSourceEndpointsResponse(rsp *http.Response) (*ListSourceEndpointsResponse, error)
ParseListSourceEndpointsResponse parses an HTTP response from a ListSourceEndpointsWithResponse call
func (ListSourceEndpointsResponse) Status ¶
func (r ListSourceEndpointsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourceEndpointsResponse) StatusCode ¶
func (r ListSourceEndpointsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourceTypeSourcesParams ¶
type ListSourceTypeSourcesParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListSourceTypeSourcesParams defines parameters for ListSourceTypeSources.
type ListSourceTypeSourcesResponse ¶
type ListSourceTypeSourcesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SourcesCollection JSON400 *BadRequest JSON404 *NotFound }
func ParseListSourceTypeSourcesResponse ¶
func ParseListSourceTypeSourcesResponse(rsp *http.Response) (*ListSourceTypeSourcesResponse, error)
ParseListSourceTypeSourcesResponse parses an HTTP response from a ListSourceTypeSourcesWithResponse call
func (ListSourceTypeSourcesResponse) Status ¶
func (r ListSourceTypeSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourceTypeSourcesResponse) StatusCode ¶
func (r ListSourceTypeSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourceTypesParams ¶
type ListSourceTypesParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListSourceTypesParams defines parameters for ListSourceTypes.
type ListSourceTypesResponse ¶
type ListSourceTypesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SourceTypesCollection JSON400 *BadRequest }
func ParseListSourceTypesResponse ¶
func ParseListSourceTypesResponse(rsp *http.Response) (*ListSourceTypesResponse, error)
ParseListSourceTypesResponse parses an HTTP response from a ListSourceTypesWithResponse call
func (ListSourceTypesResponse) Status ¶
func (r ListSourceTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourceTypesResponse) StatusCode ¶
func (r ListSourceTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSourcesParams ¶
type ListSourcesParams struct { // Limit The numbers of items to return per page. Limit *QueryLimit `form:"limit,omitempty" json:"limit,omitempty"` // Offset The number of items to skip before starting to collect the result set. Offset *QueryOffset `form:"offset,omitempty" json:"offset,omitempty"` // Filter Filter for querying collections. The format of the filters is as follows: `filter[subresource][field][operation]="value"`. Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"` // SortBy The list of attribute and order to sort the result set by. SortBy *QuerySortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"` }
ListSourcesParams defines parameters for ListSources.
type ListSourcesResponse ¶
type ListSourcesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SourcesCollection JSON400 *BadRequest }
func ParseListSourcesResponse ¶
func ParseListSourcesResponse(rsp *http.Response) (*ListSourcesResponse, error)
ParseListSourcesResponse parses an HTTP response from a ListSourcesWithResponse call
func (ListSourcesResponse) Status ¶
func (r ListSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSourcesResponse) StatusCode ¶
func (r ListSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NotFound ¶
type NotFound = ErrorNotFound
NotFound Error structure for the "Not Found" responses
type PauseApplicationResponse ¶
type PauseApplicationResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON404 *NotFound }
func ParsePauseApplicationResponse ¶
func ParsePauseApplicationResponse(rsp *http.Response) (*PauseApplicationResponse, error)
ParsePauseApplicationResponse parses an HTTP response from a PauseApplicationWithResponse call
func (PauseApplicationResponse) Status ¶
func (r PauseApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (PauseApplicationResponse) StatusCode ¶
func (r PauseApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PauseSourceResponse ¶
type PauseSourceResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON404 *NotFound }
func ParsePauseSourceResponse ¶
func ParsePauseSourceResponse(rsp *http.Response) (*PauseSourceResponse, error)
ParsePauseSourceResponse parses an HTTP response from a PauseSourceWithResponse call
func (PauseSourceResponse) Status ¶
func (r PauseSourceResponse) Status() string
Status returns HTTPResponse.Status
func (PauseSourceResponse) StatusCode ¶
func (r PauseSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RhcConnectionCollection ¶
type RhcConnectionCollection struct { Data *[]RhcConnectionRead `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
RhcConnectionCollection Collection of Red Hat Connector Connections along with the metadata
type RhcConnectionRead ¶
type RhcConnectionRead struct { // AvailabilityStatus The availability status of the connection AvailabilityStatus *RhcConnectionReadAvailabilityStatus `json:"availability_status,omitempty"` // AvailabilityStatusError The received error message when polling for the availability status AvailabilityStatusError *string `json:"availability_status_error,omitempty"` // Extra Extra data in JSON format Extra *map[string]interface{} `json:"extra,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // LastAvailableAt Timestamp of the last time the connection was available LastAvailableAt *time.Time `json:"last_available_at,omitempty"` // LastCheckedAt Timestamp of the last time the availability was checked for the connection LastCheckedAt *time.Time `json:"last_checked_at,omitempty"` // RhcId The UUID of the connection RhcId *string `json:"rhc_id,omitempty"` // SourceIds The connection's related sources SourceIds *[]ID `json:"source_ids,omitempty"` }
RhcConnectionRead defines model for RhcConnectionRead.
type RhcConnectionReadAvailabilityStatus ¶
type RhcConnectionReadAvailabilityStatus string
RhcConnectionReadAvailabilityStatus The availability status of the connection
const ( RhcConnectionReadAvailabilityStatusAvailable RhcConnectionReadAvailabilityStatus = "available" RhcConnectionReadAvailabilityStatusInProgress RhcConnectionReadAvailabilityStatus = "in_progress" RhcConnectionReadAvailabilityStatusPartiallyAvailable RhcConnectionReadAvailabilityStatus = "partially_available" )
Defines values for RhcConnectionReadAvailabilityStatus.
type ShowApplicationResponse ¶
type ShowApplicationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Application JSON400 *BadRequest JSON404 *NotFound }
func ParseShowApplicationResponse ¶
func ParseShowApplicationResponse(rsp *http.Response) (*ShowApplicationResponse, error)
ParseShowApplicationResponse parses an HTTP response from a ShowApplicationWithResponse call
func (ShowApplicationResponse) Status ¶
func (r ShowApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (ShowApplicationResponse) StatusCode ¶
func (r ShowApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowApplicationTypeResponse ¶
type ShowApplicationTypeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ApplicationType JSON400 *BadRequest JSON404 *NotFound }
func ParseShowApplicationTypeResponse ¶
func ParseShowApplicationTypeResponse(rsp *http.Response) (*ShowApplicationTypeResponse, error)
ParseShowApplicationTypeResponse parses an HTTP response from a ShowApplicationTypeWithResponse call
func (ShowApplicationTypeResponse) Status ¶
func (r ShowApplicationTypeResponse) Status() string
Status returns HTTPResponse.Status
func (ShowApplicationTypeResponse) StatusCode ¶
func (r ShowApplicationTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowSourceResponse ¶
type ShowSourceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Source JSON400 *BadRequest JSON404 *NotFound }
func ParseShowSourceResponse ¶
func ParseShowSourceResponse(rsp *http.Response) (*ShowSourceResponse, error)
ParseShowSourceResponse parses an HTTP response from a ShowSourceWithResponse call
func (ShowSourceResponse) Status ¶
func (r ShowSourceResponse) Status() string
Status returns HTTPResponse.Status
func (ShowSourceResponse) StatusCode ¶
func (r ShowSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShowSourceTypeResponse ¶
type ShowSourceTypeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SourceType JSON400 *BadRequest JSON404 *NotFound }
func ParseShowSourceTypeResponse ¶
func ParseShowSourceTypeResponse(rsp *http.Response) (*ShowSourceTypeResponse, error)
ParseShowSourceTypeResponse parses an HTTP response from a ShowSourceTypeWithResponse call
func (ShowSourceTypeResponse) Status ¶
func (r ShowSourceTypeResponse) Status() string
Status returns HTTPResponse.Status
func (ShowSourceTypeResponse) StatusCode ¶
func (r ShowSourceTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Source ¶
type Source struct { AppCreationWorkflow *SourceAppCreationWorkflow `json:"app_creation_workflow,omitempty"` // AvailabilityStatus The availability status of the source AvailabilityStatus *SourceAvailabilityStatus `json:"availability_status,omitempty"` // CreatedAt The timestamp for when the source was created. CreatedAt *time.Time `json:"created_at,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // Imported Was the source imported? Imported *string `json:"imported,omitempty"` // LastAvailableAt The timestamp for when the source was last available at. LastAvailableAt *time.Time `json:"last_available_at,omitempty"` // LastCheckedAt The timestamp for when the source was last checked at for the availability status. LastCheckedAt *time.Time `json:"last_checked_at,omitempty"` // Name The name of the source Name *string `json:"name,omitempty"` // PausedAt The timestamp for when the source was paused PausedAt *time.Time `json:"paused_at,omitempty"` // SourceRef The external referece or ID for the source SourceRef *string `json:"source_ref,omitempty"` // SourceTypeId ID of the resource SourceTypeId *ID `json:"source_type_id,omitempty"` // Uid Unique ID of the inventory source installation Uid *string `json:"uid,omitempty"` // UpdatedAt The timestamp for when the source was last updated UpdatedAt *time.Time `json:"updated_at,omitempty"` // Version The version of the source Version *string `json:"version,omitempty"` }
Source defines model for Source.
type SourceAppCreationWorkflow ¶
type SourceAppCreationWorkflow string
SourceAppCreationWorkflow defines model for Source.AppCreationWorkflow.
const ( SourceAppCreationWorkflowAccountAuthorization SourceAppCreationWorkflow = "account_authorization" SourceAppCreationWorkflowManualConfiguration SourceAppCreationWorkflow = "manual_configuration" )
Defines values for SourceAppCreationWorkflow.
type SourceAvailabilityStatus ¶
type SourceAvailabilityStatus string
SourceAvailabilityStatus The availability status of the source
const ( SourceAvailabilityStatusAvailable SourceAvailabilityStatus = "available" SourceAvailabilityStatusInProgress SourceAvailabilityStatus = "in_progress" SourceAvailabilityStatusPartiallyAvailable SourceAvailabilityStatus = "partially_available" )
Defines values for SourceAvailabilityStatus.
type SourceCreate ¶
type SourceCreate struct { // AppCreationWorkflow The way the source is going to be created: manually, or using superkey? AppCreationWorkflow *SourceCreateAppCreationWorkflow `json:"app_creation_workflow,omitempty"` // AvailabilityStatus The availability status of the source AvailabilityStatus *SourceCreateAvailabilityStatus `json:"availability_status,omitempty"` // Imported Was the source imported? Imported *string `json:"imported,omitempty"` // Name The name of the source Name *string `json:"name,omitempty"` // SourceRef The external referece or ID for the source SourceRef *string `json:"source_ref,omitempty"` // SourceTypeId The ID of the source type SourceTypeId *string `json:"source_type_id,omitempty"` // Uid Unique ID of the inventory source installation Uid *string `json:"uid,omitempty"` // Version The version of the source Version *string `json:"version,omitempty"` }
SourceCreate The payload that the back end accepts when creating a source
type SourceCreateAppCreationWorkflow ¶
type SourceCreateAppCreationWorkflow string
SourceCreateAppCreationWorkflow The way the source is going to be created: manually, or using superkey?
const ( AccountAuthorization SourceCreateAppCreationWorkflow = "account_authorization" ManualConfiguration SourceCreateAppCreationWorkflow = "manual_configuration" )
Defines values for SourceCreateAppCreationWorkflow.
type SourceCreateAvailabilityStatus ¶
type SourceCreateAvailabilityStatus string
SourceCreateAvailabilityStatus The availability status of the source
const ( SourceCreateAvailabilityStatusAvailable SourceCreateAvailabilityStatus = "available" SourceCreateAvailabilityStatusInProgress SourceCreateAvailabilityStatus = "in_progress" SourceCreateAvailabilityStatusPartiallyAvailable SourceCreateAvailabilityStatus = "partially_available" )
Defines values for SourceCreateAvailabilityStatus.
type SourceEdit ¶
type SourceEdit struct { // AvailabilityStatus The availability status of the source AvailabilityStatus *SourceEditAvailabilityStatus `json:"availability_status,omitempty"` // Imported Was the source imported? Imported *string `json:"imported,omitempty"` // LastAvailableAt The timestamp of the last time the source was seen as available LastAvailableAt *time.Time `json:"last_available_at,omitempty"` // LastCheckedAt The timestamp of the last time the source was checked for the availability status LastCheckedAt *time.Time `json:"last_checked_at,omitempty"` // Name The name of the source Name *string `json:"name,omitempty"` // SourceRef The external referece or ID for the source SourceRef *string `json:"source_ref,omitempty"` // Version The version of the source Version *string `json:"version,omitempty"` }
SourceEdit The payload that the back end accepts when editing a source
type SourceEditAvailabilityStatus ¶
type SourceEditAvailabilityStatus string
SourceEditAvailabilityStatus The availability status of the source
const ( SourceEditAvailabilityStatusAvailable SourceEditAvailabilityStatus = "available" SourceEditAvailabilityStatusInProgress SourceEditAvailabilityStatus = "in_progress" SourceEditAvailabilityStatusPartiallyAvailable SourceEditAvailabilityStatus = "partially_available" )
Defines values for SourceEditAvailabilityStatus.
type SourceType ¶
type SourceType struct { // Category The category of this source type Category *string `json:"category,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` // IconUrl The icon's URL for this source type IconUrl *string `json:"icon_url,omitempty"` // Id ID of the resource Id *ID `json:"id,omitempty"` // Name The name of the source type Name *string `json:"name,omitempty"` // ProductName The name of the product ProductName *string `json:"product_name,omitempty"` // Schema The schema for the front end to interpret how to show this source type Schema *map[string]interface{} `json:"schema,omitempty"` UpdatedAt *time.Time `json:"updated_at,omitempty"` // Vendor The vendor that developed this product Vendor *string `json:"vendor,omitempty"` }
SourceType defines model for SourceType.
type SourceTypesCollection ¶
type SourceTypesCollection struct { Data *[]SourceType `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
SourceTypesCollection defines model for SourceTypesCollection.
type SourcesCollection ¶
type SourcesCollection struct { Data *[]Source `json:"data,omitempty"` Links *CollectionLinks `json:"links,omitempty"` Meta *CollectionMetadata `json:"meta,omitempty"` }
SourcesCollection An array containing source objects
type UnpauseApplicationResponse ¶
type UnpauseApplicationResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON404 *NotFound }
func ParseUnpauseApplicationResponse ¶
func ParseUnpauseApplicationResponse(rsp *http.Response) (*UnpauseApplicationResponse, error)
ParseUnpauseApplicationResponse parses an HTTP response from a UnpauseApplicationWithResponse call
func (UnpauseApplicationResponse) Status ¶
func (r UnpauseApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (UnpauseApplicationResponse) StatusCode ¶
func (r UnpauseApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnpauseSourceResponse ¶
type UnpauseSourceResponse struct { Body []byte HTTPResponse *http.Response JSON400 *BadRequest JSON404 *NotFound }
func ParseUnpauseSourceResponse ¶
func ParseUnpauseSourceResponse(rsp *http.Response) (*UnpauseSourceResponse, error)
ParseUnpauseSourceResponse parses an HTTP response from a UnpauseSourceWithResponse call
func (UnpauseSourceResponse) Status ¶
func (r UnpauseSourceResponse) Status() string
Status returns HTTPResponse.Status
func (UnpauseSourceResponse) StatusCode ¶
func (r UnpauseSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateApplicationJSONRequestBody ¶
type UpdateApplicationJSONRequestBody = ApplicationUpdate
UpdateApplicationJSONRequestBody defines body for UpdateApplication for application/json ContentType.
type UpdateApplicationResponse ¶
type UpdateApplicationResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Application JSON400 *BadRequest JSON404 *NotFound }
func ParseUpdateApplicationResponse ¶
func ParseUpdateApplicationResponse(rsp *http.Response) (*UpdateApplicationResponse, error)
ParseUpdateApplicationResponse parses an HTTP response from a UpdateApplicationWithResponse call
func (UpdateApplicationResponse) Status ¶
func (r UpdateApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateApplicationResponse) StatusCode ¶
func (r UpdateApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSourceJSONRequestBody ¶
type UpdateSourceJSONRequestBody = SourceEdit
UpdateSourceJSONRequestBody defines body for UpdateSource for application/json ContentType.
type UpdateSourceResponse ¶
type UpdateSourceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Source JSON400 *ErrorBadRequest JSON404 *NotFound }
func ParseUpdateSourceResponse ¶
func ParseUpdateSourceResponse(rsp *http.Response) (*UpdateSourceResponse, error)
ParseUpdateSourceResponse parses an HTTP response from a UpdateSourceWithResponse call
func (UpdateSourceResponse) Status ¶
func (r UpdateSourceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSourceResponse) StatusCode ¶
func (r UpdateSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode