Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateSecret(params *CreateSecretParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSecretCreated, error)
- func (a *Client) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteSecretNoContent, error)
- func (a *Client) ListSecrets(params *ListSecretsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListSecretsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateSecret(params *UpdateSecretParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateSecretCreated, error)
- type ClientOption
- type ClientService
- type CreateSecretBadRequest
- func (o *CreateSecretBadRequest) Code() int
- func (o *CreateSecretBadRequest) Error() string
- func (o *CreateSecretBadRequest) GetPayload() *models.Error
- func (o *CreateSecretBadRequest) IsClientError() bool
- func (o *CreateSecretBadRequest) IsCode(code int) bool
- func (o *CreateSecretBadRequest) IsRedirect() bool
- func (o *CreateSecretBadRequest) IsServerError() bool
- func (o *CreateSecretBadRequest) IsSuccess() bool
- func (o *CreateSecretBadRequest) String() string
- type CreateSecretConflict
- func (o *CreateSecretConflict) Code() int
- func (o *CreateSecretConflict) Error() string
- func (o *CreateSecretConflict) GetPayload() *models.Error
- func (o *CreateSecretConflict) IsClientError() bool
- func (o *CreateSecretConflict) IsCode(code int) bool
- func (o *CreateSecretConflict) IsRedirect() bool
- func (o *CreateSecretConflict) IsServerError() bool
- func (o *CreateSecretConflict) IsSuccess() bool
- func (o *CreateSecretConflict) String() string
- type CreateSecretCreated
- func (o *CreateSecretCreated) Code() int
- func (o *CreateSecretCreated) Error() string
- func (o *CreateSecretCreated) GetPayload() *models.Secret
- func (o *CreateSecretCreated) IsClientError() bool
- func (o *CreateSecretCreated) IsCode(code int) bool
- func (o *CreateSecretCreated) IsRedirect() bool
- func (o *CreateSecretCreated) IsServerError() bool
- func (o *CreateSecretCreated) IsSuccess() bool
- func (o *CreateSecretCreated) String() string
- type CreateSecretForbidden
- func (o *CreateSecretForbidden) Code() int
- func (o *CreateSecretForbidden) Error() string
- func (o *CreateSecretForbidden) GetPayload() *models.Error
- func (o *CreateSecretForbidden) IsClientError() bool
- func (o *CreateSecretForbidden) IsCode(code int) bool
- func (o *CreateSecretForbidden) IsRedirect() bool
- func (o *CreateSecretForbidden) IsServerError() bool
- func (o *CreateSecretForbidden) IsSuccess() bool
- func (o *CreateSecretForbidden) String() string
- type CreateSecretNotFound
- func (o *CreateSecretNotFound) Code() int
- func (o *CreateSecretNotFound) Error() string
- func (o *CreateSecretNotFound) GetPayload() *models.Error
- func (o *CreateSecretNotFound) IsClientError() bool
- func (o *CreateSecretNotFound) IsCode(code int) bool
- func (o *CreateSecretNotFound) IsRedirect() bool
- func (o *CreateSecretNotFound) IsServerError() bool
- func (o *CreateSecretNotFound) IsSuccess() bool
- func (o *CreateSecretNotFound) String() string
- type CreateSecretParams
- func (o *CreateSecretParams) SetContext(ctx context.Context)
- func (o *CreateSecretParams) SetDefaults()
- func (o *CreateSecretParams) SetHTTPClient(client *http.Client)
- func (o *CreateSecretParams) SetIfMatch(ifMatch *string)
- func (o *CreateSecretParams) SetSecret(secret *models.Secret)
- func (o *CreateSecretParams) SetTimeout(timeout time.Duration)
- func (o *CreateSecretParams) SetWid(wid string)
- func (o *CreateSecretParams) WithContext(ctx context.Context) *CreateSecretParams
- func (o *CreateSecretParams) WithDefaults() *CreateSecretParams
- func (o *CreateSecretParams) WithHTTPClient(client *http.Client) *CreateSecretParams
- func (o *CreateSecretParams) WithIfMatch(ifMatch *string) *CreateSecretParams
- func (o *CreateSecretParams) WithSecret(secret *models.Secret) *CreateSecretParams
- func (o *CreateSecretParams) WithTimeout(timeout time.Duration) *CreateSecretParams
- func (o *CreateSecretParams) WithWid(wid string) *CreateSecretParams
- func (o *CreateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSecretReader
- type CreateSecretTooManyRequests
- func (o *CreateSecretTooManyRequests) Code() int
- func (o *CreateSecretTooManyRequests) Error() string
- func (o *CreateSecretTooManyRequests) GetPayload() *models.Error
- func (o *CreateSecretTooManyRequests) IsClientError() bool
- func (o *CreateSecretTooManyRequests) IsCode(code int) bool
- func (o *CreateSecretTooManyRequests) IsRedirect() bool
- func (o *CreateSecretTooManyRequests) IsServerError() bool
- func (o *CreateSecretTooManyRequests) IsSuccess() bool
- func (o *CreateSecretTooManyRequests) String() string
- type CreateSecretUnauthorized
- func (o *CreateSecretUnauthorized) Code() int
- func (o *CreateSecretUnauthorized) Error() string
- func (o *CreateSecretUnauthorized) GetPayload() *models.Error
- func (o *CreateSecretUnauthorized) IsClientError() bool
- func (o *CreateSecretUnauthorized) IsCode(code int) bool
- func (o *CreateSecretUnauthorized) IsRedirect() bool
- func (o *CreateSecretUnauthorized) IsServerError() bool
- func (o *CreateSecretUnauthorized) IsSuccess() bool
- func (o *CreateSecretUnauthorized) String() string
- type CreateSecretUnprocessableEntity
- func (o *CreateSecretUnprocessableEntity) Code() int
- func (o *CreateSecretUnprocessableEntity) Error() string
- func (o *CreateSecretUnprocessableEntity) GetPayload() *models.Error
- func (o *CreateSecretUnprocessableEntity) IsClientError() bool
- func (o *CreateSecretUnprocessableEntity) IsCode(code int) bool
- func (o *CreateSecretUnprocessableEntity) IsRedirect() bool
- func (o *CreateSecretUnprocessableEntity) IsServerError() bool
- func (o *CreateSecretUnprocessableEntity) IsSuccess() bool
- func (o *CreateSecretUnprocessableEntity) String() string
- type DeleteSecretBadRequest
- func (o *DeleteSecretBadRequest) Code() int
- func (o *DeleteSecretBadRequest) Error() string
- func (o *DeleteSecretBadRequest) GetPayload() *models.Error
- func (o *DeleteSecretBadRequest) IsClientError() bool
- func (o *DeleteSecretBadRequest) IsCode(code int) bool
- func (o *DeleteSecretBadRequest) IsRedirect() bool
- func (o *DeleteSecretBadRequest) IsServerError() bool
- func (o *DeleteSecretBadRequest) IsSuccess() bool
- func (o *DeleteSecretBadRequest) String() string
- type DeleteSecretForbidden
- func (o *DeleteSecretForbidden) Code() int
- func (o *DeleteSecretForbidden) Error() string
- func (o *DeleteSecretForbidden) GetPayload() *models.Error
- func (o *DeleteSecretForbidden) IsClientError() bool
- func (o *DeleteSecretForbidden) IsCode(code int) bool
- func (o *DeleteSecretForbidden) IsRedirect() bool
- func (o *DeleteSecretForbidden) IsServerError() bool
- func (o *DeleteSecretForbidden) IsSuccess() bool
- func (o *DeleteSecretForbidden) String() string
- type DeleteSecretNoContent
- func (o *DeleteSecretNoContent) Code() int
- func (o *DeleteSecretNoContent) Error() string
- func (o *DeleteSecretNoContent) IsClientError() bool
- func (o *DeleteSecretNoContent) IsCode(code int) bool
- func (o *DeleteSecretNoContent) IsRedirect() bool
- func (o *DeleteSecretNoContent) IsServerError() bool
- func (o *DeleteSecretNoContent) IsSuccess() bool
- func (o *DeleteSecretNoContent) String() string
- type DeleteSecretNotFound
- func (o *DeleteSecretNotFound) Code() int
- func (o *DeleteSecretNotFound) Error() string
- func (o *DeleteSecretNotFound) GetPayload() *models.Error
- func (o *DeleteSecretNotFound) IsClientError() bool
- func (o *DeleteSecretNotFound) IsCode(code int) bool
- func (o *DeleteSecretNotFound) IsRedirect() bool
- func (o *DeleteSecretNotFound) IsServerError() bool
- func (o *DeleteSecretNotFound) IsSuccess() bool
- func (o *DeleteSecretNotFound) String() string
- type DeleteSecretParams
- func (o *DeleteSecretParams) SetContext(ctx context.Context)
- func (o *DeleteSecretParams) SetDefaults()
- func (o *DeleteSecretParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSecretParams) SetIfMatch(ifMatch *string)
- func (o *DeleteSecretParams) SetSid(sid string)
- func (o *DeleteSecretParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSecretParams) SetWid(wid string)
- func (o *DeleteSecretParams) WithContext(ctx context.Context) *DeleteSecretParams
- func (o *DeleteSecretParams) WithDefaults() *DeleteSecretParams
- func (o *DeleteSecretParams) WithHTTPClient(client *http.Client) *DeleteSecretParams
- func (o *DeleteSecretParams) WithIfMatch(ifMatch *string) *DeleteSecretParams
- func (o *DeleteSecretParams) WithSid(sid string) *DeleteSecretParams
- func (o *DeleteSecretParams) WithTimeout(timeout time.Duration) *DeleteSecretParams
- func (o *DeleteSecretParams) WithWid(wid string) *DeleteSecretParams
- func (o *DeleteSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSecretReader
- type DeleteSecretTooManyRequests
- func (o *DeleteSecretTooManyRequests) Code() int
- func (o *DeleteSecretTooManyRequests) Error() string
- func (o *DeleteSecretTooManyRequests) GetPayload() *models.Error
- func (o *DeleteSecretTooManyRequests) IsClientError() bool
- func (o *DeleteSecretTooManyRequests) IsCode(code int) bool
- func (o *DeleteSecretTooManyRequests) IsRedirect() bool
- func (o *DeleteSecretTooManyRequests) IsServerError() bool
- func (o *DeleteSecretTooManyRequests) IsSuccess() bool
- func (o *DeleteSecretTooManyRequests) String() string
- type DeleteSecretUnauthorized
- func (o *DeleteSecretUnauthorized) Code() int
- func (o *DeleteSecretUnauthorized) Error() string
- func (o *DeleteSecretUnauthorized) GetPayload() *models.Error
- func (o *DeleteSecretUnauthorized) IsClientError() bool
- func (o *DeleteSecretUnauthorized) IsCode(code int) bool
- func (o *DeleteSecretUnauthorized) IsRedirect() bool
- func (o *DeleteSecretUnauthorized) IsServerError() bool
- func (o *DeleteSecretUnauthorized) IsSuccess() bool
- func (o *DeleteSecretUnauthorized) String() string
- type ListSecretsBadRequest
- func (o *ListSecretsBadRequest) Code() int
- func (o *ListSecretsBadRequest) Error() string
- func (o *ListSecretsBadRequest) GetPayload() *models.Error
- func (o *ListSecretsBadRequest) IsClientError() bool
- func (o *ListSecretsBadRequest) IsCode(code int) bool
- func (o *ListSecretsBadRequest) IsRedirect() bool
- func (o *ListSecretsBadRequest) IsServerError() bool
- func (o *ListSecretsBadRequest) IsSuccess() bool
- func (o *ListSecretsBadRequest) String() string
- type ListSecretsForbidden
- func (o *ListSecretsForbidden) Code() int
- func (o *ListSecretsForbidden) Error() string
- func (o *ListSecretsForbidden) GetPayload() *models.Error
- func (o *ListSecretsForbidden) IsClientError() bool
- func (o *ListSecretsForbidden) IsCode(code int) bool
- func (o *ListSecretsForbidden) IsRedirect() bool
- func (o *ListSecretsForbidden) IsServerError() bool
- func (o *ListSecretsForbidden) IsSuccess() bool
- func (o *ListSecretsForbidden) String() string
- type ListSecretsOK
- func (o *ListSecretsOK) Code() int
- func (o *ListSecretsOK) Error() string
- func (o *ListSecretsOK) GetPayload() *models.SecretsResponse
- func (o *ListSecretsOK) IsClientError() bool
- func (o *ListSecretsOK) IsCode(code int) bool
- func (o *ListSecretsOK) IsRedirect() bool
- func (o *ListSecretsOK) IsServerError() bool
- func (o *ListSecretsOK) IsSuccess() bool
- func (o *ListSecretsOK) String() string
- type ListSecretsParams
- func (o *ListSecretsParams) SetContext(ctx context.Context)
- func (o *ListSecretsParams) SetDefaults()
- func (o *ListSecretsParams) SetHTTPClient(client *http.Client)
- func (o *ListSecretsParams) SetIfMatch(ifMatch *string)
- func (o *ListSecretsParams) SetTimeout(timeout time.Duration)
- func (o *ListSecretsParams) SetWid(wid string)
- func (o *ListSecretsParams) WithContext(ctx context.Context) *ListSecretsParams
- func (o *ListSecretsParams) WithDefaults() *ListSecretsParams
- func (o *ListSecretsParams) WithHTTPClient(client *http.Client) *ListSecretsParams
- func (o *ListSecretsParams) WithIfMatch(ifMatch *string) *ListSecretsParams
- func (o *ListSecretsParams) WithTimeout(timeout time.Duration) *ListSecretsParams
- func (o *ListSecretsParams) WithWid(wid string) *ListSecretsParams
- func (o *ListSecretsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSecretsReader
- type ListSecretsTooManyRequests
- func (o *ListSecretsTooManyRequests) Code() int
- func (o *ListSecretsTooManyRequests) Error() string
- func (o *ListSecretsTooManyRequests) GetPayload() *models.Error
- func (o *ListSecretsTooManyRequests) IsClientError() bool
- func (o *ListSecretsTooManyRequests) IsCode(code int) bool
- func (o *ListSecretsTooManyRequests) IsRedirect() bool
- func (o *ListSecretsTooManyRequests) IsServerError() bool
- func (o *ListSecretsTooManyRequests) IsSuccess() bool
- func (o *ListSecretsTooManyRequests) String() string
- type ListSecretsUnauthorized
- func (o *ListSecretsUnauthorized) Code() int
- func (o *ListSecretsUnauthorized) Error() string
- func (o *ListSecretsUnauthorized) GetPayload() *models.Error
- func (o *ListSecretsUnauthorized) IsClientError() bool
- func (o *ListSecretsUnauthorized) IsCode(code int) bool
- func (o *ListSecretsUnauthorized) IsRedirect() bool
- func (o *ListSecretsUnauthorized) IsServerError() bool
- func (o *ListSecretsUnauthorized) IsSuccess() bool
- func (o *ListSecretsUnauthorized) String() string
- type UpdateSecretBadRequest
- func (o *UpdateSecretBadRequest) Code() int
- func (o *UpdateSecretBadRequest) Error() string
- func (o *UpdateSecretBadRequest) GetPayload() *models.Error
- func (o *UpdateSecretBadRequest) IsClientError() bool
- func (o *UpdateSecretBadRequest) IsCode(code int) bool
- func (o *UpdateSecretBadRequest) IsRedirect() bool
- func (o *UpdateSecretBadRequest) IsServerError() bool
- func (o *UpdateSecretBadRequest) IsSuccess() bool
- func (o *UpdateSecretBadRequest) String() string
- type UpdateSecretCreated
- func (o *UpdateSecretCreated) Code() int
- func (o *UpdateSecretCreated) Error() string
- func (o *UpdateSecretCreated) GetPayload() *models.Secret
- func (o *UpdateSecretCreated) IsClientError() bool
- func (o *UpdateSecretCreated) IsCode(code int) bool
- func (o *UpdateSecretCreated) IsRedirect() bool
- func (o *UpdateSecretCreated) IsServerError() bool
- func (o *UpdateSecretCreated) IsSuccess() bool
- func (o *UpdateSecretCreated) String() string
- type UpdateSecretForbidden
- func (o *UpdateSecretForbidden) Code() int
- func (o *UpdateSecretForbidden) Error() string
- func (o *UpdateSecretForbidden) GetPayload() *models.Error
- func (o *UpdateSecretForbidden) IsClientError() bool
- func (o *UpdateSecretForbidden) IsCode(code int) bool
- func (o *UpdateSecretForbidden) IsRedirect() bool
- func (o *UpdateSecretForbidden) IsServerError() bool
- func (o *UpdateSecretForbidden) IsSuccess() bool
- func (o *UpdateSecretForbidden) String() string
- type UpdateSecretNotFound
- func (o *UpdateSecretNotFound) Code() int
- func (o *UpdateSecretNotFound) Error() string
- func (o *UpdateSecretNotFound) GetPayload() *models.Error
- func (o *UpdateSecretNotFound) IsClientError() bool
- func (o *UpdateSecretNotFound) IsCode(code int) bool
- func (o *UpdateSecretNotFound) IsRedirect() bool
- func (o *UpdateSecretNotFound) IsServerError() bool
- func (o *UpdateSecretNotFound) IsSuccess() bool
- func (o *UpdateSecretNotFound) String() string
- type UpdateSecretParams
- func (o *UpdateSecretParams) SetContext(ctx context.Context)
- func (o *UpdateSecretParams) SetDefaults()
- func (o *UpdateSecretParams) SetHTTPClient(client *http.Client)
- func (o *UpdateSecretParams) SetIfMatch(ifMatch *string)
- func (o *UpdateSecretParams) SetSecret(secret *models.Secret)
- func (o *UpdateSecretParams) SetSid(sid string)
- func (o *UpdateSecretParams) SetTimeout(timeout time.Duration)
- func (o *UpdateSecretParams) SetWid(wid string)
- func (o *UpdateSecretParams) WithContext(ctx context.Context) *UpdateSecretParams
- func (o *UpdateSecretParams) WithDefaults() *UpdateSecretParams
- func (o *UpdateSecretParams) WithHTTPClient(client *http.Client) *UpdateSecretParams
- func (o *UpdateSecretParams) WithIfMatch(ifMatch *string) *UpdateSecretParams
- func (o *UpdateSecretParams) WithSecret(secret *models.Secret) *UpdateSecretParams
- func (o *UpdateSecretParams) WithSid(sid string) *UpdateSecretParams
- func (o *UpdateSecretParams) WithTimeout(timeout time.Duration) *UpdateSecretParams
- func (o *UpdateSecretParams) WithWid(wid string) *UpdateSecretParams
- func (o *UpdateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateSecretReader
- type UpdateSecretTooManyRequests
- func (o *UpdateSecretTooManyRequests) Code() int
- func (o *UpdateSecretTooManyRequests) Error() string
- func (o *UpdateSecretTooManyRequests) GetPayload() *models.Error
- func (o *UpdateSecretTooManyRequests) IsClientError() bool
- func (o *UpdateSecretTooManyRequests) IsCode(code int) bool
- func (o *UpdateSecretTooManyRequests) IsRedirect() bool
- func (o *UpdateSecretTooManyRequests) IsServerError() bool
- func (o *UpdateSecretTooManyRequests) IsSuccess() bool
- func (o *UpdateSecretTooManyRequests) String() string
- type UpdateSecretUnauthorized
- func (o *UpdateSecretUnauthorized) Code() int
- func (o *UpdateSecretUnauthorized) Error() string
- func (o *UpdateSecretUnauthorized) GetPayload() *models.Error
- func (o *UpdateSecretUnauthorized) IsClientError() bool
- func (o *UpdateSecretUnauthorized) IsCode(code int) bool
- func (o *UpdateSecretUnauthorized) IsRedirect() bool
- func (o *UpdateSecretUnauthorized) IsServerError() bool
- func (o *UpdateSecretUnauthorized) IsSuccess() bool
- func (o *UpdateSecretUnauthorized) String() string
- type UpdateSecretUnprocessableEntity
- func (o *UpdateSecretUnprocessableEntity) Code() int
- func (o *UpdateSecretUnprocessableEntity) Error() string
- func (o *UpdateSecretUnprocessableEntity) GetPayload() *models.Error
- func (o *UpdateSecretUnprocessableEntity) IsClientError() bool
- func (o *UpdateSecretUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateSecretUnprocessableEntity) IsRedirect() bool
- func (o *UpdateSecretUnprocessableEntity) IsServerError() bool
- func (o *UpdateSecretUnprocessableEntity) IsSuccess() bool
- func (o *UpdateSecretUnprocessableEntity) 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 secrets API
func (*Client) CreateSecret ¶
func (a *Client) CreateSecret(params *CreateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSecretCreated, error)
CreateSecret creates secret Creates a secret for a given tenant id and authorization server (workspace).
Secrets API is storage for keeping encrypted sensitive variables that may be used within rego policies or scripts.
func (*Client) DeleteSecret ¶
func (a *Client) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretNoContent, error)
DeleteSecret deletes secret
Delete previously created secrets for a given tenant id and autorization server (workspace).
func (*Client) ListSecrets ¶
func (a *Client) ListSecrets(params *ListSecretsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSecretsOK, error)
ListSecrets lists secrets List previously created secrets for a given tenant id and autorization server (workspace).
The secret value is ciphered when it's created, it's not possible to retrieve it in any way.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateSecret ¶
func (a *Client) UpdateSecret(params *UpdateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSecretCreated, error)
UpdateSecret updates secret
Updates a secret for a given tenant id and authorization server (workspace).
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { CreateSecret(params *CreateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSecretCreated, error) DeleteSecret(params *DeleteSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSecretNoContent, error) ListSecrets(params *ListSecretsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSecretsOK, error) UpdateSecret(params *UpdateSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateSecretCreated, 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 secrets API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new secrets 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 ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new secrets 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 CreateSecretBadRequest ¶
CreateSecretBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateSecretBadRequest ¶
func NewCreateSecretBadRequest() *CreateSecretBadRequest
NewCreateSecretBadRequest creates a CreateSecretBadRequest with default headers values
func (*CreateSecretBadRequest) Code ¶
func (o *CreateSecretBadRequest) Code() int
Code gets the status code for the create secret bad request response
func (*CreateSecretBadRequest) Error ¶
func (o *CreateSecretBadRequest) Error() string
func (*CreateSecretBadRequest) GetPayload ¶
func (o *CreateSecretBadRequest) GetPayload() *models.Error
func (*CreateSecretBadRequest) IsClientError ¶
func (o *CreateSecretBadRequest) IsClientError() bool
IsClientError returns true when this create secret bad request response has a 4xx status code
func (*CreateSecretBadRequest) IsCode ¶
func (o *CreateSecretBadRequest) IsCode(code int) bool
IsCode returns true when this create secret bad request response a status code equal to that given
func (*CreateSecretBadRequest) IsRedirect ¶
func (o *CreateSecretBadRequest) IsRedirect() bool
IsRedirect returns true when this create secret bad request response has a 3xx status code
func (*CreateSecretBadRequest) IsServerError ¶
func (o *CreateSecretBadRequest) IsServerError() bool
IsServerError returns true when this create secret bad request response has a 5xx status code
func (*CreateSecretBadRequest) IsSuccess ¶
func (o *CreateSecretBadRequest) IsSuccess() bool
IsSuccess returns true when this create secret bad request response has a 2xx status code
func (*CreateSecretBadRequest) String ¶
func (o *CreateSecretBadRequest) String() string
type CreateSecretConflict ¶
CreateSecretConflict describes a response with status code 409, with default header values.
Conflict
func NewCreateSecretConflict ¶
func NewCreateSecretConflict() *CreateSecretConflict
NewCreateSecretConflict creates a CreateSecretConflict with default headers values
func (*CreateSecretConflict) Code ¶
func (o *CreateSecretConflict) Code() int
Code gets the status code for the create secret conflict response
func (*CreateSecretConflict) Error ¶
func (o *CreateSecretConflict) Error() string
func (*CreateSecretConflict) GetPayload ¶
func (o *CreateSecretConflict) GetPayload() *models.Error
func (*CreateSecretConflict) IsClientError ¶
func (o *CreateSecretConflict) IsClientError() bool
IsClientError returns true when this create secret conflict response has a 4xx status code
func (*CreateSecretConflict) IsCode ¶
func (o *CreateSecretConflict) IsCode(code int) bool
IsCode returns true when this create secret conflict response a status code equal to that given
func (*CreateSecretConflict) IsRedirect ¶
func (o *CreateSecretConflict) IsRedirect() bool
IsRedirect returns true when this create secret conflict response has a 3xx status code
func (*CreateSecretConflict) IsServerError ¶
func (o *CreateSecretConflict) IsServerError() bool
IsServerError returns true when this create secret conflict response has a 5xx status code
func (*CreateSecretConflict) IsSuccess ¶
func (o *CreateSecretConflict) IsSuccess() bool
IsSuccess returns true when this create secret conflict response has a 2xx status code
func (*CreateSecretConflict) String ¶
func (o *CreateSecretConflict) String() string
type CreateSecretCreated ¶
type CreateSecretCreated struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Secret }
CreateSecretCreated describes a response with status code 201, with default header values.
Secret
func NewCreateSecretCreated ¶
func NewCreateSecretCreated() *CreateSecretCreated
NewCreateSecretCreated creates a CreateSecretCreated with default headers values
func (*CreateSecretCreated) Code ¶
func (o *CreateSecretCreated) Code() int
Code gets the status code for the create secret created response
func (*CreateSecretCreated) Error ¶
func (o *CreateSecretCreated) Error() string
func (*CreateSecretCreated) GetPayload ¶
func (o *CreateSecretCreated) GetPayload() *models.Secret
func (*CreateSecretCreated) IsClientError ¶
func (o *CreateSecretCreated) IsClientError() bool
IsClientError returns true when this create secret created response has a 4xx status code
func (*CreateSecretCreated) IsCode ¶
func (o *CreateSecretCreated) IsCode(code int) bool
IsCode returns true when this create secret created response a status code equal to that given
func (*CreateSecretCreated) IsRedirect ¶
func (o *CreateSecretCreated) IsRedirect() bool
IsRedirect returns true when this create secret created response has a 3xx status code
func (*CreateSecretCreated) IsServerError ¶
func (o *CreateSecretCreated) IsServerError() bool
IsServerError returns true when this create secret created response has a 5xx status code
func (*CreateSecretCreated) IsSuccess ¶
func (o *CreateSecretCreated) IsSuccess() bool
IsSuccess returns true when this create secret created response has a 2xx status code
func (*CreateSecretCreated) String ¶
func (o *CreateSecretCreated) String() string
type CreateSecretForbidden ¶
CreateSecretForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateSecretForbidden ¶
func NewCreateSecretForbidden() *CreateSecretForbidden
NewCreateSecretForbidden creates a CreateSecretForbidden with default headers values
func (*CreateSecretForbidden) Code ¶
func (o *CreateSecretForbidden) Code() int
Code gets the status code for the create secret forbidden response
func (*CreateSecretForbidden) Error ¶
func (o *CreateSecretForbidden) Error() string
func (*CreateSecretForbidden) GetPayload ¶
func (o *CreateSecretForbidden) GetPayload() *models.Error
func (*CreateSecretForbidden) IsClientError ¶
func (o *CreateSecretForbidden) IsClientError() bool
IsClientError returns true when this create secret forbidden response has a 4xx status code
func (*CreateSecretForbidden) IsCode ¶
func (o *CreateSecretForbidden) IsCode(code int) bool
IsCode returns true when this create secret forbidden response a status code equal to that given
func (*CreateSecretForbidden) IsRedirect ¶
func (o *CreateSecretForbidden) IsRedirect() bool
IsRedirect returns true when this create secret forbidden response has a 3xx status code
func (*CreateSecretForbidden) IsServerError ¶
func (o *CreateSecretForbidden) IsServerError() bool
IsServerError returns true when this create secret forbidden response has a 5xx status code
func (*CreateSecretForbidden) IsSuccess ¶
func (o *CreateSecretForbidden) IsSuccess() bool
IsSuccess returns true when this create secret forbidden response has a 2xx status code
func (*CreateSecretForbidden) String ¶
func (o *CreateSecretForbidden) String() string
type CreateSecretNotFound ¶
CreateSecretNotFound describes a response with status code 404, with default header values.
Not found
func NewCreateSecretNotFound ¶
func NewCreateSecretNotFound() *CreateSecretNotFound
NewCreateSecretNotFound creates a CreateSecretNotFound with default headers values
func (*CreateSecretNotFound) Code ¶
func (o *CreateSecretNotFound) Code() int
Code gets the status code for the create secret not found response
func (*CreateSecretNotFound) Error ¶
func (o *CreateSecretNotFound) Error() string
func (*CreateSecretNotFound) GetPayload ¶
func (o *CreateSecretNotFound) GetPayload() *models.Error
func (*CreateSecretNotFound) IsClientError ¶
func (o *CreateSecretNotFound) IsClientError() bool
IsClientError returns true when this create secret not found response has a 4xx status code
func (*CreateSecretNotFound) IsCode ¶
func (o *CreateSecretNotFound) IsCode(code int) bool
IsCode returns true when this create secret not found response a status code equal to that given
func (*CreateSecretNotFound) IsRedirect ¶
func (o *CreateSecretNotFound) IsRedirect() bool
IsRedirect returns true when this create secret not found response has a 3xx status code
func (*CreateSecretNotFound) IsServerError ¶
func (o *CreateSecretNotFound) IsServerError() bool
IsServerError returns true when this create secret not found response has a 5xx status code
func (*CreateSecretNotFound) IsSuccess ¶
func (o *CreateSecretNotFound) IsSuccess() bool
IsSuccess returns true when this create secret not found response has a 2xx status code
func (*CreateSecretNotFound) String ¶
func (o *CreateSecretNotFound) String() string
type CreateSecretParams ¶
type CreateSecretParams struct { // Secret. Secret *models.Secret /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Wid. Authorization server id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSecretParams contains all the parameters to send to the API endpoint
for the create secret operation. Typically these are written to a http.Request.
func NewCreateSecretParams ¶
func NewCreateSecretParams() *CreateSecretParams
NewCreateSecretParams creates a new CreateSecretParams 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 NewCreateSecretParamsWithContext ¶
func NewCreateSecretParamsWithContext(ctx context.Context) *CreateSecretParams
NewCreateSecretParamsWithContext creates a new CreateSecretParams object with the ability to set a context for a request.
func NewCreateSecretParamsWithHTTPClient ¶
func NewCreateSecretParamsWithHTTPClient(client *http.Client) *CreateSecretParams
NewCreateSecretParamsWithHTTPClient creates a new CreateSecretParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSecretParamsWithTimeout ¶
func NewCreateSecretParamsWithTimeout(timeout time.Duration) *CreateSecretParams
NewCreateSecretParamsWithTimeout creates a new CreateSecretParams object with the ability to set a timeout on a request.
func (*CreateSecretParams) SetContext ¶
func (o *CreateSecretParams) SetContext(ctx context.Context)
SetContext adds the context to the create secret params
func (*CreateSecretParams) SetDefaults ¶
func (o *CreateSecretParams) SetDefaults()
SetDefaults hydrates default values in the create secret params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSecretParams) SetHTTPClient ¶
func (o *CreateSecretParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create secret params
func (*CreateSecretParams) SetIfMatch ¶
func (o *CreateSecretParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the create secret params
func (*CreateSecretParams) SetSecret ¶
func (o *CreateSecretParams) SetSecret(secret *models.Secret)
SetSecret adds the secret to the create secret params
func (*CreateSecretParams) SetTimeout ¶
func (o *CreateSecretParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create secret params
func (*CreateSecretParams) SetWid ¶
func (o *CreateSecretParams) SetWid(wid string)
SetWid adds the wid to the create secret params
func (*CreateSecretParams) WithContext ¶
func (o *CreateSecretParams) WithContext(ctx context.Context) *CreateSecretParams
WithContext adds the context to the create secret params
func (*CreateSecretParams) WithDefaults ¶
func (o *CreateSecretParams) WithDefaults() *CreateSecretParams
WithDefaults hydrates default values in the create secret params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSecretParams) WithHTTPClient ¶
func (o *CreateSecretParams) WithHTTPClient(client *http.Client) *CreateSecretParams
WithHTTPClient adds the HTTPClient to the create secret params
func (*CreateSecretParams) WithIfMatch ¶
func (o *CreateSecretParams) WithIfMatch(ifMatch *string) *CreateSecretParams
WithIfMatch adds the ifMatch to the create secret params
func (*CreateSecretParams) WithSecret ¶
func (o *CreateSecretParams) WithSecret(secret *models.Secret) *CreateSecretParams
WithSecret adds the secret to the create secret params
func (*CreateSecretParams) WithTimeout ¶
func (o *CreateSecretParams) WithTimeout(timeout time.Duration) *CreateSecretParams
WithTimeout adds the timeout to the create secret params
func (*CreateSecretParams) WithWid ¶
func (o *CreateSecretParams) WithWid(wid string) *CreateSecretParams
WithWid adds the wid to the create secret params
func (*CreateSecretParams) WriteToRequest ¶
func (o *CreateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSecretReader ¶
type CreateSecretReader struct {
// contains filtered or unexported fields
}
CreateSecretReader is a Reader for the CreateSecret structure.
func (*CreateSecretReader) ReadResponse ¶
func (o *CreateSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateSecretTooManyRequests ¶
CreateSecretTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewCreateSecretTooManyRequests ¶
func NewCreateSecretTooManyRequests() *CreateSecretTooManyRequests
NewCreateSecretTooManyRequests creates a CreateSecretTooManyRequests with default headers values
func (*CreateSecretTooManyRequests) Code ¶
func (o *CreateSecretTooManyRequests) Code() int
Code gets the status code for the create secret too many requests response
func (*CreateSecretTooManyRequests) Error ¶
func (o *CreateSecretTooManyRequests) Error() string
func (*CreateSecretTooManyRequests) GetPayload ¶
func (o *CreateSecretTooManyRequests) GetPayload() *models.Error
func (*CreateSecretTooManyRequests) IsClientError ¶
func (o *CreateSecretTooManyRequests) IsClientError() bool
IsClientError returns true when this create secret too many requests response has a 4xx status code
func (*CreateSecretTooManyRequests) IsCode ¶
func (o *CreateSecretTooManyRequests) IsCode(code int) bool
IsCode returns true when this create secret too many requests response a status code equal to that given
func (*CreateSecretTooManyRequests) IsRedirect ¶
func (o *CreateSecretTooManyRequests) IsRedirect() bool
IsRedirect returns true when this create secret too many requests response has a 3xx status code
func (*CreateSecretTooManyRequests) IsServerError ¶
func (o *CreateSecretTooManyRequests) IsServerError() bool
IsServerError returns true when this create secret too many requests response has a 5xx status code
func (*CreateSecretTooManyRequests) IsSuccess ¶
func (o *CreateSecretTooManyRequests) IsSuccess() bool
IsSuccess returns true when this create secret too many requests response has a 2xx status code
func (*CreateSecretTooManyRequests) String ¶
func (o *CreateSecretTooManyRequests) String() string
type CreateSecretUnauthorized ¶
type CreateSecretUnauthorized struct {
}CreateSecretUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateSecretUnauthorized ¶
func NewCreateSecretUnauthorized() *CreateSecretUnauthorized
NewCreateSecretUnauthorized creates a CreateSecretUnauthorized with default headers values
func (*CreateSecretUnauthorized) Code ¶
func (o *CreateSecretUnauthorized) Code() int
Code gets the status code for the create secret unauthorized response
func (*CreateSecretUnauthorized) Error ¶
func (o *CreateSecretUnauthorized) Error() string
func (*CreateSecretUnauthorized) GetPayload ¶
func (o *CreateSecretUnauthorized) GetPayload() *models.Error
func (*CreateSecretUnauthorized) IsClientError ¶
func (o *CreateSecretUnauthorized) IsClientError() bool
IsClientError returns true when this create secret unauthorized response has a 4xx status code
func (*CreateSecretUnauthorized) IsCode ¶
func (o *CreateSecretUnauthorized) IsCode(code int) bool
IsCode returns true when this create secret unauthorized response a status code equal to that given
func (*CreateSecretUnauthorized) IsRedirect ¶
func (o *CreateSecretUnauthorized) IsRedirect() bool
IsRedirect returns true when this create secret unauthorized response has a 3xx status code
func (*CreateSecretUnauthorized) IsServerError ¶
func (o *CreateSecretUnauthorized) IsServerError() bool
IsServerError returns true when this create secret unauthorized response has a 5xx status code
func (*CreateSecretUnauthorized) IsSuccess ¶
func (o *CreateSecretUnauthorized) IsSuccess() bool
IsSuccess returns true when this create secret unauthorized response has a 2xx status code
func (*CreateSecretUnauthorized) String ¶
func (o *CreateSecretUnauthorized) String() string
type CreateSecretUnprocessableEntity ¶
CreateSecretUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewCreateSecretUnprocessableEntity ¶
func NewCreateSecretUnprocessableEntity() *CreateSecretUnprocessableEntity
NewCreateSecretUnprocessableEntity creates a CreateSecretUnprocessableEntity with default headers values
func (*CreateSecretUnprocessableEntity) Code ¶
func (o *CreateSecretUnprocessableEntity) Code() int
Code gets the status code for the create secret unprocessable entity response
func (*CreateSecretUnprocessableEntity) Error ¶
func (o *CreateSecretUnprocessableEntity) Error() string
func (*CreateSecretUnprocessableEntity) GetPayload ¶
func (o *CreateSecretUnprocessableEntity) GetPayload() *models.Error
func (*CreateSecretUnprocessableEntity) IsClientError ¶
func (o *CreateSecretUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create secret unprocessable entity response has a 4xx status code
func (*CreateSecretUnprocessableEntity) IsCode ¶
func (o *CreateSecretUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create secret unprocessable entity response a status code equal to that given
func (*CreateSecretUnprocessableEntity) IsRedirect ¶
func (o *CreateSecretUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create secret unprocessable entity response has a 3xx status code
func (*CreateSecretUnprocessableEntity) IsServerError ¶
func (o *CreateSecretUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create secret unprocessable entity response has a 5xx status code
func (*CreateSecretUnprocessableEntity) IsSuccess ¶
func (o *CreateSecretUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create secret unprocessable entity response has a 2xx status code
func (*CreateSecretUnprocessableEntity) String ¶
func (o *CreateSecretUnprocessableEntity) String() string
type DeleteSecretBadRequest ¶
DeleteSecretBadRequest describes a response with status code 400, with default header values.
Bad request
func NewDeleteSecretBadRequest ¶
func NewDeleteSecretBadRequest() *DeleteSecretBadRequest
NewDeleteSecretBadRequest creates a DeleteSecretBadRequest with default headers values
func (*DeleteSecretBadRequest) Code ¶
func (o *DeleteSecretBadRequest) Code() int
Code gets the status code for the delete secret bad request response
func (*DeleteSecretBadRequest) Error ¶
func (o *DeleteSecretBadRequest) Error() string
func (*DeleteSecretBadRequest) GetPayload ¶
func (o *DeleteSecretBadRequest) GetPayload() *models.Error
func (*DeleteSecretBadRequest) IsClientError ¶
func (o *DeleteSecretBadRequest) IsClientError() bool
IsClientError returns true when this delete secret bad request response has a 4xx status code
func (*DeleteSecretBadRequest) IsCode ¶
func (o *DeleteSecretBadRequest) IsCode(code int) bool
IsCode returns true when this delete secret bad request response a status code equal to that given
func (*DeleteSecretBadRequest) IsRedirect ¶
func (o *DeleteSecretBadRequest) IsRedirect() bool
IsRedirect returns true when this delete secret bad request response has a 3xx status code
func (*DeleteSecretBadRequest) IsServerError ¶
func (o *DeleteSecretBadRequest) IsServerError() bool
IsServerError returns true when this delete secret bad request response has a 5xx status code
func (*DeleteSecretBadRequest) IsSuccess ¶
func (o *DeleteSecretBadRequest) IsSuccess() bool
IsSuccess returns true when this delete secret bad request response has a 2xx status code
func (*DeleteSecretBadRequest) String ¶
func (o *DeleteSecretBadRequest) String() string
type DeleteSecretForbidden ¶
DeleteSecretForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteSecretForbidden ¶
func NewDeleteSecretForbidden() *DeleteSecretForbidden
NewDeleteSecretForbidden creates a DeleteSecretForbidden with default headers values
func (*DeleteSecretForbidden) Code ¶
func (o *DeleteSecretForbidden) Code() int
Code gets the status code for the delete secret forbidden response
func (*DeleteSecretForbidden) Error ¶
func (o *DeleteSecretForbidden) Error() string
func (*DeleteSecretForbidden) GetPayload ¶
func (o *DeleteSecretForbidden) GetPayload() *models.Error
func (*DeleteSecretForbidden) IsClientError ¶
func (o *DeleteSecretForbidden) IsClientError() bool
IsClientError returns true when this delete secret forbidden response has a 4xx status code
func (*DeleteSecretForbidden) IsCode ¶
func (o *DeleteSecretForbidden) IsCode(code int) bool
IsCode returns true when this delete secret forbidden response a status code equal to that given
func (*DeleteSecretForbidden) IsRedirect ¶
func (o *DeleteSecretForbidden) IsRedirect() bool
IsRedirect returns true when this delete secret forbidden response has a 3xx status code
func (*DeleteSecretForbidden) IsServerError ¶
func (o *DeleteSecretForbidden) IsServerError() bool
IsServerError returns true when this delete secret forbidden response has a 5xx status code
func (*DeleteSecretForbidden) IsSuccess ¶
func (o *DeleteSecretForbidden) IsSuccess() bool
IsSuccess returns true when this delete secret forbidden response has a 2xx status code
func (*DeleteSecretForbidden) String ¶
func (o *DeleteSecretForbidden) String() string
type DeleteSecretNoContent ¶
type DeleteSecretNoContent struct { }
DeleteSecretNoContent describes a response with status code 204, with default header values.
Secret has been deleted
func NewDeleteSecretNoContent ¶
func NewDeleteSecretNoContent() *DeleteSecretNoContent
NewDeleteSecretNoContent creates a DeleteSecretNoContent with default headers values
func (*DeleteSecretNoContent) Code ¶
func (o *DeleteSecretNoContent) Code() int
Code gets the status code for the delete secret no content response
func (*DeleteSecretNoContent) Error ¶
func (o *DeleteSecretNoContent) Error() string
func (*DeleteSecretNoContent) IsClientError ¶
func (o *DeleteSecretNoContent) IsClientError() bool
IsClientError returns true when this delete secret no content response has a 4xx status code
func (*DeleteSecretNoContent) IsCode ¶
func (o *DeleteSecretNoContent) IsCode(code int) bool
IsCode returns true when this delete secret no content response a status code equal to that given
func (*DeleteSecretNoContent) IsRedirect ¶
func (o *DeleteSecretNoContent) IsRedirect() bool
IsRedirect returns true when this delete secret no content response has a 3xx status code
func (*DeleteSecretNoContent) IsServerError ¶
func (o *DeleteSecretNoContent) IsServerError() bool
IsServerError returns true when this delete secret no content response has a 5xx status code
func (*DeleteSecretNoContent) IsSuccess ¶
func (o *DeleteSecretNoContent) IsSuccess() bool
IsSuccess returns true when this delete secret no content response has a 2xx status code
func (*DeleteSecretNoContent) String ¶
func (o *DeleteSecretNoContent) String() string
type DeleteSecretNotFound ¶
DeleteSecretNotFound describes a response with status code 404, with default header values.
Not found
func NewDeleteSecretNotFound ¶
func NewDeleteSecretNotFound() *DeleteSecretNotFound
NewDeleteSecretNotFound creates a DeleteSecretNotFound with default headers values
func (*DeleteSecretNotFound) Code ¶
func (o *DeleteSecretNotFound) Code() int
Code gets the status code for the delete secret not found response
func (*DeleteSecretNotFound) Error ¶
func (o *DeleteSecretNotFound) Error() string
func (*DeleteSecretNotFound) GetPayload ¶
func (o *DeleteSecretNotFound) GetPayload() *models.Error
func (*DeleteSecretNotFound) IsClientError ¶
func (o *DeleteSecretNotFound) IsClientError() bool
IsClientError returns true when this delete secret not found response has a 4xx status code
func (*DeleteSecretNotFound) IsCode ¶
func (o *DeleteSecretNotFound) IsCode(code int) bool
IsCode returns true when this delete secret not found response a status code equal to that given
func (*DeleteSecretNotFound) IsRedirect ¶
func (o *DeleteSecretNotFound) IsRedirect() bool
IsRedirect returns true when this delete secret not found response has a 3xx status code
func (*DeleteSecretNotFound) IsServerError ¶
func (o *DeleteSecretNotFound) IsServerError() bool
IsServerError returns true when this delete secret not found response has a 5xx status code
func (*DeleteSecretNotFound) IsSuccess ¶
func (o *DeleteSecretNotFound) IsSuccess() bool
IsSuccess returns true when this delete secret not found response has a 2xx status code
func (*DeleteSecretNotFound) String ¶
func (o *DeleteSecretNotFound) String() string
type DeleteSecretParams ¶
type DeleteSecretParams struct { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string // Sid. // // Default: "default" Sid string /* Wid. Authorization server id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteSecretParams contains all the parameters to send to the API endpoint
for the delete secret operation. Typically these are written to a http.Request.
func NewDeleteSecretParams ¶
func NewDeleteSecretParams() *DeleteSecretParams
NewDeleteSecretParams creates a new DeleteSecretParams 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 NewDeleteSecretParamsWithContext ¶
func NewDeleteSecretParamsWithContext(ctx context.Context) *DeleteSecretParams
NewDeleteSecretParamsWithContext creates a new DeleteSecretParams object with the ability to set a context for a request.
func NewDeleteSecretParamsWithHTTPClient ¶
func NewDeleteSecretParamsWithHTTPClient(client *http.Client) *DeleteSecretParams
NewDeleteSecretParamsWithHTTPClient creates a new DeleteSecretParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteSecretParamsWithTimeout ¶
func NewDeleteSecretParamsWithTimeout(timeout time.Duration) *DeleteSecretParams
NewDeleteSecretParamsWithTimeout creates a new DeleteSecretParams object with the ability to set a timeout on a request.
func (*DeleteSecretParams) SetContext ¶
func (o *DeleteSecretParams) SetContext(ctx context.Context)
SetContext adds the context to the delete secret params
func (*DeleteSecretParams) SetDefaults ¶
func (o *DeleteSecretParams) SetDefaults()
SetDefaults hydrates default values in the delete secret params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSecretParams) SetHTTPClient ¶
func (o *DeleteSecretParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete secret params
func (*DeleteSecretParams) SetIfMatch ¶
func (o *DeleteSecretParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the delete secret params
func (*DeleteSecretParams) SetSid ¶
func (o *DeleteSecretParams) SetSid(sid string)
SetSid adds the sid to the delete secret params
func (*DeleteSecretParams) SetTimeout ¶
func (o *DeleteSecretParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete secret params
func (*DeleteSecretParams) SetWid ¶
func (o *DeleteSecretParams) SetWid(wid string)
SetWid adds the wid to the delete secret params
func (*DeleteSecretParams) WithContext ¶
func (o *DeleteSecretParams) WithContext(ctx context.Context) *DeleteSecretParams
WithContext adds the context to the delete secret params
func (*DeleteSecretParams) WithDefaults ¶
func (o *DeleteSecretParams) WithDefaults() *DeleteSecretParams
WithDefaults hydrates default values in the delete secret params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteSecretParams) WithHTTPClient ¶
func (o *DeleteSecretParams) WithHTTPClient(client *http.Client) *DeleteSecretParams
WithHTTPClient adds the HTTPClient to the delete secret params
func (*DeleteSecretParams) WithIfMatch ¶
func (o *DeleteSecretParams) WithIfMatch(ifMatch *string) *DeleteSecretParams
WithIfMatch adds the ifMatch to the delete secret params
func (*DeleteSecretParams) WithSid ¶
func (o *DeleteSecretParams) WithSid(sid string) *DeleteSecretParams
WithSid adds the sid to the delete secret params
func (*DeleteSecretParams) WithTimeout ¶
func (o *DeleteSecretParams) WithTimeout(timeout time.Duration) *DeleteSecretParams
WithTimeout adds the timeout to the delete secret params
func (*DeleteSecretParams) WithWid ¶
func (o *DeleteSecretParams) WithWid(wid string) *DeleteSecretParams
WithWid adds the wid to the delete secret params
func (*DeleteSecretParams) WriteToRequest ¶
func (o *DeleteSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteSecretReader ¶
type DeleteSecretReader struct {
// contains filtered or unexported fields
}
DeleteSecretReader is a Reader for the DeleteSecret structure.
func (*DeleteSecretReader) ReadResponse ¶
func (o *DeleteSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteSecretTooManyRequests ¶
DeleteSecretTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewDeleteSecretTooManyRequests ¶
func NewDeleteSecretTooManyRequests() *DeleteSecretTooManyRequests
NewDeleteSecretTooManyRequests creates a DeleteSecretTooManyRequests with default headers values
func (*DeleteSecretTooManyRequests) Code ¶
func (o *DeleteSecretTooManyRequests) Code() int
Code gets the status code for the delete secret too many requests response
func (*DeleteSecretTooManyRequests) Error ¶
func (o *DeleteSecretTooManyRequests) Error() string
func (*DeleteSecretTooManyRequests) GetPayload ¶
func (o *DeleteSecretTooManyRequests) GetPayload() *models.Error
func (*DeleteSecretTooManyRequests) IsClientError ¶
func (o *DeleteSecretTooManyRequests) IsClientError() bool
IsClientError returns true when this delete secret too many requests response has a 4xx status code
func (*DeleteSecretTooManyRequests) IsCode ¶
func (o *DeleteSecretTooManyRequests) IsCode(code int) bool
IsCode returns true when this delete secret too many requests response a status code equal to that given
func (*DeleteSecretTooManyRequests) IsRedirect ¶
func (o *DeleteSecretTooManyRequests) IsRedirect() bool
IsRedirect returns true when this delete secret too many requests response has a 3xx status code
func (*DeleteSecretTooManyRequests) IsServerError ¶
func (o *DeleteSecretTooManyRequests) IsServerError() bool
IsServerError returns true when this delete secret too many requests response has a 5xx status code
func (*DeleteSecretTooManyRequests) IsSuccess ¶
func (o *DeleteSecretTooManyRequests) IsSuccess() bool
IsSuccess returns true when this delete secret too many requests response has a 2xx status code
func (*DeleteSecretTooManyRequests) String ¶
func (o *DeleteSecretTooManyRequests) String() string
type DeleteSecretUnauthorized ¶
type DeleteSecretUnauthorized struct {
}DeleteSecretUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteSecretUnauthorized ¶
func NewDeleteSecretUnauthorized() *DeleteSecretUnauthorized
NewDeleteSecretUnauthorized creates a DeleteSecretUnauthorized with default headers values
func (*DeleteSecretUnauthorized) Code ¶
func (o *DeleteSecretUnauthorized) Code() int
Code gets the status code for the delete secret unauthorized response
func (*DeleteSecretUnauthorized) Error ¶
func (o *DeleteSecretUnauthorized) Error() string
func (*DeleteSecretUnauthorized) GetPayload ¶
func (o *DeleteSecretUnauthorized) GetPayload() *models.Error
func (*DeleteSecretUnauthorized) IsClientError ¶
func (o *DeleteSecretUnauthorized) IsClientError() bool
IsClientError returns true when this delete secret unauthorized response has a 4xx status code
func (*DeleteSecretUnauthorized) IsCode ¶
func (o *DeleteSecretUnauthorized) IsCode(code int) bool
IsCode returns true when this delete secret unauthorized response a status code equal to that given
func (*DeleteSecretUnauthorized) IsRedirect ¶
func (o *DeleteSecretUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete secret unauthorized response has a 3xx status code
func (*DeleteSecretUnauthorized) IsServerError ¶
func (o *DeleteSecretUnauthorized) IsServerError() bool
IsServerError returns true when this delete secret unauthorized response has a 5xx status code
func (*DeleteSecretUnauthorized) IsSuccess ¶
func (o *DeleteSecretUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete secret unauthorized response has a 2xx status code
func (*DeleteSecretUnauthorized) String ¶
func (o *DeleteSecretUnauthorized) String() string
type ListSecretsBadRequest ¶
ListSecretsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewListSecretsBadRequest ¶
func NewListSecretsBadRequest() *ListSecretsBadRequest
NewListSecretsBadRequest creates a ListSecretsBadRequest with default headers values
func (*ListSecretsBadRequest) Code ¶
func (o *ListSecretsBadRequest) Code() int
Code gets the status code for the list secrets bad request response
func (*ListSecretsBadRequest) Error ¶
func (o *ListSecretsBadRequest) Error() string
func (*ListSecretsBadRequest) GetPayload ¶
func (o *ListSecretsBadRequest) GetPayload() *models.Error
func (*ListSecretsBadRequest) IsClientError ¶
func (o *ListSecretsBadRequest) IsClientError() bool
IsClientError returns true when this list secrets bad request response has a 4xx status code
func (*ListSecretsBadRequest) IsCode ¶
func (o *ListSecretsBadRequest) IsCode(code int) bool
IsCode returns true when this list secrets bad request response a status code equal to that given
func (*ListSecretsBadRequest) IsRedirect ¶
func (o *ListSecretsBadRequest) IsRedirect() bool
IsRedirect returns true when this list secrets bad request response has a 3xx status code
func (*ListSecretsBadRequest) IsServerError ¶
func (o *ListSecretsBadRequest) IsServerError() bool
IsServerError returns true when this list secrets bad request response has a 5xx status code
func (*ListSecretsBadRequest) IsSuccess ¶
func (o *ListSecretsBadRequest) IsSuccess() bool
IsSuccess returns true when this list secrets bad request response has a 2xx status code
func (*ListSecretsBadRequest) String ¶
func (o *ListSecretsBadRequest) String() string
type ListSecretsForbidden ¶
ListSecretsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListSecretsForbidden ¶
func NewListSecretsForbidden() *ListSecretsForbidden
NewListSecretsForbidden creates a ListSecretsForbidden with default headers values
func (*ListSecretsForbidden) Code ¶
func (o *ListSecretsForbidden) Code() int
Code gets the status code for the list secrets forbidden response
func (*ListSecretsForbidden) Error ¶
func (o *ListSecretsForbidden) Error() string
func (*ListSecretsForbidden) GetPayload ¶
func (o *ListSecretsForbidden) GetPayload() *models.Error
func (*ListSecretsForbidden) IsClientError ¶
func (o *ListSecretsForbidden) IsClientError() bool
IsClientError returns true when this list secrets forbidden response has a 4xx status code
func (*ListSecretsForbidden) IsCode ¶
func (o *ListSecretsForbidden) IsCode(code int) bool
IsCode returns true when this list secrets forbidden response a status code equal to that given
func (*ListSecretsForbidden) IsRedirect ¶
func (o *ListSecretsForbidden) IsRedirect() bool
IsRedirect returns true when this list secrets forbidden response has a 3xx status code
func (*ListSecretsForbidden) IsServerError ¶
func (o *ListSecretsForbidden) IsServerError() bool
IsServerError returns true when this list secrets forbidden response has a 5xx status code
func (*ListSecretsForbidden) IsSuccess ¶
func (o *ListSecretsForbidden) IsSuccess() bool
IsSuccess returns true when this list secrets forbidden response has a 2xx status code
func (*ListSecretsForbidden) String ¶
func (o *ListSecretsForbidden) String() string
type ListSecretsOK ¶
type ListSecretsOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.SecretsResponse }
ListSecretsOK describes a response with status code 200, with default header values.
Secrets
func NewListSecretsOK ¶
func NewListSecretsOK() *ListSecretsOK
NewListSecretsOK creates a ListSecretsOK with default headers values
func (*ListSecretsOK) Code ¶
func (o *ListSecretsOK) Code() int
Code gets the status code for the list secrets o k response
func (*ListSecretsOK) Error ¶
func (o *ListSecretsOK) Error() string
func (*ListSecretsOK) GetPayload ¶
func (o *ListSecretsOK) GetPayload() *models.SecretsResponse
func (*ListSecretsOK) IsClientError ¶
func (o *ListSecretsOK) IsClientError() bool
IsClientError returns true when this list secrets o k response has a 4xx status code
func (*ListSecretsOK) IsCode ¶
func (o *ListSecretsOK) IsCode(code int) bool
IsCode returns true when this list secrets o k response a status code equal to that given
func (*ListSecretsOK) IsRedirect ¶
func (o *ListSecretsOK) IsRedirect() bool
IsRedirect returns true when this list secrets o k response has a 3xx status code
func (*ListSecretsOK) IsServerError ¶
func (o *ListSecretsOK) IsServerError() bool
IsServerError returns true when this list secrets o k response has a 5xx status code
func (*ListSecretsOK) IsSuccess ¶
func (o *ListSecretsOK) IsSuccess() bool
IsSuccess returns true when this list secrets o k response has a 2xx status code
func (*ListSecretsOK) String ¶
func (o *ListSecretsOK) String() string
type ListSecretsParams ¶
type ListSecretsParams struct { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Wid. Authorization server id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSecretsParams contains all the parameters to send to the API endpoint
for the list secrets operation. Typically these are written to a http.Request.
func NewListSecretsParams ¶
func NewListSecretsParams() *ListSecretsParams
NewListSecretsParams creates a new ListSecretsParams 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 NewListSecretsParamsWithContext ¶
func NewListSecretsParamsWithContext(ctx context.Context) *ListSecretsParams
NewListSecretsParamsWithContext creates a new ListSecretsParams object with the ability to set a context for a request.
func NewListSecretsParamsWithHTTPClient ¶
func NewListSecretsParamsWithHTTPClient(client *http.Client) *ListSecretsParams
NewListSecretsParamsWithHTTPClient creates a new ListSecretsParams object with the ability to set a custom HTTPClient for a request.
func NewListSecretsParamsWithTimeout ¶
func NewListSecretsParamsWithTimeout(timeout time.Duration) *ListSecretsParams
NewListSecretsParamsWithTimeout creates a new ListSecretsParams object with the ability to set a timeout on a request.
func (*ListSecretsParams) SetContext ¶
func (o *ListSecretsParams) SetContext(ctx context.Context)
SetContext adds the context to the list secrets params
func (*ListSecretsParams) SetDefaults ¶
func (o *ListSecretsParams) SetDefaults()
SetDefaults hydrates default values in the list secrets params (not the query body).
All values with no default are reset to their zero value.
func (*ListSecretsParams) SetHTTPClient ¶
func (o *ListSecretsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list secrets params
func (*ListSecretsParams) SetIfMatch ¶
func (o *ListSecretsParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the list secrets params
func (*ListSecretsParams) SetTimeout ¶
func (o *ListSecretsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list secrets params
func (*ListSecretsParams) SetWid ¶
func (o *ListSecretsParams) SetWid(wid string)
SetWid adds the wid to the list secrets params
func (*ListSecretsParams) WithContext ¶
func (o *ListSecretsParams) WithContext(ctx context.Context) *ListSecretsParams
WithContext adds the context to the list secrets params
func (*ListSecretsParams) WithDefaults ¶
func (o *ListSecretsParams) WithDefaults() *ListSecretsParams
WithDefaults hydrates default values in the list secrets params (not the query body).
All values with no default are reset to their zero value.
func (*ListSecretsParams) WithHTTPClient ¶
func (o *ListSecretsParams) WithHTTPClient(client *http.Client) *ListSecretsParams
WithHTTPClient adds the HTTPClient to the list secrets params
func (*ListSecretsParams) WithIfMatch ¶
func (o *ListSecretsParams) WithIfMatch(ifMatch *string) *ListSecretsParams
WithIfMatch adds the ifMatch to the list secrets params
func (*ListSecretsParams) WithTimeout ¶
func (o *ListSecretsParams) WithTimeout(timeout time.Duration) *ListSecretsParams
WithTimeout adds the timeout to the list secrets params
func (*ListSecretsParams) WithWid ¶
func (o *ListSecretsParams) WithWid(wid string) *ListSecretsParams
WithWid adds the wid to the list secrets params
func (*ListSecretsParams) WriteToRequest ¶
func (o *ListSecretsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSecretsReader ¶
type ListSecretsReader struct {
// contains filtered or unexported fields
}
ListSecretsReader is a Reader for the ListSecrets structure.
func (*ListSecretsReader) ReadResponse ¶
func (o *ListSecretsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSecretsTooManyRequests ¶
ListSecretsTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewListSecretsTooManyRequests ¶
func NewListSecretsTooManyRequests() *ListSecretsTooManyRequests
NewListSecretsTooManyRequests creates a ListSecretsTooManyRequests with default headers values
func (*ListSecretsTooManyRequests) Code ¶
func (o *ListSecretsTooManyRequests) Code() int
Code gets the status code for the list secrets too many requests response
func (*ListSecretsTooManyRequests) Error ¶
func (o *ListSecretsTooManyRequests) Error() string
func (*ListSecretsTooManyRequests) GetPayload ¶
func (o *ListSecretsTooManyRequests) GetPayload() *models.Error
func (*ListSecretsTooManyRequests) IsClientError ¶
func (o *ListSecretsTooManyRequests) IsClientError() bool
IsClientError returns true when this list secrets too many requests response has a 4xx status code
func (*ListSecretsTooManyRequests) IsCode ¶
func (o *ListSecretsTooManyRequests) IsCode(code int) bool
IsCode returns true when this list secrets too many requests response a status code equal to that given
func (*ListSecretsTooManyRequests) IsRedirect ¶
func (o *ListSecretsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list secrets too many requests response has a 3xx status code
func (*ListSecretsTooManyRequests) IsServerError ¶
func (o *ListSecretsTooManyRequests) IsServerError() bool
IsServerError returns true when this list secrets too many requests response has a 5xx status code
func (*ListSecretsTooManyRequests) IsSuccess ¶
func (o *ListSecretsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list secrets too many requests response has a 2xx status code
func (*ListSecretsTooManyRequests) String ¶
func (o *ListSecretsTooManyRequests) String() string
type ListSecretsUnauthorized ¶
type ListSecretsUnauthorized struct {
}ListSecretsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListSecretsUnauthorized ¶
func NewListSecretsUnauthorized() *ListSecretsUnauthorized
NewListSecretsUnauthorized creates a ListSecretsUnauthorized with default headers values
func (*ListSecretsUnauthorized) Code ¶
func (o *ListSecretsUnauthorized) Code() int
Code gets the status code for the list secrets unauthorized response
func (*ListSecretsUnauthorized) Error ¶
func (o *ListSecretsUnauthorized) Error() string
func (*ListSecretsUnauthorized) GetPayload ¶
func (o *ListSecretsUnauthorized) GetPayload() *models.Error
func (*ListSecretsUnauthorized) IsClientError ¶
func (o *ListSecretsUnauthorized) IsClientError() bool
IsClientError returns true when this list secrets unauthorized response has a 4xx status code
func (*ListSecretsUnauthorized) IsCode ¶
func (o *ListSecretsUnauthorized) IsCode(code int) bool
IsCode returns true when this list secrets unauthorized response a status code equal to that given
func (*ListSecretsUnauthorized) IsRedirect ¶
func (o *ListSecretsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list secrets unauthorized response has a 3xx status code
func (*ListSecretsUnauthorized) IsServerError ¶
func (o *ListSecretsUnauthorized) IsServerError() bool
IsServerError returns true when this list secrets unauthorized response has a 5xx status code
func (*ListSecretsUnauthorized) IsSuccess ¶
func (o *ListSecretsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list secrets unauthorized response has a 2xx status code
func (*ListSecretsUnauthorized) String ¶
func (o *ListSecretsUnauthorized) String() string
type UpdateSecretBadRequest ¶
UpdateSecretBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUpdateSecretBadRequest ¶
func NewUpdateSecretBadRequest() *UpdateSecretBadRequest
NewUpdateSecretBadRequest creates a UpdateSecretBadRequest with default headers values
func (*UpdateSecretBadRequest) Code ¶
func (o *UpdateSecretBadRequest) Code() int
Code gets the status code for the update secret bad request response
func (*UpdateSecretBadRequest) Error ¶
func (o *UpdateSecretBadRequest) Error() string
func (*UpdateSecretBadRequest) GetPayload ¶
func (o *UpdateSecretBadRequest) GetPayload() *models.Error
func (*UpdateSecretBadRequest) IsClientError ¶
func (o *UpdateSecretBadRequest) IsClientError() bool
IsClientError returns true when this update secret bad request response has a 4xx status code
func (*UpdateSecretBadRequest) IsCode ¶
func (o *UpdateSecretBadRequest) IsCode(code int) bool
IsCode returns true when this update secret bad request response a status code equal to that given
func (*UpdateSecretBadRequest) IsRedirect ¶
func (o *UpdateSecretBadRequest) IsRedirect() bool
IsRedirect returns true when this update secret bad request response has a 3xx status code
func (*UpdateSecretBadRequest) IsServerError ¶
func (o *UpdateSecretBadRequest) IsServerError() bool
IsServerError returns true when this update secret bad request response has a 5xx status code
func (*UpdateSecretBadRequest) IsSuccess ¶
func (o *UpdateSecretBadRequest) IsSuccess() bool
IsSuccess returns true when this update secret bad request response has a 2xx status code
func (*UpdateSecretBadRequest) String ¶
func (o *UpdateSecretBadRequest) String() string
type UpdateSecretCreated ¶
type UpdateSecretCreated struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Secret }
UpdateSecretCreated describes a response with status code 201, with default header values.
Secret
func NewUpdateSecretCreated ¶
func NewUpdateSecretCreated() *UpdateSecretCreated
NewUpdateSecretCreated creates a UpdateSecretCreated with default headers values
func (*UpdateSecretCreated) Code ¶
func (o *UpdateSecretCreated) Code() int
Code gets the status code for the update secret created response
func (*UpdateSecretCreated) Error ¶
func (o *UpdateSecretCreated) Error() string
func (*UpdateSecretCreated) GetPayload ¶
func (o *UpdateSecretCreated) GetPayload() *models.Secret
func (*UpdateSecretCreated) IsClientError ¶
func (o *UpdateSecretCreated) IsClientError() bool
IsClientError returns true when this update secret created response has a 4xx status code
func (*UpdateSecretCreated) IsCode ¶
func (o *UpdateSecretCreated) IsCode(code int) bool
IsCode returns true when this update secret created response a status code equal to that given
func (*UpdateSecretCreated) IsRedirect ¶
func (o *UpdateSecretCreated) IsRedirect() bool
IsRedirect returns true when this update secret created response has a 3xx status code
func (*UpdateSecretCreated) IsServerError ¶
func (o *UpdateSecretCreated) IsServerError() bool
IsServerError returns true when this update secret created response has a 5xx status code
func (*UpdateSecretCreated) IsSuccess ¶
func (o *UpdateSecretCreated) IsSuccess() bool
IsSuccess returns true when this update secret created response has a 2xx status code
func (*UpdateSecretCreated) String ¶
func (o *UpdateSecretCreated) String() string
type UpdateSecretForbidden ¶
UpdateSecretForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateSecretForbidden ¶
func NewUpdateSecretForbidden() *UpdateSecretForbidden
NewUpdateSecretForbidden creates a UpdateSecretForbidden with default headers values
func (*UpdateSecretForbidden) Code ¶
func (o *UpdateSecretForbidden) Code() int
Code gets the status code for the update secret forbidden response
func (*UpdateSecretForbidden) Error ¶
func (o *UpdateSecretForbidden) Error() string
func (*UpdateSecretForbidden) GetPayload ¶
func (o *UpdateSecretForbidden) GetPayload() *models.Error
func (*UpdateSecretForbidden) IsClientError ¶
func (o *UpdateSecretForbidden) IsClientError() bool
IsClientError returns true when this update secret forbidden response has a 4xx status code
func (*UpdateSecretForbidden) IsCode ¶
func (o *UpdateSecretForbidden) IsCode(code int) bool
IsCode returns true when this update secret forbidden response a status code equal to that given
func (*UpdateSecretForbidden) IsRedirect ¶
func (o *UpdateSecretForbidden) IsRedirect() bool
IsRedirect returns true when this update secret forbidden response has a 3xx status code
func (*UpdateSecretForbidden) IsServerError ¶
func (o *UpdateSecretForbidden) IsServerError() bool
IsServerError returns true when this update secret forbidden response has a 5xx status code
func (*UpdateSecretForbidden) IsSuccess ¶
func (o *UpdateSecretForbidden) IsSuccess() bool
IsSuccess returns true when this update secret forbidden response has a 2xx status code
func (*UpdateSecretForbidden) String ¶
func (o *UpdateSecretForbidden) String() string
type UpdateSecretNotFound ¶
UpdateSecretNotFound describes a response with status code 404, with default header values.
Not found
func NewUpdateSecretNotFound ¶
func NewUpdateSecretNotFound() *UpdateSecretNotFound
NewUpdateSecretNotFound creates a UpdateSecretNotFound with default headers values
func (*UpdateSecretNotFound) Code ¶
func (o *UpdateSecretNotFound) Code() int
Code gets the status code for the update secret not found response
func (*UpdateSecretNotFound) Error ¶
func (o *UpdateSecretNotFound) Error() string
func (*UpdateSecretNotFound) GetPayload ¶
func (o *UpdateSecretNotFound) GetPayload() *models.Error
func (*UpdateSecretNotFound) IsClientError ¶
func (o *UpdateSecretNotFound) IsClientError() bool
IsClientError returns true when this update secret not found response has a 4xx status code
func (*UpdateSecretNotFound) IsCode ¶
func (o *UpdateSecretNotFound) IsCode(code int) bool
IsCode returns true when this update secret not found response a status code equal to that given
func (*UpdateSecretNotFound) IsRedirect ¶
func (o *UpdateSecretNotFound) IsRedirect() bool
IsRedirect returns true when this update secret not found response has a 3xx status code
func (*UpdateSecretNotFound) IsServerError ¶
func (o *UpdateSecretNotFound) IsServerError() bool
IsServerError returns true when this update secret not found response has a 5xx status code
func (*UpdateSecretNotFound) IsSuccess ¶
func (o *UpdateSecretNotFound) IsSuccess() bool
IsSuccess returns true when this update secret not found response has a 2xx status code
func (*UpdateSecretNotFound) String ¶
func (o *UpdateSecretNotFound) String() string
type UpdateSecretParams ¶
type UpdateSecretParams struct { // Secret. Secret *models.Secret /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string // Sid. // // Default: "default" Sid string /* Wid. Authorization server id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateSecretParams contains all the parameters to send to the API endpoint
for the update secret operation. Typically these are written to a http.Request.
func NewUpdateSecretParams ¶
func NewUpdateSecretParams() *UpdateSecretParams
NewUpdateSecretParams creates a new UpdateSecretParams 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 NewUpdateSecretParamsWithContext ¶
func NewUpdateSecretParamsWithContext(ctx context.Context) *UpdateSecretParams
NewUpdateSecretParamsWithContext creates a new UpdateSecretParams object with the ability to set a context for a request.
func NewUpdateSecretParamsWithHTTPClient ¶
func NewUpdateSecretParamsWithHTTPClient(client *http.Client) *UpdateSecretParams
NewUpdateSecretParamsWithHTTPClient creates a new UpdateSecretParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateSecretParamsWithTimeout ¶
func NewUpdateSecretParamsWithTimeout(timeout time.Duration) *UpdateSecretParams
NewUpdateSecretParamsWithTimeout creates a new UpdateSecretParams object with the ability to set a timeout on a request.
func (*UpdateSecretParams) SetContext ¶
func (o *UpdateSecretParams) SetContext(ctx context.Context)
SetContext adds the context to the update secret params
func (*UpdateSecretParams) SetDefaults ¶
func (o *UpdateSecretParams) SetDefaults()
SetDefaults hydrates default values in the update secret params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSecretParams) SetHTTPClient ¶
func (o *UpdateSecretParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update secret params
func (*UpdateSecretParams) SetIfMatch ¶
func (o *UpdateSecretParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the update secret params
func (*UpdateSecretParams) SetSecret ¶
func (o *UpdateSecretParams) SetSecret(secret *models.Secret)
SetSecret adds the secret to the update secret params
func (*UpdateSecretParams) SetSid ¶
func (o *UpdateSecretParams) SetSid(sid string)
SetSid adds the sid to the update secret params
func (*UpdateSecretParams) SetTimeout ¶
func (o *UpdateSecretParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update secret params
func (*UpdateSecretParams) SetWid ¶
func (o *UpdateSecretParams) SetWid(wid string)
SetWid adds the wid to the update secret params
func (*UpdateSecretParams) WithContext ¶
func (o *UpdateSecretParams) WithContext(ctx context.Context) *UpdateSecretParams
WithContext adds the context to the update secret params
func (*UpdateSecretParams) WithDefaults ¶
func (o *UpdateSecretParams) WithDefaults() *UpdateSecretParams
WithDefaults hydrates default values in the update secret params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateSecretParams) WithHTTPClient ¶
func (o *UpdateSecretParams) WithHTTPClient(client *http.Client) *UpdateSecretParams
WithHTTPClient adds the HTTPClient to the update secret params
func (*UpdateSecretParams) WithIfMatch ¶
func (o *UpdateSecretParams) WithIfMatch(ifMatch *string) *UpdateSecretParams
WithIfMatch adds the ifMatch to the update secret params
func (*UpdateSecretParams) WithSecret ¶
func (o *UpdateSecretParams) WithSecret(secret *models.Secret) *UpdateSecretParams
WithSecret adds the secret to the update secret params
func (*UpdateSecretParams) WithSid ¶
func (o *UpdateSecretParams) WithSid(sid string) *UpdateSecretParams
WithSid adds the sid to the update secret params
func (*UpdateSecretParams) WithTimeout ¶
func (o *UpdateSecretParams) WithTimeout(timeout time.Duration) *UpdateSecretParams
WithTimeout adds the timeout to the update secret params
func (*UpdateSecretParams) WithWid ¶
func (o *UpdateSecretParams) WithWid(wid string) *UpdateSecretParams
WithWid adds the wid to the update secret params
func (*UpdateSecretParams) WriteToRequest ¶
func (o *UpdateSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateSecretReader ¶
type UpdateSecretReader struct {
// contains filtered or unexported fields
}
UpdateSecretReader is a Reader for the UpdateSecret structure.
func (*UpdateSecretReader) ReadResponse ¶
func (o *UpdateSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateSecretTooManyRequests ¶
UpdateSecretTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewUpdateSecretTooManyRequests ¶
func NewUpdateSecretTooManyRequests() *UpdateSecretTooManyRequests
NewUpdateSecretTooManyRequests creates a UpdateSecretTooManyRequests with default headers values
func (*UpdateSecretTooManyRequests) Code ¶
func (o *UpdateSecretTooManyRequests) Code() int
Code gets the status code for the update secret too many requests response
func (*UpdateSecretTooManyRequests) Error ¶
func (o *UpdateSecretTooManyRequests) Error() string
func (*UpdateSecretTooManyRequests) GetPayload ¶
func (o *UpdateSecretTooManyRequests) GetPayload() *models.Error
func (*UpdateSecretTooManyRequests) IsClientError ¶
func (o *UpdateSecretTooManyRequests) IsClientError() bool
IsClientError returns true when this update secret too many requests response has a 4xx status code
func (*UpdateSecretTooManyRequests) IsCode ¶
func (o *UpdateSecretTooManyRequests) IsCode(code int) bool
IsCode returns true when this update secret too many requests response a status code equal to that given
func (*UpdateSecretTooManyRequests) IsRedirect ¶
func (o *UpdateSecretTooManyRequests) IsRedirect() bool
IsRedirect returns true when this update secret too many requests response has a 3xx status code
func (*UpdateSecretTooManyRequests) IsServerError ¶
func (o *UpdateSecretTooManyRequests) IsServerError() bool
IsServerError returns true when this update secret too many requests response has a 5xx status code
func (*UpdateSecretTooManyRequests) IsSuccess ¶
func (o *UpdateSecretTooManyRequests) IsSuccess() bool
IsSuccess returns true when this update secret too many requests response has a 2xx status code
func (*UpdateSecretTooManyRequests) String ¶
func (o *UpdateSecretTooManyRequests) String() string
type UpdateSecretUnauthorized ¶
type UpdateSecretUnauthorized struct {
}UpdateSecretUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdateSecretUnauthorized ¶
func NewUpdateSecretUnauthorized() *UpdateSecretUnauthorized
NewUpdateSecretUnauthorized creates a UpdateSecretUnauthorized with default headers values
func (*UpdateSecretUnauthorized) Code ¶
func (o *UpdateSecretUnauthorized) Code() int
Code gets the status code for the update secret unauthorized response
func (*UpdateSecretUnauthorized) Error ¶
func (o *UpdateSecretUnauthorized) Error() string
func (*UpdateSecretUnauthorized) GetPayload ¶
func (o *UpdateSecretUnauthorized) GetPayload() *models.Error
func (*UpdateSecretUnauthorized) IsClientError ¶
func (o *UpdateSecretUnauthorized) IsClientError() bool
IsClientError returns true when this update secret unauthorized response has a 4xx status code
func (*UpdateSecretUnauthorized) IsCode ¶
func (o *UpdateSecretUnauthorized) IsCode(code int) bool
IsCode returns true when this update secret unauthorized response a status code equal to that given
func (*UpdateSecretUnauthorized) IsRedirect ¶
func (o *UpdateSecretUnauthorized) IsRedirect() bool
IsRedirect returns true when this update secret unauthorized response has a 3xx status code
func (*UpdateSecretUnauthorized) IsServerError ¶
func (o *UpdateSecretUnauthorized) IsServerError() bool
IsServerError returns true when this update secret unauthorized response has a 5xx status code
func (*UpdateSecretUnauthorized) IsSuccess ¶
func (o *UpdateSecretUnauthorized) IsSuccess() bool
IsSuccess returns true when this update secret unauthorized response has a 2xx status code
func (*UpdateSecretUnauthorized) String ¶
func (o *UpdateSecretUnauthorized) String() string
type UpdateSecretUnprocessableEntity ¶
UpdateSecretUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewUpdateSecretUnprocessableEntity ¶
func NewUpdateSecretUnprocessableEntity() *UpdateSecretUnprocessableEntity
NewUpdateSecretUnprocessableEntity creates a UpdateSecretUnprocessableEntity with default headers values
func (*UpdateSecretUnprocessableEntity) Code ¶
func (o *UpdateSecretUnprocessableEntity) Code() int
Code gets the status code for the update secret unprocessable entity response
func (*UpdateSecretUnprocessableEntity) Error ¶
func (o *UpdateSecretUnprocessableEntity) Error() string
func (*UpdateSecretUnprocessableEntity) GetPayload ¶
func (o *UpdateSecretUnprocessableEntity) GetPayload() *models.Error
func (*UpdateSecretUnprocessableEntity) IsClientError ¶
func (o *UpdateSecretUnprocessableEntity) IsClientError() bool
IsClientError returns true when this update secret unprocessable entity response has a 4xx status code
func (*UpdateSecretUnprocessableEntity) IsCode ¶
func (o *UpdateSecretUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update secret unprocessable entity response a status code equal to that given
func (*UpdateSecretUnprocessableEntity) IsRedirect ¶
func (o *UpdateSecretUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this update secret unprocessable entity response has a 3xx status code
func (*UpdateSecretUnprocessableEntity) IsServerError ¶
func (o *UpdateSecretUnprocessableEntity) IsServerError() bool
IsServerError returns true when this update secret unprocessable entity response has a 5xx status code
func (*UpdateSecretUnprocessableEntity) IsSuccess ¶
func (o *UpdateSecretUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update secret unprocessable entity response has a 2xx status code
func (*UpdateSecretUnprocessableEntity) String ¶
func (o *UpdateSecretUnprocessableEntity) String() string