secrets

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for 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 is the option for 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.

type CreateSecretBadRequest

type CreateSecretBadRequest struct {
	Payload *models.Error
}

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

type CreateSecretConflict struct {
	Payload *models.Error
}

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

type CreateSecretForbidden struct {
	Payload *models.Error
}

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

type CreateSecretNotFound struct {
	Payload *models.Error
}

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

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

type CreateSecretTooManyRequests struct {
	Payload *models.Error
}

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 (*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 {
	Payload *models.Error
}

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

type CreateSecretUnprocessableEntity struct {
	Payload *models.Error
}

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

Code gets the status code for the create secret unprocessable entity response

func (*CreateSecretUnprocessableEntity) Error

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

type DeleteSecretBadRequest

type DeleteSecretBadRequest struct {
	Payload *models.Error
}

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

type DeleteSecretForbidden struct {
	Payload *models.Error
}

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

type DeleteSecretNotFound struct {
	Payload *models.Error
}

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

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

type DeleteSecretTooManyRequests struct {
	Payload *models.Error
}

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 (*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 {
	Payload *models.Error
}

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

type ListSecretsBadRequest struct {
	Payload *models.Error
}

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

type ListSecretsForbidden struct {
	Payload *models.Error
}

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

type ListSecretsTooManyRequests struct {
	Payload *models.Error
}

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 (*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 {
	Payload *models.Error
}

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

type UpdateSecretBadRequest struct {
	Payload *models.Error
}

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

type UpdateSecretForbidden struct {
	Payload *models.Error
}

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

type UpdateSecretNotFound struct {
	Payload *models.Error
}

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

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

type UpdateSecretTooManyRequests struct {
	Payload *models.Error
}

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 (*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 {
	Payload *models.Error
}

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

type UpdateSecretUnprocessableEntity struct {
	Payload *models.Error
}

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

Code gets the status code for the update secret unprocessable entity response

func (*UpdateSecretUnprocessableEntity) Error

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

Jump to

Keyboard shortcuts

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