Documentation ¶
Index ¶
- type Client
- func (a *Client) GetRecommendation(params *GetRecommendationParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRecommendationOK, error)
- func (a *Client) GetRecommendationResource(params *GetRecommendationResourceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRecommendationResourceOK, error)
- func (a *Client) GetRecommendationResources(params *GetRecommendationResourcesParams, ...) (*GetRecommendationResourcesOK, error)
- func (a *Client) GetRecommendations(params *GetRecommendationsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRecommendationsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetRecommendationNotFound
- func (o *GetRecommendationNotFound) Code() int
- func (o *GetRecommendationNotFound) Error() string
- func (o *GetRecommendationNotFound) GetPayload() *models.Errors
- func (o *GetRecommendationNotFound) IsClientError() bool
- func (o *GetRecommendationNotFound) IsCode(code int) bool
- func (o *GetRecommendationNotFound) IsRedirect() bool
- func (o *GetRecommendationNotFound) IsServerError() bool
- func (o *GetRecommendationNotFound) IsSuccess() bool
- func (o *GetRecommendationNotFound) String() string
- type GetRecommendationOK
- func (o *GetRecommendationOK) Code() int
- func (o *GetRecommendationOK) Error() string
- func (o *GetRecommendationOK) GetPayload() *models.Recommendation
- func (o *GetRecommendationOK) IsClientError() bool
- func (o *GetRecommendationOK) IsCode(code int) bool
- func (o *GetRecommendationOK) IsRedirect() bool
- func (o *GetRecommendationOK) IsServerError() bool
- func (o *GetRecommendationOK) IsSuccess() bool
- func (o *GetRecommendationOK) String() string
- type GetRecommendationParams
- func NewGetRecommendationParams() *GetRecommendationParams
- func NewGetRecommendationParamsWithContext(ctx context.Context) *GetRecommendationParams
- func NewGetRecommendationParamsWithHTTPClient(client *http.Client) *GetRecommendationParams
- func NewGetRecommendationParamsWithTimeout(timeout time.Duration) *GetRecommendationParams
- func (o *GetRecommendationParams) SetContext(ctx context.Context)
- func (o *GetRecommendationParams) SetDefaults()
- func (o *GetRecommendationParams) SetHTTPClient(client *http.Client)
- func (o *GetRecommendationParams) SetRecommendationToken(recommendationToken string)
- func (o *GetRecommendationParams) SetTimeout(timeout time.Duration)
- func (o *GetRecommendationParams) WithContext(ctx context.Context) *GetRecommendationParams
- func (o *GetRecommendationParams) WithDefaults() *GetRecommendationParams
- func (o *GetRecommendationParams) WithHTTPClient(client *http.Client) *GetRecommendationParams
- func (o *GetRecommendationParams) WithRecommendationToken(recommendationToken string) *GetRecommendationParams
- func (o *GetRecommendationParams) WithTimeout(timeout time.Duration) *GetRecommendationParams
- func (o *GetRecommendationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRecommendationReader
- type GetRecommendationResourceNotFound
- func (o *GetRecommendationResourceNotFound) Code() int
- func (o *GetRecommendationResourceNotFound) Error() string
- func (o *GetRecommendationResourceNotFound) GetPayload() *models.Errors
- func (o *GetRecommendationResourceNotFound) IsClientError() bool
- func (o *GetRecommendationResourceNotFound) IsCode(code int) bool
- func (o *GetRecommendationResourceNotFound) IsRedirect() bool
- func (o *GetRecommendationResourceNotFound) IsServerError() bool
- func (o *GetRecommendationResourceNotFound) IsSuccess() bool
- func (o *GetRecommendationResourceNotFound) String() string
- type GetRecommendationResourceOK
- func (o *GetRecommendationResourceOK) Code() int
- func (o *GetRecommendationResourceOK) Error() string
- func (o *GetRecommendationResourceOK) GetPayload() *models.ProviderResource
- func (o *GetRecommendationResourceOK) IsClientError() bool
- func (o *GetRecommendationResourceOK) IsCode(code int) bool
- func (o *GetRecommendationResourceOK) IsRedirect() bool
- func (o *GetRecommendationResourceOK) IsServerError() bool
- func (o *GetRecommendationResourceOK) IsSuccess() bool
- func (o *GetRecommendationResourceOK) String() string
- type GetRecommendationResourceParams
- func NewGetRecommendationResourceParams() *GetRecommendationResourceParams
- func NewGetRecommendationResourceParamsWithContext(ctx context.Context) *GetRecommendationResourceParams
- func NewGetRecommendationResourceParamsWithHTTPClient(client *http.Client) *GetRecommendationResourceParams
- func NewGetRecommendationResourceParamsWithTimeout(timeout time.Duration) *GetRecommendationResourceParams
- func (o *GetRecommendationResourceParams) SetContext(ctx context.Context)
- func (o *GetRecommendationResourceParams) SetDefaults()
- func (o *GetRecommendationResourceParams) SetHTTPClient(client *http.Client)
- func (o *GetRecommendationResourceParams) SetRecommendationToken(recommendationToken string)
- func (o *GetRecommendationResourceParams) SetResourceToken(resourceToken string)
- func (o *GetRecommendationResourceParams) SetTimeout(timeout time.Duration)
- func (o *GetRecommendationResourceParams) WithContext(ctx context.Context) *GetRecommendationResourceParams
- func (o *GetRecommendationResourceParams) WithDefaults() *GetRecommendationResourceParams
- func (o *GetRecommendationResourceParams) WithHTTPClient(client *http.Client) *GetRecommendationResourceParams
- func (o *GetRecommendationResourceParams) WithRecommendationToken(recommendationToken string) *GetRecommendationResourceParams
- func (o *GetRecommendationResourceParams) WithResourceToken(resourceToken string) *GetRecommendationResourceParams
- func (o *GetRecommendationResourceParams) WithTimeout(timeout time.Duration) *GetRecommendationResourceParams
- func (o *GetRecommendationResourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRecommendationResourceReader
- type GetRecommendationResourcesOK
- func (o *GetRecommendationResourcesOK) Code() int
- func (o *GetRecommendationResourcesOK) Error() string
- func (o *GetRecommendationResourcesOK) GetPayload() *models.ProviderResource
- func (o *GetRecommendationResourcesOK) IsClientError() bool
- func (o *GetRecommendationResourcesOK) IsCode(code int) bool
- func (o *GetRecommendationResourcesOK) IsRedirect() bool
- func (o *GetRecommendationResourcesOK) IsServerError() bool
- func (o *GetRecommendationResourcesOK) IsSuccess() bool
- func (o *GetRecommendationResourcesOK) String() string
- type GetRecommendationResourcesParams
- func NewGetRecommendationResourcesParams() *GetRecommendationResourcesParams
- func NewGetRecommendationResourcesParamsWithContext(ctx context.Context) *GetRecommendationResourcesParams
- func NewGetRecommendationResourcesParamsWithHTTPClient(client *http.Client) *GetRecommendationResourcesParams
- func NewGetRecommendationResourcesParamsWithTimeout(timeout time.Duration) *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) SetContext(ctx context.Context)
- func (o *GetRecommendationResourcesParams) SetDefaults()
- func (o *GetRecommendationResourcesParams) SetHTTPClient(client *http.Client)
- func (o *GetRecommendationResourcesParams) SetLimit(limit *int32)
- func (o *GetRecommendationResourcesParams) SetPage(page *int32)
- func (o *GetRecommendationResourcesParams) SetRecommendationToken(recommendationToken string)
- func (o *GetRecommendationResourcesParams) SetTimeout(timeout time.Duration)
- func (o *GetRecommendationResourcesParams) WithContext(ctx context.Context) *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) WithDefaults() *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) WithHTTPClient(client *http.Client) *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) WithLimit(limit *int32) *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) WithPage(page *int32) *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) WithRecommendationToken(recommendationToken string) *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) WithTimeout(timeout time.Duration) *GetRecommendationResourcesParams
- func (o *GetRecommendationResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRecommendationResourcesReader
- type GetRecommendationsOK
- func (o *GetRecommendationsOK) Code() int
- func (o *GetRecommendationsOK) Error() string
- func (o *GetRecommendationsOK) GetPayload() *models.Recommendations
- func (o *GetRecommendationsOK) IsClientError() bool
- func (o *GetRecommendationsOK) IsCode(code int) bool
- func (o *GetRecommendationsOK) IsRedirect() bool
- func (o *GetRecommendationsOK) IsServerError() bool
- func (o *GetRecommendationsOK) IsSuccess() bool
- func (o *GetRecommendationsOK) String() string
- type GetRecommendationsParams
- func NewGetRecommendationsParams() *GetRecommendationsParams
- func NewGetRecommendationsParamsWithContext(ctx context.Context) *GetRecommendationsParams
- func NewGetRecommendationsParamsWithHTTPClient(client *http.Client) *GetRecommendationsParams
- func NewGetRecommendationsParamsWithTimeout(timeout time.Duration) *GetRecommendationsParams
- func (o *GetRecommendationsParams) SetCategory(category *string)
- func (o *GetRecommendationsParams) SetContext(ctx context.Context)
- func (o *GetRecommendationsParams) SetDefaults()
- func (o *GetRecommendationsParams) SetHTTPClient(client *http.Client)
- func (o *GetRecommendationsParams) SetLimit(limit *int32)
- func (o *GetRecommendationsParams) SetPage(page *int32)
- func (o *GetRecommendationsParams) SetProvider(provider *string)
- func (o *GetRecommendationsParams) SetProviderAccountID(providerAccountID *string)
- func (o *GetRecommendationsParams) SetTimeout(timeout time.Duration)
- func (o *GetRecommendationsParams) SetWorkspaceToken(workspaceToken *string)
- func (o *GetRecommendationsParams) WithCategory(category *string) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithContext(ctx context.Context) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithDefaults() *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithHTTPClient(client *http.Client) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithLimit(limit *int32) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithPage(page *int32) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithProvider(provider *string) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithProviderAccountID(providerAccountID *string) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithTimeout(timeout time.Duration) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WithWorkspaceToken(workspaceToken *string) *GetRecommendationsParams
- func (o *GetRecommendationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRecommendationsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for recommendations API
func (*Client) GetRecommendation ¶
func (a *Client) GetRecommendation(params *GetRecommendationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationOK, error)
GetRecommendation Return a Recommendation.
func (*Client) GetRecommendationResource ¶
func (a *Client) GetRecommendationResource(params *GetRecommendationResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationResourceOK, error)
GetRecommendationResource Return an Active Resource, including Recommendation Actions, referenced in this Recommendation.
func (*Client) GetRecommendationResources ¶
func (a *Client) GetRecommendationResources(params *GetRecommendationResourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationResourcesOK, error)
GetRecommendationResources Return all Active Resources, including Recommendation Actions, referenced in this Recommendation.
func (*Client) GetRecommendations ¶
func (a *Client) GetRecommendations(params *GetRecommendationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationsOK, error)
GetRecommendations Return all Recommendations.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { GetRecommendation(params *GetRecommendationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationOK, error) GetRecommendationResource(params *GetRecommendationResourceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationResourceOK, error) GetRecommendationResources(params *GetRecommendationResourcesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationResourcesOK, error) GetRecommendations(params *GetRecommendationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecommendationsOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new recommendations API client.
func NewClientWithBasicAuth ¶ added in v0.0.33
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new recommendations API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.0.33
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new recommendations API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetRecommendationNotFound ¶
GetRecommendationNotFound describes a response with status code 404, with default header values.
NotFound
func NewGetRecommendationNotFound ¶
func NewGetRecommendationNotFound() *GetRecommendationNotFound
NewGetRecommendationNotFound creates a GetRecommendationNotFound with default headers values
func (*GetRecommendationNotFound) Code ¶
func (o *GetRecommendationNotFound) Code() int
Code gets the status code for the get recommendation not found response
func (*GetRecommendationNotFound) Error ¶
func (o *GetRecommendationNotFound) Error() string
func (*GetRecommendationNotFound) GetPayload ¶
func (o *GetRecommendationNotFound) GetPayload() *models.Errors
func (*GetRecommendationNotFound) IsClientError ¶
func (o *GetRecommendationNotFound) IsClientError() bool
IsClientError returns true when this get recommendation not found response has a 4xx status code
func (*GetRecommendationNotFound) IsCode ¶
func (o *GetRecommendationNotFound) IsCode(code int) bool
IsCode returns true when this get recommendation not found response a status code equal to that given
func (*GetRecommendationNotFound) IsRedirect ¶
func (o *GetRecommendationNotFound) IsRedirect() bool
IsRedirect returns true when this get recommendation not found response has a 3xx status code
func (*GetRecommendationNotFound) IsServerError ¶
func (o *GetRecommendationNotFound) IsServerError() bool
IsServerError returns true when this get recommendation not found response has a 5xx status code
func (*GetRecommendationNotFound) IsSuccess ¶
func (o *GetRecommendationNotFound) IsSuccess() bool
IsSuccess returns true when this get recommendation not found response has a 2xx status code
func (*GetRecommendationNotFound) String ¶
func (o *GetRecommendationNotFound) String() string
type GetRecommendationOK ¶
type GetRecommendationOK struct {
Payload *models.Recommendation
}
GetRecommendationOK describes a response with status code 200, with default header values.
GetRecommendationOK get recommendation o k
func NewGetRecommendationOK ¶
func NewGetRecommendationOK() *GetRecommendationOK
NewGetRecommendationOK creates a GetRecommendationOK with default headers values
func (*GetRecommendationOK) Code ¶
func (o *GetRecommendationOK) Code() int
Code gets the status code for the get recommendation o k response
func (*GetRecommendationOK) Error ¶
func (o *GetRecommendationOK) Error() string
func (*GetRecommendationOK) GetPayload ¶
func (o *GetRecommendationOK) GetPayload() *models.Recommendation
func (*GetRecommendationOK) IsClientError ¶
func (o *GetRecommendationOK) IsClientError() bool
IsClientError returns true when this get recommendation o k response has a 4xx status code
func (*GetRecommendationOK) IsCode ¶
func (o *GetRecommendationOK) IsCode(code int) bool
IsCode returns true when this get recommendation o k response a status code equal to that given
func (*GetRecommendationOK) IsRedirect ¶
func (o *GetRecommendationOK) IsRedirect() bool
IsRedirect returns true when this get recommendation o k response has a 3xx status code
func (*GetRecommendationOK) IsServerError ¶
func (o *GetRecommendationOK) IsServerError() bool
IsServerError returns true when this get recommendation o k response has a 5xx status code
func (*GetRecommendationOK) IsSuccess ¶
func (o *GetRecommendationOK) IsSuccess() bool
IsSuccess returns true when this get recommendation o k response has a 2xx status code
func (*GetRecommendationOK) String ¶
func (o *GetRecommendationOK) String() string
type GetRecommendationParams ¶
type GetRecommendationParams struct { // RecommendationToken. RecommendationToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRecommendationParams contains all the parameters to send to the API endpoint
for the get recommendation operation. Typically these are written to a http.Request.
func NewGetRecommendationParams ¶
func NewGetRecommendationParams() *GetRecommendationParams
NewGetRecommendationParams creates a new GetRecommendationParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRecommendationParamsWithContext ¶
func NewGetRecommendationParamsWithContext(ctx context.Context) *GetRecommendationParams
NewGetRecommendationParamsWithContext creates a new GetRecommendationParams object with the ability to set a context for a request.
func NewGetRecommendationParamsWithHTTPClient ¶
func NewGetRecommendationParamsWithHTTPClient(client *http.Client) *GetRecommendationParams
NewGetRecommendationParamsWithHTTPClient creates a new GetRecommendationParams object with the ability to set a custom HTTPClient for a request.
func NewGetRecommendationParamsWithTimeout ¶
func NewGetRecommendationParamsWithTimeout(timeout time.Duration) *GetRecommendationParams
NewGetRecommendationParamsWithTimeout creates a new GetRecommendationParams object with the ability to set a timeout on a request.
func (*GetRecommendationParams) SetContext ¶
func (o *GetRecommendationParams) SetContext(ctx context.Context)
SetContext adds the context to the get recommendation params
func (*GetRecommendationParams) SetDefaults ¶
func (o *GetRecommendationParams) SetDefaults()
SetDefaults hydrates default values in the get recommendation params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationParams) SetHTTPClient ¶
func (o *GetRecommendationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get recommendation params
func (*GetRecommendationParams) SetRecommendationToken ¶
func (o *GetRecommendationParams) SetRecommendationToken(recommendationToken string)
SetRecommendationToken adds the recommendationToken to the get recommendation params
func (*GetRecommendationParams) SetTimeout ¶
func (o *GetRecommendationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get recommendation params
func (*GetRecommendationParams) WithContext ¶
func (o *GetRecommendationParams) WithContext(ctx context.Context) *GetRecommendationParams
WithContext adds the context to the get recommendation params
func (*GetRecommendationParams) WithDefaults ¶
func (o *GetRecommendationParams) WithDefaults() *GetRecommendationParams
WithDefaults hydrates default values in the get recommendation params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationParams) WithHTTPClient ¶
func (o *GetRecommendationParams) WithHTTPClient(client *http.Client) *GetRecommendationParams
WithHTTPClient adds the HTTPClient to the get recommendation params
func (*GetRecommendationParams) WithRecommendationToken ¶
func (o *GetRecommendationParams) WithRecommendationToken(recommendationToken string) *GetRecommendationParams
WithRecommendationToken adds the recommendationToken to the get recommendation params
func (*GetRecommendationParams) WithTimeout ¶
func (o *GetRecommendationParams) WithTimeout(timeout time.Duration) *GetRecommendationParams
WithTimeout adds the timeout to the get recommendation params
func (*GetRecommendationParams) WriteToRequest ¶
func (o *GetRecommendationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRecommendationReader ¶
type GetRecommendationReader struct {
// contains filtered or unexported fields
}
GetRecommendationReader is a Reader for the GetRecommendation structure.
func (*GetRecommendationReader) ReadResponse ¶
func (o *GetRecommendationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRecommendationResourceNotFound ¶
GetRecommendationResourceNotFound describes a response with status code 404, with default header values.
NotFound
func NewGetRecommendationResourceNotFound ¶
func NewGetRecommendationResourceNotFound() *GetRecommendationResourceNotFound
NewGetRecommendationResourceNotFound creates a GetRecommendationResourceNotFound with default headers values
func (*GetRecommendationResourceNotFound) Code ¶
func (o *GetRecommendationResourceNotFound) Code() int
Code gets the status code for the get recommendation resource not found response
func (*GetRecommendationResourceNotFound) Error ¶
func (o *GetRecommendationResourceNotFound) Error() string
func (*GetRecommendationResourceNotFound) GetPayload ¶
func (o *GetRecommendationResourceNotFound) GetPayload() *models.Errors
func (*GetRecommendationResourceNotFound) IsClientError ¶
func (o *GetRecommendationResourceNotFound) IsClientError() bool
IsClientError returns true when this get recommendation resource not found response has a 4xx status code
func (*GetRecommendationResourceNotFound) IsCode ¶
func (o *GetRecommendationResourceNotFound) IsCode(code int) bool
IsCode returns true when this get recommendation resource not found response a status code equal to that given
func (*GetRecommendationResourceNotFound) IsRedirect ¶
func (o *GetRecommendationResourceNotFound) IsRedirect() bool
IsRedirect returns true when this get recommendation resource not found response has a 3xx status code
func (*GetRecommendationResourceNotFound) IsServerError ¶
func (o *GetRecommendationResourceNotFound) IsServerError() bool
IsServerError returns true when this get recommendation resource not found response has a 5xx status code
func (*GetRecommendationResourceNotFound) IsSuccess ¶
func (o *GetRecommendationResourceNotFound) IsSuccess() bool
IsSuccess returns true when this get recommendation resource not found response has a 2xx status code
func (*GetRecommendationResourceNotFound) String ¶
func (o *GetRecommendationResourceNotFound) String() string
type GetRecommendationResourceOK ¶
type GetRecommendationResourceOK struct {
Payload *models.ProviderResource
}
GetRecommendationResourceOK describes a response with status code 200, with default header values.
GetRecommendationResourceOK get recommendation resource o k
func NewGetRecommendationResourceOK ¶
func NewGetRecommendationResourceOK() *GetRecommendationResourceOK
NewGetRecommendationResourceOK creates a GetRecommendationResourceOK with default headers values
func (*GetRecommendationResourceOK) Code ¶
func (o *GetRecommendationResourceOK) Code() int
Code gets the status code for the get recommendation resource o k response
func (*GetRecommendationResourceOK) Error ¶
func (o *GetRecommendationResourceOK) Error() string
func (*GetRecommendationResourceOK) GetPayload ¶
func (o *GetRecommendationResourceOK) GetPayload() *models.ProviderResource
func (*GetRecommendationResourceOK) IsClientError ¶
func (o *GetRecommendationResourceOK) IsClientError() bool
IsClientError returns true when this get recommendation resource o k response has a 4xx status code
func (*GetRecommendationResourceOK) IsCode ¶
func (o *GetRecommendationResourceOK) IsCode(code int) bool
IsCode returns true when this get recommendation resource o k response a status code equal to that given
func (*GetRecommendationResourceOK) IsRedirect ¶
func (o *GetRecommendationResourceOK) IsRedirect() bool
IsRedirect returns true when this get recommendation resource o k response has a 3xx status code
func (*GetRecommendationResourceOK) IsServerError ¶
func (o *GetRecommendationResourceOK) IsServerError() bool
IsServerError returns true when this get recommendation resource o k response has a 5xx status code
func (*GetRecommendationResourceOK) IsSuccess ¶
func (o *GetRecommendationResourceOK) IsSuccess() bool
IsSuccess returns true when this get recommendation resource o k response has a 2xx status code
func (*GetRecommendationResourceOK) String ¶
func (o *GetRecommendationResourceOK) String() string
type GetRecommendationResourceParams ¶
type GetRecommendationResourceParams struct { // RecommendationToken. RecommendationToken string // ResourceToken. ResourceToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRecommendationResourceParams contains all the parameters to send to the API endpoint
for the get recommendation resource operation. Typically these are written to a http.Request.
func NewGetRecommendationResourceParams ¶
func NewGetRecommendationResourceParams() *GetRecommendationResourceParams
NewGetRecommendationResourceParams creates a new GetRecommendationResourceParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRecommendationResourceParamsWithContext ¶
func NewGetRecommendationResourceParamsWithContext(ctx context.Context) *GetRecommendationResourceParams
NewGetRecommendationResourceParamsWithContext creates a new GetRecommendationResourceParams object with the ability to set a context for a request.
func NewGetRecommendationResourceParamsWithHTTPClient ¶
func NewGetRecommendationResourceParamsWithHTTPClient(client *http.Client) *GetRecommendationResourceParams
NewGetRecommendationResourceParamsWithHTTPClient creates a new GetRecommendationResourceParams object with the ability to set a custom HTTPClient for a request.
func NewGetRecommendationResourceParamsWithTimeout ¶
func NewGetRecommendationResourceParamsWithTimeout(timeout time.Duration) *GetRecommendationResourceParams
NewGetRecommendationResourceParamsWithTimeout creates a new GetRecommendationResourceParams object with the ability to set a timeout on a request.
func (*GetRecommendationResourceParams) SetContext ¶
func (o *GetRecommendationResourceParams) SetContext(ctx context.Context)
SetContext adds the context to the get recommendation resource params
func (*GetRecommendationResourceParams) SetDefaults ¶
func (o *GetRecommendationResourceParams) SetDefaults()
SetDefaults hydrates default values in the get recommendation resource params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationResourceParams) SetHTTPClient ¶
func (o *GetRecommendationResourceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get recommendation resource params
func (*GetRecommendationResourceParams) SetRecommendationToken ¶
func (o *GetRecommendationResourceParams) SetRecommendationToken(recommendationToken string)
SetRecommendationToken adds the recommendationToken to the get recommendation resource params
func (*GetRecommendationResourceParams) SetResourceToken ¶
func (o *GetRecommendationResourceParams) SetResourceToken(resourceToken string)
SetResourceToken adds the resourceToken to the get recommendation resource params
func (*GetRecommendationResourceParams) SetTimeout ¶
func (o *GetRecommendationResourceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get recommendation resource params
func (*GetRecommendationResourceParams) WithContext ¶
func (o *GetRecommendationResourceParams) WithContext(ctx context.Context) *GetRecommendationResourceParams
WithContext adds the context to the get recommendation resource params
func (*GetRecommendationResourceParams) WithDefaults ¶
func (o *GetRecommendationResourceParams) WithDefaults() *GetRecommendationResourceParams
WithDefaults hydrates default values in the get recommendation resource params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationResourceParams) WithHTTPClient ¶
func (o *GetRecommendationResourceParams) WithHTTPClient(client *http.Client) *GetRecommendationResourceParams
WithHTTPClient adds the HTTPClient to the get recommendation resource params
func (*GetRecommendationResourceParams) WithRecommendationToken ¶
func (o *GetRecommendationResourceParams) WithRecommendationToken(recommendationToken string) *GetRecommendationResourceParams
WithRecommendationToken adds the recommendationToken to the get recommendation resource params
func (*GetRecommendationResourceParams) WithResourceToken ¶
func (o *GetRecommendationResourceParams) WithResourceToken(resourceToken string) *GetRecommendationResourceParams
WithResourceToken adds the resourceToken to the get recommendation resource params
func (*GetRecommendationResourceParams) WithTimeout ¶
func (o *GetRecommendationResourceParams) WithTimeout(timeout time.Duration) *GetRecommendationResourceParams
WithTimeout adds the timeout to the get recommendation resource params
func (*GetRecommendationResourceParams) WriteToRequest ¶
func (o *GetRecommendationResourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRecommendationResourceReader ¶
type GetRecommendationResourceReader struct {
// contains filtered or unexported fields
}
GetRecommendationResourceReader is a Reader for the GetRecommendationResource structure.
func (*GetRecommendationResourceReader) ReadResponse ¶
func (o *GetRecommendationResourceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRecommendationResourcesOK ¶
type GetRecommendationResourcesOK struct {
Payload *models.ProviderResource
}
GetRecommendationResourcesOK describes a response with status code 200, with default header values.
GetRecommendationResourcesOK get recommendation resources o k
func NewGetRecommendationResourcesOK ¶
func NewGetRecommendationResourcesOK() *GetRecommendationResourcesOK
NewGetRecommendationResourcesOK creates a GetRecommendationResourcesOK with default headers values
func (*GetRecommendationResourcesOK) Code ¶
func (o *GetRecommendationResourcesOK) Code() int
Code gets the status code for the get recommendation resources o k response
func (*GetRecommendationResourcesOK) Error ¶
func (o *GetRecommendationResourcesOK) Error() string
func (*GetRecommendationResourcesOK) GetPayload ¶
func (o *GetRecommendationResourcesOK) GetPayload() *models.ProviderResource
func (*GetRecommendationResourcesOK) IsClientError ¶
func (o *GetRecommendationResourcesOK) IsClientError() bool
IsClientError returns true when this get recommendation resources o k response has a 4xx status code
func (*GetRecommendationResourcesOK) IsCode ¶
func (o *GetRecommendationResourcesOK) IsCode(code int) bool
IsCode returns true when this get recommendation resources o k response a status code equal to that given
func (*GetRecommendationResourcesOK) IsRedirect ¶
func (o *GetRecommendationResourcesOK) IsRedirect() bool
IsRedirect returns true when this get recommendation resources o k response has a 3xx status code
func (*GetRecommendationResourcesOK) IsServerError ¶
func (o *GetRecommendationResourcesOK) IsServerError() bool
IsServerError returns true when this get recommendation resources o k response has a 5xx status code
func (*GetRecommendationResourcesOK) IsSuccess ¶
func (o *GetRecommendationResourcesOK) IsSuccess() bool
IsSuccess returns true when this get recommendation resources o k response has a 2xx status code
func (*GetRecommendationResourcesOK) String ¶
func (o *GetRecommendationResourcesOK) String() string
type GetRecommendationResourcesParams ¶
type GetRecommendationResourcesParams struct { /* Limit. The number of results to return. The maximum is 1000. Format: int32 */ Limit *int32 /* Page. The page of results to return. Format: int32 */ Page *int32 // RecommendationToken. RecommendationToken string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRecommendationResourcesParams contains all the parameters to send to the API endpoint
for the get recommendation resources operation. Typically these are written to a http.Request.
func NewGetRecommendationResourcesParams ¶
func NewGetRecommendationResourcesParams() *GetRecommendationResourcesParams
NewGetRecommendationResourcesParams creates a new GetRecommendationResourcesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRecommendationResourcesParamsWithContext ¶
func NewGetRecommendationResourcesParamsWithContext(ctx context.Context) *GetRecommendationResourcesParams
NewGetRecommendationResourcesParamsWithContext creates a new GetRecommendationResourcesParams object with the ability to set a context for a request.
func NewGetRecommendationResourcesParamsWithHTTPClient ¶
func NewGetRecommendationResourcesParamsWithHTTPClient(client *http.Client) *GetRecommendationResourcesParams
NewGetRecommendationResourcesParamsWithHTTPClient creates a new GetRecommendationResourcesParams object with the ability to set a custom HTTPClient for a request.
func NewGetRecommendationResourcesParamsWithTimeout ¶
func NewGetRecommendationResourcesParamsWithTimeout(timeout time.Duration) *GetRecommendationResourcesParams
NewGetRecommendationResourcesParamsWithTimeout creates a new GetRecommendationResourcesParams object with the ability to set a timeout on a request.
func (*GetRecommendationResourcesParams) SetContext ¶
func (o *GetRecommendationResourcesParams) SetContext(ctx context.Context)
SetContext adds the context to the get recommendation resources params
func (*GetRecommendationResourcesParams) SetDefaults ¶
func (o *GetRecommendationResourcesParams) SetDefaults()
SetDefaults hydrates default values in the get recommendation resources params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationResourcesParams) SetHTTPClient ¶
func (o *GetRecommendationResourcesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get recommendation resources params
func (*GetRecommendationResourcesParams) SetLimit ¶
func (o *GetRecommendationResourcesParams) SetLimit(limit *int32)
SetLimit adds the limit to the get recommendation resources params
func (*GetRecommendationResourcesParams) SetPage ¶
func (o *GetRecommendationResourcesParams) SetPage(page *int32)
SetPage adds the page to the get recommendation resources params
func (*GetRecommendationResourcesParams) SetRecommendationToken ¶
func (o *GetRecommendationResourcesParams) SetRecommendationToken(recommendationToken string)
SetRecommendationToken adds the recommendationToken to the get recommendation resources params
func (*GetRecommendationResourcesParams) SetTimeout ¶
func (o *GetRecommendationResourcesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get recommendation resources params
func (*GetRecommendationResourcesParams) WithContext ¶
func (o *GetRecommendationResourcesParams) WithContext(ctx context.Context) *GetRecommendationResourcesParams
WithContext adds the context to the get recommendation resources params
func (*GetRecommendationResourcesParams) WithDefaults ¶
func (o *GetRecommendationResourcesParams) WithDefaults() *GetRecommendationResourcesParams
WithDefaults hydrates default values in the get recommendation resources params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationResourcesParams) WithHTTPClient ¶
func (o *GetRecommendationResourcesParams) WithHTTPClient(client *http.Client) *GetRecommendationResourcesParams
WithHTTPClient adds the HTTPClient to the get recommendation resources params
func (*GetRecommendationResourcesParams) WithLimit ¶
func (o *GetRecommendationResourcesParams) WithLimit(limit *int32) *GetRecommendationResourcesParams
WithLimit adds the limit to the get recommendation resources params
func (*GetRecommendationResourcesParams) WithPage ¶
func (o *GetRecommendationResourcesParams) WithPage(page *int32) *GetRecommendationResourcesParams
WithPage adds the page to the get recommendation resources params
func (*GetRecommendationResourcesParams) WithRecommendationToken ¶
func (o *GetRecommendationResourcesParams) WithRecommendationToken(recommendationToken string) *GetRecommendationResourcesParams
WithRecommendationToken adds the recommendationToken to the get recommendation resources params
func (*GetRecommendationResourcesParams) WithTimeout ¶
func (o *GetRecommendationResourcesParams) WithTimeout(timeout time.Duration) *GetRecommendationResourcesParams
WithTimeout adds the timeout to the get recommendation resources params
func (*GetRecommendationResourcesParams) WriteToRequest ¶
func (o *GetRecommendationResourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRecommendationResourcesReader ¶
type GetRecommendationResourcesReader struct {
// contains filtered or unexported fields
}
GetRecommendationResourcesReader is a Reader for the GetRecommendationResources structure.
func (*GetRecommendationResourcesReader) ReadResponse ¶
func (o *GetRecommendationResourcesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRecommendationsOK ¶
type GetRecommendationsOK struct {
Payload *models.Recommendations
}
GetRecommendationsOK describes a response with status code 200, with default header values.
GetRecommendationsOK get recommendations o k
func NewGetRecommendationsOK ¶
func NewGetRecommendationsOK() *GetRecommendationsOK
NewGetRecommendationsOK creates a GetRecommendationsOK with default headers values
func (*GetRecommendationsOK) Code ¶
func (o *GetRecommendationsOK) Code() int
Code gets the status code for the get recommendations o k response
func (*GetRecommendationsOK) Error ¶
func (o *GetRecommendationsOK) Error() string
func (*GetRecommendationsOK) GetPayload ¶
func (o *GetRecommendationsOK) GetPayload() *models.Recommendations
func (*GetRecommendationsOK) IsClientError ¶
func (o *GetRecommendationsOK) IsClientError() bool
IsClientError returns true when this get recommendations o k response has a 4xx status code
func (*GetRecommendationsOK) IsCode ¶
func (o *GetRecommendationsOK) IsCode(code int) bool
IsCode returns true when this get recommendations o k response a status code equal to that given
func (*GetRecommendationsOK) IsRedirect ¶
func (o *GetRecommendationsOK) IsRedirect() bool
IsRedirect returns true when this get recommendations o k response has a 3xx status code
func (*GetRecommendationsOK) IsServerError ¶
func (o *GetRecommendationsOK) IsServerError() bool
IsServerError returns true when this get recommendations o k response has a 5xx status code
func (*GetRecommendationsOK) IsSuccess ¶
func (o *GetRecommendationsOK) IsSuccess() bool
IsSuccess returns true when this get recommendations o k response has a 2xx status code
func (*GetRecommendationsOK) String ¶
func (o *GetRecommendationsOK) String() string
type GetRecommendationsParams ¶
type GetRecommendationsParams struct { /* Category. Filter by category. */ Category *string /* Limit. The number of results to return. The maximum is 1000. Format: int32 */ Limit *int32 /* Page. The page of results to return. Format: int32 */ Page *int32 /* Provider. Filter by provider. */ Provider *string /* ProviderAccountID. Filter by provider account id (AWS account, Azure subscription id, etc). */ ProviderAccountID *string /* WorkspaceToken. Filter by workspace. */ WorkspaceToken *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRecommendationsParams contains all the parameters to send to the API endpoint
for the get recommendations operation. Typically these are written to a http.Request.
func NewGetRecommendationsParams ¶
func NewGetRecommendationsParams() *GetRecommendationsParams
NewGetRecommendationsParams creates a new GetRecommendationsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRecommendationsParamsWithContext ¶
func NewGetRecommendationsParamsWithContext(ctx context.Context) *GetRecommendationsParams
NewGetRecommendationsParamsWithContext creates a new GetRecommendationsParams object with the ability to set a context for a request.
func NewGetRecommendationsParamsWithHTTPClient ¶
func NewGetRecommendationsParamsWithHTTPClient(client *http.Client) *GetRecommendationsParams
NewGetRecommendationsParamsWithHTTPClient creates a new GetRecommendationsParams object with the ability to set a custom HTTPClient for a request.
func NewGetRecommendationsParamsWithTimeout ¶
func NewGetRecommendationsParamsWithTimeout(timeout time.Duration) *GetRecommendationsParams
NewGetRecommendationsParamsWithTimeout creates a new GetRecommendationsParams object with the ability to set a timeout on a request.
func (*GetRecommendationsParams) SetCategory ¶
func (o *GetRecommendationsParams) SetCategory(category *string)
SetCategory adds the category to the get recommendations params
func (*GetRecommendationsParams) SetContext ¶
func (o *GetRecommendationsParams) SetContext(ctx context.Context)
SetContext adds the context to the get recommendations params
func (*GetRecommendationsParams) SetDefaults ¶
func (o *GetRecommendationsParams) SetDefaults()
SetDefaults hydrates default values in the get recommendations params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationsParams) SetHTTPClient ¶
func (o *GetRecommendationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get recommendations params
func (*GetRecommendationsParams) SetLimit ¶
func (o *GetRecommendationsParams) SetLimit(limit *int32)
SetLimit adds the limit to the get recommendations params
func (*GetRecommendationsParams) SetPage ¶
func (o *GetRecommendationsParams) SetPage(page *int32)
SetPage adds the page to the get recommendations params
func (*GetRecommendationsParams) SetProvider ¶
func (o *GetRecommendationsParams) SetProvider(provider *string)
SetProvider adds the provider to the get recommendations params
func (*GetRecommendationsParams) SetProviderAccountID ¶
func (o *GetRecommendationsParams) SetProviderAccountID(providerAccountID *string)
SetProviderAccountID adds the providerAccountId to the get recommendations params
func (*GetRecommendationsParams) SetTimeout ¶
func (o *GetRecommendationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get recommendations params
func (*GetRecommendationsParams) SetWorkspaceToken ¶
func (o *GetRecommendationsParams) SetWorkspaceToken(workspaceToken *string)
SetWorkspaceToken adds the workspaceToken to the get recommendations params
func (*GetRecommendationsParams) WithCategory ¶
func (o *GetRecommendationsParams) WithCategory(category *string) *GetRecommendationsParams
WithCategory adds the category to the get recommendations params
func (*GetRecommendationsParams) WithContext ¶
func (o *GetRecommendationsParams) WithContext(ctx context.Context) *GetRecommendationsParams
WithContext adds the context to the get recommendations params
func (*GetRecommendationsParams) WithDefaults ¶
func (o *GetRecommendationsParams) WithDefaults() *GetRecommendationsParams
WithDefaults hydrates default values in the get recommendations params (not the query body).
All values with no default are reset to their zero value.
func (*GetRecommendationsParams) WithHTTPClient ¶
func (o *GetRecommendationsParams) WithHTTPClient(client *http.Client) *GetRecommendationsParams
WithHTTPClient adds the HTTPClient to the get recommendations params
func (*GetRecommendationsParams) WithLimit ¶
func (o *GetRecommendationsParams) WithLimit(limit *int32) *GetRecommendationsParams
WithLimit adds the limit to the get recommendations params
func (*GetRecommendationsParams) WithPage ¶
func (o *GetRecommendationsParams) WithPage(page *int32) *GetRecommendationsParams
WithPage adds the page to the get recommendations params
func (*GetRecommendationsParams) WithProvider ¶
func (o *GetRecommendationsParams) WithProvider(provider *string) *GetRecommendationsParams
WithProvider adds the provider to the get recommendations params
func (*GetRecommendationsParams) WithProviderAccountID ¶
func (o *GetRecommendationsParams) WithProviderAccountID(providerAccountID *string) *GetRecommendationsParams
WithProviderAccountID adds the providerAccountID to the get recommendations params
func (*GetRecommendationsParams) WithTimeout ¶
func (o *GetRecommendationsParams) WithTimeout(timeout time.Duration) *GetRecommendationsParams
WithTimeout adds the timeout to the get recommendations params
func (*GetRecommendationsParams) WithWorkspaceToken ¶
func (o *GetRecommendationsParams) WithWorkspaceToken(workspaceToken *string) *GetRecommendationsParams
WithWorkspaceToken adds the workspaceToken to the get recommendations params
func (*GetRecommendationsParams) WriteToRequest ¶
func (o *GetRecommendationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRecommendationsReader ¶
type GetRecommendationsReader struct {
// contains filtered or unexported fields
}
GetRecommendationsReader is a Reader for the GetRecommendations structure.
func (*GetRecommendationsReader) ReadResponse ¶
func (o *GetRecommendationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_recommendation_parameters.go
- get_recommendation_resource_parameters.go
- get_recommendation_resource_responses.go
- get_recommendation_resources_parameters.go
- get_recommendation_resources_responses.go
- get_recommendation_responses.go
- get_recommendations_parameters.go
- get_recommendations_responses.go
- recommendations_client.go