Documentation ¶
Index ¶
- type Client
- func (a *Client) GetAPIVersion(params *GetAPIVersionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIVersionOK, error)
- func (a *Client) ListAPIVersions(params *ListAPIVersionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListAPIVersionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAPIVersionBadRequest
- func (o *GetAPIVersionBadRequest) Code() int
- func (o *GetAPIVersionBadRequest) Error() string
- func (o *GetAPIVersionBadRequest) GetPayload() *models.ErrorDocument
- func (o *GetAPIVersionBadRequest) IsClientError() bool
- func (o *GetAPIVersionBadRequest) IsCode(code int) bool
- func (o *GetAPIVersionBadRequest) IsRedirect() bool
- func (o *GetAPIVersionBadRequest) IsServerError() bool
- func (o *GetAPIVersionBadRequest) IsSuccess() bool
- func (o *GetAPIVersionBadRequest) String() string
- type GetAPIVersionInternalServerError
- func (o *GetAPIVersionInternalServerError) Code() int
- func (o *GetAPIVersionInternalServerError) Error() string
- func (o *GetAPIVersionInternalServerError) GetPayload() *models.ErrorDocument
- func (o *GetAPIVersionInternalServerError) IsClientError() bool
- func (o *GetAPIVersionInternalServerError) IsCode(code int) bool
- func (o *GetAPIVersionInternalServerError) IsRedirect() bool
- func (o *GetAPIVersionInternalServerError) IsServerError() bool
- func (o *GetAPIVersionInternalServerError) IsSuccess() bool
- func (o *GetAPIVersionInternalServerError) String() string
- type GetAPIVersionNotFound
- func (o *GetAPIVersionNotFound) Code() int
- func (o *GetAPIVersionNotFound) Error() string
- func (o *GetAPIVersionNotFound) GetPayload() *models.ErrorDocument
- func (o *GetAPIVersionNotFound) IsClientError() bool
- func (o *GetAPIVersionNotFound) IsCode(code int) bool
- func (o *GetAPIVersionNotFound) IsRedirect() bool
- func (o *GetAPIVersionNotFound) IsServerError() bool
- func (o *GetAPIVersionNotFound) IsSuccess() bool
- func (o *GetAPIVersionNotFound) String() string
- type GetAPIVersionOK
- func (o *GetAPIVersionOK) Code() int
- func (o *GetAPIVersionOK) Error() string
- func (o *GetAPIVersionOK) GetPayload() interface{}
- func (o *GetAPIVersionOK) IsClientError() bool
- func (o *GetAPIVersionOK) IsCode(code int) bool
- func (o *GetAPIVersionOK) IsRedirect() bool
- func (o *GetAPIVersionOK) IsServerError() bool
- func (o *GetAPIVersionOK) IsSuccess() bool
- func (o *GetAPIVersionOK) String() string
- type GetAPIVersionParams
- func (o *GetAPIVersionParams) SetContext(ctx context.Context)
- func (o *GetAPIVersionParams) SetDefaults()
- func (o *GetAPIVersionParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIVersionParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIVersionParams) SetVersion(version string)
- func (o *GetAPIVersionParams) WithContext(ctx context.Context) *GetAPIVersionParams
- func (o *GetAPIVersionParams) WithDefaults() *GetAPIVersionParams
- func (o *GetAPIVersionParams) WithHTTPClient(client *http.Client) *GetAPIVersionParams
- func (o *GetAPIVersionParams) WithTimeout(timeout time.Duration) *GetAPIVersionParams
- func (o *GetAPIVersionParams) WithVersion(version string) *GetAPIVersionParams
- func (o *GetAPIVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIVersionReader
- type GetAPIVersionUnauthorized
- func (o *GetAPIVersionUnauthorized) Code() int
- func (o *GetAPIVersionUnauthorized) Error() string
- func (o *GetAPIVersionUnauthorized) GetPayload() *models.ErrorDocument
- func (o *GetAPIVersionUnauthorized) IsClientError() bool
- func (o *GetAPIVersionUnauthorized) IsCode(code int) bool
- func (o *GetAPIVersionUnauthorized) IsRedirect() bool
- func (o *GetAPIVersionUnauthorized) IsServerError() bool
- func (o *GetAPIVersionUnauthorized) IsSuccess() bool
- func (o *GetAPIVersionUnauthorized) String() string
- type ListAPIVersionsBadRequest
- func (o *ListAPIVersionsBadRequest) Code() int
- func (o *ListAPIVersionsBadRequest) Error() string
- func (o *ListAPIVersionsBadRequest) GetPayload() *models.ErrorDocument
- func (o *ListAPIVersionsBadRequest) IsClientError() bool
- func (o *ListAPIVersionsBadRequest) IsCode(code int) bool
- func (o *ListAPIVersionsBadRequest) IsRedirect() bool
- func (o *ListAPIVersionsBadRequest) IsServerError() bool
- func (o *ListAPIVersionsBadRequest) IsSuccess() bool
- func (o *ListAPIVersionsBadRequest) String() string
- type ListAPIVersionsInternalServerError
- func (o *ListAPIVersionsInternalServerError) Code() int
- func (o *ListAPIVersionsInternalServerError) Error() string
- func (o *ListAPIVersionsInternalServerError) GetPayload() *models.ErrorDocument
- func (o *ListAPIVersionsInternalServerError) IsClientError() bool
- func (o *ListAPIVersionsInternalServerError) IsCode(code int) bool
- func (o *ListAPIVersionsInternalServerError) IsRedirect() bool
- func (o *ListAPIVersionsInternalServerError) IsServerError() bool
- func (o *ListAPIVersionsInternalServerError) IsSuccess() bool
- func (o *ListAPIVersionsInternalServerError) String() string
- type ListAPIVersionsNotFound
- func (o *ListAPIVersionsNotFound) Code() int
- func (o *ListAPIVersionsNotFound) Error() string
- func (o *ListAPIVersionsNotFound) GetPayload() *models.ErrorDocument
- func (o *ListAPIVersionsNotFound) IsClientError() bool
- func (o *ListAPIVersionsNotFound) IsCode(code int) bool
- func (o *ListAPIVersionsNotFound) IsRedirect() bool
- func (o *ListAPIVersionsNotFound) IsServerError() bool
- func (o *ListAPIVersionsNotFound) IsSuccess() bool
- func (o *ListAPIVersionsNotFound) String() string
- type ListAPIVersionsOK
- func (o *ListAPIVersionsOK) Code() int
- func (o *ListAPIVersionsOK) Error() string
- func (o *ListAPIVersionsOK) GetPayload() []string
- func (o *ListAPIVersionsOK) IsClientError() bool
- func (o *ListAPIVersionsOK) IsCode(code int) bool
- func (o *ListAPIVersionsOK) IsRedirect() bool
- func (o *ListAPIVersionsOK) IsServerError() bool
- func (o *ListAPIVersionsOK) IsSuccess() bool
- func (o *ListAPIVersionsOK) String() string
- type ListAPIVersionsParams
- func NewListAPIVersionsParams() *ListAPIVersionsParams
- func NewListAPIVersionsParamsWithContext(ctx context.Context) *ListAPIVersionsParams
- func NewListAPIVersionsParamsWithHTTPClient(client *http.Client) *ListAPIVersionsParams
- func NewListAPIVersionsParamsWithTimeout(timeout time.Duration) *ListAPIVersionsParams
- func (o *ListAPIVersionsParams) SetContext(ctx context.Context)
- func (o *ListAPIVersionsParams) SetDefaults()
- func (o *ListAPIVersionsParams) SetHTTPClient(client *http.Client)
- func (o *ListAPIVersionsParams) SetTimeout(timeout time.Duration)
- func (o *ListAPIVersionsParams) WithContext(ctx context.Context) *ListAPIVersionsParams
- func (o *ListAPIVersionsParams) WithDefaults() *ListAPIVersionsParams
- func (o *ListAPIVersionsParams) WithHTTPClient(client *http.Client) *ListAPIVersionsParams
- func (o *ListAPIVersionsParams) WithTimeout(timeout time.Duration) *ListAPIVersionsParams
- func (o *ListAPIVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListAPIVersionsReader
- type ListAPIVersionsUnauthorized
- func (o *ListAPIVersionsUnauthorized) Code() int
- func (o *ListAPIVersionsUnauthorized) Error() string
- func (o *ListAPIVersionsUnauthorized) GetPayload() *models.ErrorDocument
- func (o *ListAPIVersionsUnauthorized) IsClientError() bool
- func (o *ListAPIVersionsUnauthorized) IsCode(code int) bool
- func (o *ListAPIVersionsUnauthorized) IsRedirect() bool
- func (o *ListAPIVersionsUnauthorized) IsServerError() bool
- func (o *ListAPIVersionsUnauthorized) IsSuccess() bool
- func (o *ListAPIVersionsUnauthorized) String() string
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 open api API
func (*Client) GetAPIVersion ¶
func (a *Client) GetAPIVersion(params *GetAPIVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIVersionOK, error)
GetAPIVersion Get OpenAPI specification effective at version.
func (*Client) ListAPIVersions ¶
func (a *Client) ListAPIVersions(params *ListAPIVersionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAPIVersionsOK, error)
ListAPIVersions List available versions of OpenAPI specification
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 is the option for Client methods
type ClientService ¶
type ClientService interface { GetAPIVersion(params *GetAPIVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIVersionOK, error) ListAPIVersions(params *ListAPIVersionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAPIVersionsOK, 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 open api API client.
type GetAPIVersionBadRequest ¶
type GetAPIVersionBadRequest struct { /* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC: https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html Format: date-time */ Deprecation strfmt.DateTime /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID /* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint. */ SnykVersionLifecycleStage string /* A header containing the version of the endpoint requested by the caller. */ SnykVersionRequested string /* A header containing the version of the endpoint that was served by the API. */ SnykVersionServed string /* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information: https://datatracker.ietf.org/doc/html/rfc8594 Format: date-time */ Sunset strfmt.DateTime Payload *models.ErrorDocument }
GetAPIVersionBadRequest describes a response with status code 400, with default header values.
Bad Request: A parameter provided as a part of the request was invalid.
func NewGetAPIVersionBadRequest ¶
func NewGetAPIVersionBadRequest() *GetAPIVersionBadRequest
NewGetAPIVersionBadRequest creates a GetAPIVersionBadRequest with default headers values
func (*GetAPIVersionBadRequest) Code ¶
func (o *GetAPIVersionBadRequest) Code() int
Code gets the status code for the get Api version bad request response
func (*GetAPIVersionBadRequest) Error ¶
func (o *GetAPIVersionBadRequest) Error() string
func (*GetAPIVersionBadRequest) GetPayload ¶
func (o *GetAPIVersionBadRequest) GetPayload() *models.ErrorDocument
func (*GetAPIVersionBadRequest) IsClientError ¶
func (o *GetAPIVersionBadRequest) IsClientError() bool
IsClientError returns true when this get Api version bad request response has a 4xx status code
func (*GetAPIVersionBadRequest) IsCode ¶
func (o *GetAPIVersionBadRequest) IsCode(code int) bool
IsCode returns true when this get Api version bad request response a status code equal to that given
func (*GetAPIVersionBadRequest) IsRedirect ¶
func (o *GetAPIVersionBadRequest) IsRedirect() bool
IsRedirect returns true when this get Api version bad request response has a 3xx status code
func (*GetAPIVersionBadRequest) IsServerError ¶
func (o *GetAPIVersionBadRequest) IsServerError() bool
IsServerError returns true when this get Api version bad request response has a 5xx status code
func (*GetAPIVersionBadRequest) IsSuccess ¶
func (o *GetAPIVersionBadRequest) IsSuccess() bool
IsSuccess returns true when this get Api version bad request response has a 2xx status code
func (*GetAPIVersionBadRequest) String ¶
func (o *GetAPIVersionBadRequest) String() string
type GetAPIVersionInternalServerError ¶
type GetAPIVersionInternalServerError struct { /* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC: https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html Format: date-time */ Deprecation strfmt.DateTime /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID /* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint. */ SnykVersionLifecycleStage string /* A header containing the version of the endpoint requested by the caller. */ SnykVersionRequested string /* A header containing the version of the endpoint that was served by the API. */ SnykVersionServed string /* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information: https://datatracker.ietf.org/doc/html/rfc8594 Format: date-time */ Sunset strfmt.DateTime Payload *models.ErrorDocument }
GetAPIVersionInternalServerError describes a response with status code 500, with default header values.
Internal Server Error: An error was encountered while attempting to process the request.
func NewGetAPIVersionInternalServerError ¶
func NewGetAPIVersionInternalServerError() *GetAPIVersionInternalServerError
NewGetAPIVersionInternalServerError creates a GetAPIVersionInternalServerError with default headers values
func (*GetAPIVersionInternalServerError) Code ¶
func (o *GetAPIVersionInternalServerError) Code() int
Code gets the status code for the get Api version internal server error response
func (*GetAPIVersionInternalServerError) Error ¶
func (o *GetAPIVersionInternalServerError) Error() string
func (*GetAPIVersionInternalServerError) GetPayload ¶
func (o *GetAPIVersionInternalServerError) GetPayload() *models.ErrorDocument
func (*GetAPIVersionInternalServerError) IsClientError ¶
func (o *GetAPIVersionInternalServerError) IsClientError() bool
IsClientError returns true when this get Api version internal server error response has a 4xx status code
func (*GetAPIVersionInternalServerError) IsCode ¶
func (o *GetAPIVersionInternalServerError) IsCode(code int) bool
IsCode returns true when this get Api version internal server error response a status code equal to that given
func (*GetAPIVersionInternalServerError) IsRedirect ¶
func (o *GetAPIVersionInternalServerError) IsRedirect() bool
IsRedirect returns true when this get Api version internal server error response has a 3xx status code
func (*GetAPIVersionInternalServerError) IsServerError ¶
func (o *GetAPIVersionInternalServerError) IsServerError() bool
IsServerError returns true when this get Api version internal server error response has a 5xx status code
func (*GetAPIVersionInternalServerError) IsSuccess ¶
func (o *GetAPIVersionInternalServerError) IsSuccess() bool
IsSuccess returns true when this get Api version internal server error response has a 2xx status code
func (*GetAPIVersionInternalServerError) String ¶
func (o *GetAPIVersionInternalServerError) String() string
type GetAPIVersionNotFound ¶
type GetAPIVersionNotFound struct { /* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC: https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html Format: date-time */ Deprecation strfmt.DateTime /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID /* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint. */ SnykVersionLifecycleStage string /* A header containing the version of the endpoint requested by the caller. */ SnykVersionRequested string /* A header containing the version of the endpoint that was served by the API. */ SnykVersionServed string /* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information: https://datatracker.ietf.org/doc/html/rfc8594 Format: date-time */ Sunset strfmt.DateTime Payload *models.ErrorDocument }
GetAPIVersionNotFound describes a response with status code 404, with default header values.
Not Found: The resource being operated on could not be found.
func NewGetAPIVersionNotFound ¶
func NewGetAPIVersionNotFound() *GetAPIVersionNotFound
NewGetAPIVersionNotFound creates a GetAPIVersionNotFound with default headers values
func (*GetAPIVersionNotFound) Code ¶
func (o *GetAPIVersionNotFound) Code() int
Code gets the status code for the get Api version not found response
func (*GetAPIVersionNotFound) Error ¶
func (o *GetAPIVersionNotFound) Error() string
func (*GetAPIVersionNotFound) GetPayload ¶
func (o *GetAPIVersionNotFound) GetPayload() *models.ErrorDocument
func (*GetAPIVersionNotFound) IsClientError ¶
func (o *GetAPIVersionNotFound) IsClientError() bool
IsClientError returns true when this get Api version not found response has a 4xx status code
func (*GetAPIVersionNotFound) IsCode ¶
func (o *GetAPIVersionNotFound) IsCode(code int) bool
IsCode returns true when this get Api version not found response a status code equal to that given
func (*GetAPIVersionNotFound) IsRedirect ¶
func (o *GetAPIVersionNotFound) IsRedirect() bool
IsRedirect returns true when this get Api version not found response has a 3xx status code
func (*GetAPIVersionNotFound) IsServerError ¶
func (o *GetAPIVersionNotFound) IsServerError() bool
IsServerError returns true when this get Api version not found response has a 5xx status code
func (*GetAPIVersionNotFound) IsSuccess ¶
func (o *GetAPIVersionNotFound) IsSuccess() bool
IsSuccess returns true when this get Api version not found response has a 2xx status code
func (*GetAPIVersionNotFound) String ¶
func (o *GetAPIVersionNotFound) String() string
type GetAPIVersionOK ¶
type GetAPIVersionOK struct { /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID /* A header containing the version of the endpoint requested by the caller. */ SnykVersionRequested string /* A header containing the version of the endpoint that was served by the API. */ SnykVersionServed string Payload interface{} }
GetAPIVersionOK describes a response with status code 200, with default header values.
OpenAPI specification matching requested version is returned
func NewGetAPIVersionOK ¶
func NewGetAPIVersionOK() *GetAPIVersionOK
NewGetAPIVersionOK creates a GetAPIVersionOK with default headers values
func (*GetAPIVersionOK) Code ¶
func (o *GetAPIVersionOK) Code() int
Code gets the status code for the get Api version o k response
func (*GetAPIVersionOK) Error ¶
func (o *GetAPIVersionOK) Error() string
func (*GetAPIVersionOK) GetPayload ¶
func (o *GetAPIVersionOK) GetPayload() interface{}
func (*GetAPIVersionOK) IsClientError ¶
func (o *GetAPIVersionOK) IsClientError() bool
IsClientError returns true when this get Api version o k response has a 4xx status code
func (*GetAPIVersionOK) IsCode ¶
func (o *GetAPIVersionOK) IsCode(code int) bool
IsCode returns true when this get Api version o k response a status code equal to that given
func (*GetAPIVersionOK) IsRedirect ¶
func (o *GetAPIVersionOK) IsRedirect() bool
IsRedirect returns true when this get Api version o k response has a 3xx status code
func (*GetAPIVersionOK) IsServerError ¶
func (o *GetAPIVersionOK) IsServerError() bool
IsServerError returns true when this get Api version o k response has a 5xx status code
func (*GetAPIVersionOK) IsSuccess ¶
func (o *GetAPIVersionOK) IsSuccess() bool
IsSuccess returns true when this get Api version o k response has a 2xx status code
func (*GetAPIVersionOK) String ¶
func (o *GetAPIVersionOK) String() string
type GetAPIVersionParams ¶
type GetAPIVersionParams struct { /* Version. The requested version of the API */ Version string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIVersionParams contains all the parameters to send to the API endpoint
for the get API version operation. Typically these are written to a http.Request.
func NewGetAPIVersionParams ¶
func NewGetAPIVersionParams() *GetAPIVersionParams
NewGetAPIVersionParams creates a new GetAPIVersionParams 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 NewGetAPIVersionParamsWithContext ¶
func NewGetAPIVersionParamsWithContext(ctx context.Context) *GetAPIVersionParams
NewGetAPIVersionParamsWithContext creates a new GetAPIVersionParams object with the ability to set a context for a request.
func NewGetAPIVersionParamsWithHTTPClient ¶
func NewGetAPIVersionParamsWithHTTPClient(client *http.Client) *GetAPIVersionParams
NewGetAPIVersionParamsWithHTTPClient creates a new GetAPIVersionParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIVersionParamsWithTimeout ¶
func NewGetAPIVersionParamsWithTimeout(timeout time.Duration) *GetAPIVersionParams
NewGetAPIVersionParamsWithTimeout creates a new GetAPIVersionParams object with the ability to set a timeout on a request.
func (*GetAPIVersionParams) SetContext ¶
func (o *GetAPIVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the get API version params
func (*GetAPIVersionParams) SetDefaults ¶
func (o *GetAPIVersionParams) SetDefaults()
SetDefaults hydrates default values in the get API version params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIVersionParams) SetHTTPClient ¶
func (o *GetAPIVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API version params
func (*GetAPIVersionParams) SetTimeout ¶
func (o *GetAPIVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API version params
func (*GetAPIVersionParams) SetVersion ¶
func (o *GetAPIVersionParams) SetVersion(version string)
SetVersion adds the version to the get API version params
func (*GetAPIVersionParams) WithContext ¶
func (o *GetAPIVersionParams) WithContext(ctx context.Context) *GetAPIVersionParams
WithContext adds the context to the get API version params
func (*GetAPIVersionParams) WithDefaults ¶
func (o *GetAPIVersionParams) WithDefaults() *GetAPIVersionParams
WithDefaults hydrates default values in the get API version params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIVersionParams) WithHTTPClient ¶
func (o *GetAPIVersionParams) WithHTTPClient(client *http.Client) *GetAPIVersionParams
WithHTTPClient adds the HTTPClient to the get API version params
func (*GetAPIVersionParams) WithTimeout ¶
func (o *GetAPIVersionParams) WithTimeout(timeout time.Duration) *GetAPIVersionParams
WithTimeout adds the timeout to the get API version params
func (*GetAPIVersionParams) WithVersion ¶
func (o *GetAPIVersionParams) WithVersion(version string) *GetAPIVersionParams
WithVersion adds the version to the get API version params
func (*GetAPIVersionParams) WriteToRequest ¶
func (o *GetAPIVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIVersionReader ¶
type GetAPIVersionReader struct {
// contains filtered or unexported fields
}
GetAPIVersionReader is a Reader for the GetAPIVersion structure.
func (*GetAPIVersionReader) ReadResponse ¶
func (o *GetAPIVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIVersionUnauthorized ¶
type GetAPIVersionUnauthorized struct { strfmt.DateTime SnykRequestID strfmt.UUID SnykVersionLifecycleStage string SnykVersionRequested string SnykVersionServed string Sunset strfmt.DateTime }Deprecation
GetAPIVersionUnauthorized describes a response with status code 401, with default header values.
Unauthorized: the request requires an authentication token or a token with more permissions.
func NewGetAPIVersionUnauthorized ¶
func NewGetAPIVersionUnauthorized() *GetAPIVersionUnauthorized
NewGetAPIVersionUnauthorized creates a GetAPIVersionUnauthorized with default headers values
func (*GetAPIVersionUnauthorized) Code ¶
func (o *GetAPIVersionUnauthorized) Code() int
Code gets the status code for the get Api version unauthorized response
func (*GetAPIVersionUnauthorized) Error ¶
func (o *GetAPIVersionUnauthorized) Error() string
func (*GetAPIVersionUnauthorized) GetPayload ¶
func (o *GetAPIVersionUnauthorized) GetPayload() *models.ErrorDocument
func (*GetAPIVersionUnauthorized) IsClientError ¶
func (o *GetAPIVersionUnauthorized) IsClientError() bool
IsClientError returns true when this get Api version unauthorized response has a 4xx status code
func (*GetAPIVersionUnauthorized) IsCode ¶
func (o *GetAPIVersionUnauthorized) IsCode(code int) bool
IsCode returns true when this get Api version unauthorized response a status code equal to that given
func (*GetAPIVersionUnauthorized) IsRedirect ¶
func (o *GetAPIVersionUnauthorized) IsRedirect() bool
IsRedirect returns true when this get Api version unauthorized response has a 3xx status code
func (*GetAPIVersionUnauthorized) IsServerError ¶
func (o *GetAPIVersionUnauthorized) IsServerError() bool
IsServerError returns true when this get Api version unauthorized response has a 5xx status code
func (*GetAPIVersionUnauthorized) IsSuccess ¶
func (o *GetAPIVersionUnauthorized) IsSuccess() bool
IsSuccess returns true when this get Api version unauthorized response has a 2xx status code
func (*GetAPIVersionUnauthorized) String ¶
func (o *GetAPIVersionUnauthorized) String() string
type ListAPIVersionsBadRequest ¶
type ListAPIVersionsBadRequest struct { /* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC: https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html Format: date-time */ Deprecation strfmt.DateTime /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID /* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint. */ SnykVersionLifecycleStage string /* A header containing the version of the endpoint requested by the caller. */ SnykVersionRequested string /* A header containing the version of the endpoint that was served by the API. */ SnykVersionServed string /* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information: https://datatracker.ietf.org/doc/html/rfc8594 Format: date-time */ Sunset strfmt.DateTime Payload *models.ErrorDocument }
ListAPIVersionsBadRequest describes a response with status code 400, with default header values.
Bad Request: A parameter provided as a part of the request was invalid.
func NewListAPIVersionsBadRequest ¶
func NewListAPIVersionsBadRequest() *ListAPIVersionsBadRequest
NewListAPIVersionsBadRequest creates a ListAPIVersionsBadRequest with default headers values
func (*ListAPIVersionsBadRequest) Code ¶
func (o *ListAPIVersionsBadRequest) Code() int
Code gets the status code for the list Api versions bad request response
func (*ListAPIVersionsBadRequest) Error ¶
func (o *ListAPIVersionsBadRequest) Error() string
func (*ListAPIVersionsBadRequest) GetPayload ¶
func (o *ListAPIVersionsBadRequest) GetPayload() *models.ErrorDocument
func (*ListAPIVersionsBadRequest) IsClientError ¶
func (o *ListAPIVersionsBadRequest) IsClientError() bool
IsClientError returns true when this list Api versions bad request response has a 4xx status code
func (*ListAPIVersionsBadRequest) IsCode ¶
func (o *ListAPIVersionsBadRequest) IsCode(code int) bool
IsCode returns true when this list Api versions bad request response a status code equal to that given
func (*ListAPIVersionsBadRequest) IsRedirect ¶
func (o *ListAPIVersionsBadRequest) IsRedirect() bool
IsRedirect returns true when this list Api versions bad request response has a 3xx status code
func (*ListAPIVersionsBadRequest) IsServerError ¶
func (o *ListAPIVersionsBadRequest) IsServerError() bool
IsServerError returns true when this list Api versions bad request response has a 5xx status code
func (*ListAPIVersionsBadRequest) IsSuccess ¶
func (o *ListAPIVersionsBadRequest) IsSuccess() bool
IsSuccess returns true when this list Api versions bad request response has a 2xx status code
func (*ListAPIVersionsBadRequest) String ¶
func (o *ListAPIVersionsBadRequest) String() string
type ListAPIVersionsInternalServerError ¶
type ListAPIVersionsInternalServerError struct { /* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC: https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html Format: date-time */ Deprecation strfmt.DateTime /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID /* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint. */ SnykVersionLifecycleStage string /* A header containing the version of the endpoint requested by the caller. */ SnykVersionRequested string /* A header containing the version of the endpoint that was served by the API. */ SnykVersionServed string /* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information: https://datatracker.ietf.org/doc/html/rfc8594 Format: date-time */ Sunset strfmt.DateTime Payload *models.ErrorDocument }
ListAPIVersionsInternalServerError describes a response with status code 500, with default header values.
Internal Server Error: An error was encountered while attempting to process the request.
func NewListAPIVersionsInternalServerError ¶
func NewListAPIVersionsInternalServerError() *ListAPIVersionsInternalServerError
NewListAPIVersionsInternalServerError creates a ListAPIVersionsInternalServerError with default headers values
func (*ListAPIVersionsInternalServerError) Code ¶
func (o *ListAPIVersionsInternalServerError) Code() int
Code gets the status code for the list Api versions internal server error response
func (*ListAPIVersionsInternalServerError) Error ¶
func (o *ListAPIVersionsInternalServerError) Error() string
func (*ListAPIVersionsInternalServerError) GetPayload ¶
func (o *ListAPIVersionsInternalServerError) GetPayload() *models.ErrorDocument
func (*ListAPIVersionsInternalServerError) IsClientError ¶
func (o *ListAPIVersionsInternalServerError) IsClientError() bool
IsClientError returns true when this list Api versions internal server error response has a 4xx status code
func (*ListAPIVersionsInternalServerError) IsCode ¶
func (o *ListAPIVersionsInternalServerError) IsCode(code int) bool
IsCode returns true when this list Api versions internal server error response a status code equal to that given
func (*ListAPIVersionsInternalServerError) IsRedirect ¶
func (o *ListAPIVersionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this list Api versions internal server error response has a 3xx status code
func (*ListAPIVersionsInternalServerError) IsServerError ¶
func (o *ListAPIVersionsInternalServerError) IsServerError() bool
IsServerError returns true when this list Api versions internal server error response has a 5xx status code
func (*ListAPIVersionsInternalServerError) IsSuccess ¶
func (o *ListAPIVersionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this list Api versions internal server error response has a 2xx status code
func (*ListAPIVersionsInternalServerError) String ¶
func (o *ListAPIVersionsInternalServerError) String() string
type ListAPIVersionsNotFound ¶
type ListAPIVersionsNotFound struct { /* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC: https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html Format: date-time */ Deprecation strfmt.DateTime /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID /* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint. */ SnykVersionLifecycleStage string /* A header containing the version of the endpoint requested by the caller. */ SnykVersionRequested string /* A header containing the version of the endpoint that was served by the API. */ SnykVersionServed string /* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information: https://datatracker.ietf.org/doc/html/rfc8594 Format: date-time */ Sunset strfmt.DateTime Payload *models.ErrorDocument }
ListAPIVersionsNotFound describes a response with status code 404, with default header values.
Not Found: The resource being operated on could not be found.
func NewListAPIVersionsNotFound ¶
func NewListAPIVersionsNotFound() *ListAPIVersionsNotFound
NewListAPIVersionsNotFound creates a ListAPIVersionsNotFound with default headers values
func (*ListAPIVersionsNotFound) Code ¶
func (o *ListAPIVersionsNotFound) Code() int
Code gets the status code for the list Api versions not found response
func (*ListAPIVersionsNotFound) Error ¶
func (o *ListAPIVersionsNotFound) Error() string
func (*ListAPIVersionsNotFound) GetPayload ¶
func (o *ListAPIVersionsNotFound) GetPayload() *models.ErrorDocument
func (*ListAPIVersionsNotFound) IsClientError ¶
func (o *ListAPIVersionsNotFound) IsClientError() bool
IsClientError returns true when this list Api versions not found response has a 4xx status code
func (*ListAPIVersionsNotFound) IsCode ¶
func (o *ListAPIVersionsNotFound) IsCode(code int) bool
IsCode returns true when this list Api versions not found response a status code equal to that given
func (*ListAPIVersionsNotFound) IsRedirect ¶
func (o *ListAPIVersionsNotFound) IsRedirect() bool
IsRedirect returns true when this list Api versions not found response has a 3xx status code
func (*ListAPIVersionsNotFound) IsServerError ¶
func (o *ListAPIVersionsNotFound) IsServerError() bool
IsServerError returns true when this list Api versions not found response has a 5xx status code
func (*ListAPIVersionsNotFound) IsSuccess ¶
func (o *ListAPIVersionsNotFound) IsSuccess() bool
IsSuccess returns true when this list Api versions not found response has a 2xx status code
func (*ListAPIVersionsNotFound) String ¶
func (o *ListAPIVersionsNotFound) String() string
type ListAPIVersionsOK ¶
type ListAPIVersionsOK struct { /* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID. Format: uuid */ SnykRequestID strfmt.UUID Payload []string }
ListAPIVersionsOK describes a response with status code 200, with default header values.
List of available versions is returned
func NewListAPIVersionsOK ¶
func NewListAPIVersionsOK() *ListAPIVersionsOK
NewListAPIVersionsOK creates a ListAPIVersionsOK with default headers values
func (*ListAPIVersionsOK) Code ¶
func (o *ListAPIVersionsOK) Code() int
Code gets the status code for the list Api versions o k response
func (*ListAPIVersionsOK) Error ¶
func (o *ListAPIVersionsOK) Error() string
func (*ListAPIVersionsOK) GetPayload ¶
func (o *ListAPIVersionsOK) GetPayload() []string
func (*ListAPIVersionsOK) IsClientError ¶
func (o *ListAPIVersionsOK) IsClientError() bool
IsClientError returns true when this list Api versions o k response has a 4xx status code
func (*ListAPIVersionsOK) IsCode ¶
func (o *ListAPIVersionsOK) IsCode(code int) bool
IsCode returns true when this list Api versions o k response a status code equal to that given
func (*ListAPIVersionsOK) IsRedirect ¶
func (o *ListAPIVersionsOK) IsRedirect() bool
IsRedirect returns true when this list Api versions o k response has a 3xx status code
func (*ListAPIVersionsOK) IsServerError ¶
func (o *ListAPIVersionsOK) IsServerError() bool
IsServerError returns true when this list Api versions o k response has a 5xx status code
func (*ListAPIVersionsOK) IsSuccess ¶
func (o *ListAPIVersionsOK) IsSuccess() bool
IsSuccess returns true when this list Api versions o k response has a 2xx status code
func (*ListAPIVersionsOK) String ¶
func (o *ListAPIVersionsOK) String() string
type ListAPIVersionsParams ¶
type ListAPIVersionsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListAPIVersionsParams contains all the parameters to send to the API endpoint
for the list API versions operation. Typically these are written to a http.Request.
func NewListAPIVersionsParams ¶
func NewListAPIVersionsParams() *ListAPIVersionsParams
NewListAPIVersionsParams creates a new ListAPIVersionsParams 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 NewListAPIVersionsParamsWithContext ¶
func NewListAPIVersionsParamsWithContext(ctx context.Context) *ListAPIVersionsParams
NewListAPIVersionsParamsWithContext creates a new ListAPIVersionsParams object with the ability to set a context for a request.
func NewListAPIVersionsParamsWithHTTPClient ¶
func NewListAPIVersionsParamsWithHTTPClient(client *http.Client) *ListAPIVersionsParams
NewListAPIVersionsParamsWithHTTPClient creates a new ListAPIVersionsParams object with the ability to set a custom HTTPClient for a request.
func NewListAPIVersionsParamsWithTimeout ¶
func NewListAPIVersionsParamsWithTimeout(timeout time.Duration) *ListAPIVersionsParams
NewListAPIVersionsParamsWithTimeout creates a new ListAPIVersionsParams object with the ability to set a timeout on a request.
func (*ListAPIVersionsParams) SetContext ¶
func (o *ListAPIVersionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list API versions params
func (*ListAPIVersionsParams) SetDefaults ¶
func (o *ListAPIVersionsParams) SetDefaults()
SetDefaults hydrates default values in the list API versions params (not the query body).
All values with no default are reset to their zero value.
func (*ListAPIVersionsParams) SetHTTPClient ¶
func (o *ListAPIVersionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list API versions params
func (*ListAPIVersionsParams) SetTimeout ¶
func (o *ListAPIVersionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list API versions params
func (*ListAPIVersionsParams) WithContext ¶
func (o *ListAPIVersionsParams) WithContext(ctx context.Context) *ListAPIVersionsParams
WithContext adds the context to the list API versions params
func (*ListAPIVersionsParams) WithDefaults ¶
func (o *ListAPIVersionsParams) WithDefaults() *ListAPIVersionsParams
WithDefaults hydrates default values in the list API versions params (not the query body).
All values with no default are reset to their zero value.
func (*ListAPIVersionsParams) WithHTTPClient ¶
func (o *ListAPIVersionsParams) WithHTTPClient(client *http.Client) *ListAPIVersionsParams
WithHTTPClient adds the HTTPClient to the list API versions params
func (*ListAPIVersionsParams) WithTimeout ¶
func (o *ListAPIVersionsParams) WithTimeout(timeout time.Duration) *ListAPIVersionsParams
WithTimeout adds the timeout to the list API versions params
func (*ListAPIVersionsParams) WriteToRequest ¶
func (o *ListAPIVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListAPIVersionsReader ¶
type ListAPIVersionsReader struct {
// contains filtered or unexported fields
}
ListAPIVersionsReader is a Reader for the ListAPIVersions structure.
func (*ListAPIVersionsReader) ReadResponse ¶
func (o *ListAPIVersionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListAPIVersionsUnauthorized ¶
type ListAPIVersionsUnauthorized struct { strfmt.DateTime SnykRequestID strfmt.UUID SnykVersionLifecycleStage string SnykVersionRequested string SnykVersionServed string Sunset strfmt.DateTime }Deprecation
ListAPIVersionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized: the request requires an authentication token or a token with more permissions.
func NewListAPIVersionsUnauthorized ¶
func NewListAPIVersionsUnauthorized() *ListAPIVersionsUnauthorized
NewListAPIVersionsUnauthorized creates a ListAPIVersionsUnauthorized with default headers values
func (*ListAPIVersionsUnauthorized) Code ¶
func (o *ListAPIVersionsUnauthorized) Code() int
Code gets the status code for the list Api versions unauthorized response
func (*ListAPIVersionsUnauthorized) Error ¶
func (o *ListAPIVersionsUnauthorized) Error() string
func (*ListAPIVersionsUnauthorized) GetPayload ¶
func (o *ListAPIVersionsUnauthorized) GetPayload() *models.ErrorDocument
func (*ListAPIVersionsUnauthorized) IsClientError ¶
func (o *ListAPIVersionsUnauthorized) IsClientError() bool
IsClientError returns true when this list Api versions unauthorized response has a 4xx status code
func (*ListAPIVersionsUnauthorized) IsCode ¶
func (o *ListAPIVersionsUnauthorized) IsCode(code int) bool
IsCode returns true when this list Api versions unauthorized response a status code equal to that given
func (*ListAPIVersionsUnauthorized) IsRedirect ¶
func (o *ListAPIVersionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list Api versions unauthorized response has a 3xx status code
func (*ListAPIVersionsUnauthorized) IsServerError ¶
func (o *ListAPIVersionsUnauthorized) IsServerError() bool
IsServerError returns true when this list Api versions unauthorized response has a 5xx status code
func (*ListAPIVersionsUnauthorized) IsSuccess ¶
func (o *ListAPIVersionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list Api versions unauthorized response has a 2xx status code
func (*ListAPIVersionsUnauthorized) String ¶
func (o *ListAPIVersionsUnauthorized) String() string