recommendations

package
v0.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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

type GetRecommendationNotFound struct {
	Payload *models.Errors
}

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

WithContext adds the context to the get recommendation params

func (*GetRecommendationParams) WithDefaults

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

WithTimeout adds the timeout to the get recommendation params

func (*GetRecommendationParams) WriteToRequest

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

type GetRecommendationResourceNotFound struct {
	Payload *models.Errors
}

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

Code gets the status code for the get recommendation resource not found response

func (*GetRecommendationResourceNotFound) Error

func (*GetRecommendationResourceNotFound) GetPayload

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

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 (*GetRecommendationResourceOK) GetPayload

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

WithContext adds the context to the get recommendation resource params

func (*GetRecommendationResourceParams) WithDefaults

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

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

WithTimeout adds the timeout to the get recommendation resource params

func (*GetRecommendationResourceParams) WriteToRequest

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

Code gets the status code for the get recommendation resources o k response

func (*GetRecommendationResourcesOK) Error

func (*GetRecommendationResourcesOK) GetPayload

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

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

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

WithContext adds the context to the get recommendation resources params

func (*GetRecommendationResourcesParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get recommendation resources params

func (*GetRecommendationResourcesParams) WithLimit

WithLimit adds the limit to the get recommendation resources params

func (*GetRecommendationResourcesParams) WithPage

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

WithTimeout adds the timeout to the get recommendation resources params

func (*GetRecommendationResourcesParams) WriteToRequest

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

WithContext adds the context to the get recommendations params

func (*GetRecommendationsParams) WithDefaults

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

WithLimit adds the limit to the get recommendations params

func (*GetRecommendationsParams) WithPage

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL