Documentation ¶
Index ¶
- Constants
- type Client
- type PutCredentialRotationsRotationIDAccepted
- type PutCredentialRotationsRotationIDBadRequest
- type PutCredentialRotationsRotationIDBadRequestBody
- type PutCredentialRotationsRotationIDInternalServerError
- type PutCredentialRotationsRotationIDInternalServerErrorBody
- type PutCredentialRotationsRotationIDMethodNotAllowed
- type PutCredentialRotationsRotationIDMethodNotAllowedBody
- type PutCredentialRotationsRotationIDNotFound
- type PutCredentialRotationsRotationIDNotFoundBody
- type PutCredentialRotationsRotationIDParams
- func NewPutCredentialRotationsRotationIDParams() *PutCredentialRotationsRotationIDParams
- func NewPutCredentialRotationsRotationIDParamsWithContext(ctx context.Context) *PutCredentialRotationsRotationIDParams
- func NewPutCredentialRotationsRotationIDParamsWithHTTPClient(client *http.Client) *PutCredentialRotationsRotationIDParams
- func NewPutCredentialRotationsRotationIDParamsWithTimeout(timeout time.Duration) *PutCredentialRotationsRotationIDParams
- func (o *PutCredentialRotationsRotationIDParams) SetBody(body *models.CredentialRotationRequest)
- func (o *PutCredentialRotationsRotationIDParams) SetContext(ctx context.Context)
- func (o *PutCredentialRotationsRotationIDParams) SetHTTPClient(client *http.Client)
- func (o *PutCredentialRotationsRotationIDParams) SetRotationID(rotationID string)
- func (o *PutCredentialRotationsRotationIDParams) SetTimeout(timeout time.Duration)
- func (o *PutCredentialRotationsRotationIDParams) WithBody(body *models.CredentialRotationRequest) *PutCredentialRotationsRotationIDParams
- func (o *PutCredentialRotationsRotationIDParams) WithContext(ctx context.Context) *PutCredentialRotationsRotationIDParams
- func (o *PutCredentialRotationsRotationIDParams) WithHTTPClient(client *http.Client) *PutCredentialRotationsRotationIDParams
- func (o *PutCredentialRotationsRotationIDParams) WithRotationID(rotationID string) *PutCredentialRotationsRotationIDParams
- func (o *PutCredentialRotationsRotationIDParams) WithTimeout(timeout time.Duration) *PutCredentialRotationsRotationIDParams
- func (o *PutCredentialRotationsRotationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutCredentialRotationsRotationIDReader
- type PutCredentialRotationsRotationIDUnauthorized
- type PutCredentialRotationsRotationIDUnauthorizedBody
Constants ¶
const ( // PutCredentialRotationsRotationIDBadRequestBodyTypeBadRequest captures enum value "bad_request" PutCredentialRotationsRotationIDBadRequestBodyTypeBadRequest string = "bad_request" PutCredentialRotationsRotationIDBadRequestBodyTypeUnauthorized string = "unauthorized" // PutCredentialRotationsRotationIDBadRequestBodyTypeNotFound captures enum value "not_found" PutCredentialRotationsRotationIDBadRequestBodyTypeNotFound string = "not_found" // PutCredentialRotationsRotationIDBadRequestBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PutCredentialRotationsRotationIDBadRequestBodyTypeMethodNotAllowed string = "method_not_allowed" // PutCredentialRotationsRotationIDBadRequestBodyTypeInternal captures enum value "internal" PutCredentialRotationsRotationIDBadRequestBodyTypeInternal string = "internal" // PutCredentialRotationsRotationIDBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant" PutCredentialRotationsRotationIDBadRequestBodyTypeInvalidGrant string = "invalid_grant" // PutCredentialRotationsRotationIDBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PutCredentialRotationsRotationIDBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PutCredentialRotationsRotationIDInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" PutCredentialRotationsRotationIDInternalServerErrorBodyTypeBadRequest string = "bad_request" PutCredentialRotationsRotationIDInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // PutCredentialRotationsRotationIDInternalServerErrorBodyTypeNotFound captures enum value "not_found" PutCredentialRotationsRotationIDInternalServerErrorBodyTypeNotFound string = "not_found" // PutCredentialRotationsRotationIDInternalServerErrorBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PutCredentialRotationsRotationIDInternalServerErrorBodyTypeMethodNotAllowed string = "method_not_allowed" // PutCredentialRotationsRotationIDInternalServerErrorBodyTypeInternal captures enum value "internal" PutCredentialRotationsRotationIDInternalServerErrorBodyTypeInternal string = "internal" // PutCredentialRotationsRotationIDInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" PutCredentialRotationsRotationIDInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // PutCredentialRotationsRotationIDInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PutCredentialRotationsRotationIDInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeBadRequest captures enum value "bad_request" PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeBadRequest string = "bad_request" PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeUnauthorized string = "unauthorized" // PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeNotFound captures enum value "not_found" PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeNotFound string = "not_found" // PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeMethodNotAllowed string = "method_not_allowed" // PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeInternal captures enum value "internal" PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeInternal string = "internal" // PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeInvalidGrant captures enum value "invalid_grant" PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeInvalidGrant string = "invalid_grant" // PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PutCredentialRotationsRotationIDMethodNotAllowedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PutCredentialRotationsRotationIDNotFoundBodyTypeBadRequest captures enum value "bad_request" PutCredentialRotationsRotationIDNotFoundBodyTypeBadRequest string = "bad_request" PutCredentialRotationsRotationIDNotFoundBodyTypeUnauthorized string = "unauthorized" // PutCredentialRotationsRotationIDNotFoundBodyTypeNotFound captures enum value "not_found" PutCredentialRotationsRotationIDNotFoundBodyTypeNotFound string = "not_found" // PutCredentialRotationsRotationIDNotFoundBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PutCredentialRotationsRotationIDNotFoundBodyTypeMethodNotAllowed string = "method_not_allowed" // PutCredentialRotationsRotationIDNotFoundBodyTypeInternal captures enum value "internal" PutCredentialRotationsRotationIDNotFoundBodyTypeInternal string = "internal" // PutCredentialRotationsRotationIDNotFoundBodyTypeInvalidGrant captures enum value "invalid_grant" PutCredentialRotationsRotationIDNotFoundBodyTypeInvalidGrant string = "invalid_grant" // PutCredentialRotationsRotationIDNotFoundBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PutCredentialRotationsRotationIDNotFoundBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "bad_request" PutCredentialRotationsRotationIDUnauthorizedBodyTypeUnauthorized string = "unauthorized" PutCredentialRotationsRotationIDUnauthorizedBodyTypeNotFound string = "not_found" PutCredentialRotationsRotationIDUnauthorizedBodyTypeMethodNotAllowed string = "method_not_allowed" PutCredentialRotationsRotationIDUnauthorizedBodyTypeInternal string = "internal" PutCredentialRotationsRotationIDUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" PutCredentialRotationsRotationIDUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )PutCredentialRotationsRotationIDUnauthorizedBodyTypeBadRequest
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for credential rotation API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new credential rotation API client.
func (*Client) PutCredentialRotationsRotationID ¶
func (a *Client) PutCredentialRotationsRotationID(params *PutCredentialRotationsRotationIDParams, authInfo runtime.ClientAuthInfoWriter) (*PutCredentialRotationsRotationIDAccepted, error)
PutCredentialRotationsRotationID as l p h a start a credential rotation
**ALPHA** A provider can call this endpoint to trigger a credential rotation for a specific credential. This route supports being called multiple times with the same payload.
In the case of network or other unexpected errors (such as a `500 Internal Server Error`), the provider may issue a request more than once with the same payload and `rotation_id` to be guaranteed that the operation will run exactly once.
**Building a `rotation_id`**
Different rotations must have a different `rotation_id`. A good way to achieve uniqueness would be to make these ids a uuid (Universally unique identifier). Also make sure to reuse the `rotation_id` when retrying the same rotation to not trigger duplicate rotations.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type PutCredentialRotationsRotationIDAccepted ¶
type PutCredentialRotationsRotationIDAccepted struct { }
PutCredentialRotationsRotationIDAccepted handles this case with default header values.
Acknowledgement of the credential rotation request.
Manifold will start proccessing the request asynchronously.
func NewPutCredentialRotationsRotationIDAccepted ¶
func NewPutCredentialRotationsRotationIDAccepted() *PutCredentialRotationsRotationIDAccepted
NewPutCredentialRotationsRotationIDAccepted creates a PutCredentialRotationsRotationIDAccepted with default headers values
func (*PutCredentialRotationsRotationIDAccepted) Error ¶
func (o *PutCredentialRotationsRotationIDAccepted) Error() string
type PutCredentialRotationsRotationIDBadRequest ¶
type PutCredentialRotationsRotationIDBadRequest struct {
Payload PutCredentialRotationsRotationIDBadRequestBody
}
PutCredentialRotationsRotationIDBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewPutCredentialRotationsRotationIDBadRequest ¶
func NewPutCredentialRotationsRotationIDBadRequest() *PutCredentialRotationsRotationIDBadRequest
NewPutCredentialRotationsRotationIDBadRequest creates a PutCredentialRotationsRotationIDBadRequest with default headers values
func (*PutCredentialRotationsRotationIDBadRequest) Error ¶
func (o *PutCredentialRotationsRotationIDBadRequest) Error() string
type PutCredentialRotationsRotationIDBadRequestBody ¶
type PutCredentialRotationsRotationIDBadRequestBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PutCredentialRotationsRotationIDBadRequestBody put credential rotations rotation ID bad request body swagger:model PutCredentialRotationsRotationIDBadRequestBody
type PutCredentialRotationsRotationIDInternalServerError ¶
type PutCredentialRotationsRotationIDInternalServerError struct {
Payload PutCredentialRotationsRotationIDInternalServerErrorBody
}
PutCredentialRotationsRotationIDInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewPutCredentialRotationsRotationIDInternalServerError ¶
func NewPutCredentialRotationsRotationIDInternalServerError() *PutCredentialRotationsRotationIDInternalServerError
NewPutCredentialRotationsRotationIDInternalServerError creates a PutCredentialRotationsRotationIDInternalServerError with default headers values
func (*PutCredentialRotationsRotationIDInternalServerError) Error ¶
func (o *PutCredentialRotationsRotationIDInternalServerError) Error() string
type PutCredentialRotationsRotationIDInternalServerErrorBody ¶
type PutCredentialRotationsRotationIDInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PutCredentialRotationsRotationIDInternalServerErrorBody put credential rotations rotation ID internal server error body swagger:model PutCredentialRotationsRotationIDInternalServerErrorBody
type PutCredentialRotationsRotationIDMethodNotAllowed ¶ added in v0.15.2
type PutCredentialRotationsRotationIDMethodNotAllowed struct {
Payload PutCredentialRotationsRotationIDMethodNotAllowedBody
}
PutCredentialRotationsRotationIDMethodNotAllowed handles this case with default header values.
Request method is known by the server but is not supported by the target resource.
func NewPutCredentialRotationsRotationIDMethodNotAllowed ¶ added in v0.15.2
func NewPutCredentialRotationsRotationIDMethodNotAllowed() *PutCredentialRotationsRotationIDMethodNotAllowed
NewPutCredentialRotationsRotationIDMethodNotAllowed creates a PutCredentialRotationsRotationIDMethodNotAllowed with default headers values
func (*PutCredentialRotationsRotationIDMethodNotAllowed) Error ¶ added in v0.15.2
func (o *PutCredentialRotationsRotationIDMethodNotAllowed) Error() string
type PutCredentialRotationsRotationIDMethodNotAllowedBody ¶ added in v0.15.2
type PutCredentialRotationsRotationIDMethodNotAllowedBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PutCredentialRotationsRotationIDMethodNotAllowedBody put credential rotations rotation ID method not allowed body swagger:model PutCredentialRotationsRotationIDMethodNotAllowedBody
type PutCredentialRotationsRotationIDNotFound ¶
type PutCredentialRotationsRotationIDNotFound struct {
Payload PutCredentialRotationsRotationIDNotFoundBody
}
PutCredentialRotationsRotationIDNotFound handles this case with default header values.
Request denied as the requested resource does not exist.
func NewPutCredentialRotationsRotationIDNotFound ¶
func NewPutCredentialRotationsRotationIDNotFound() *PutCredentialRotationsRotationIDNotFound
NewPutCredentialRotationsRotationIDNotFound creates a PutCredentialRotationsRotationIDNotFound with default headers values
func (*PutCredentialRotationsRotationIDNotFound) Error ¶
func (o *PutCredentialRotationsRotationIDNotFound) Error() string
type PutCredentialRotationsRotationIDNotFoundBody ¶
type PutCredentialRotationsRotationIDNotFoundBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PutCredentialRotationsRotationIDNotFoundBody put credential rotations rotation ID not found body swagger:model PutCredentialRotationsRotationIDNotFoundBody
type PutCredentialRotationsRotationIDParams ¶
type PutCredentialRotationsRotationIDParams struct { /*Body Resource Provisioning Request */ Body *models.CredentialRotationRequest /*RotationID ID of a the credential-rotations, stored as a base32 encoded 18 byte identifier. */ RotationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutCredentialRotationsRotationIDParams contains all the parameters to send to the API endpoint for the put credential rotations rotation ID operation typically these are written to a http.Request
func NewPutCredentialRotationsRotationIDParams ¶
func NewPutCredentialRotationsRotationIDParams() *PutCredentialRotationsRotationIDParams
NewPutCredentialRotationsRotationIDParams creates a new PutCredentialRotationsRotationIDParams object with the default values initialized.
func NewPutCredentialRotationsRotationIDParamsWithContext ¶
func NewPutCredentialRotationsRotationIDParamsWithContext(ctx context.Context) *PutCredentialRotationsRotationIDParams
NewPutCredentialRotationsRotationIDParamsWithContext creates a new PutCredentialRotationsRotationIDParams object with the default values initialized, and the ability to set a context for a request
func NewPutCredentialRotationsRotationIDParamsWithHTTPClient ¶
func NewPutCredentialRotationsRotationIDParamsWithHTTPClient(client *http.Client) *PutCredentialRotationsRotationIDParams
NewPutCredentialRotationsRotationIDParamsWithHTTPClient creates a new PutCredentialRotationsRotationIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPutCredentialRotationsRotationIDParamsWithTimeout ¶
func NewPutCredentialRotationsRotationIDParamsWithTimeout(timeout time.Duration) *PutCredentialRotationsRotationIDParams
NewPutCredentialRotationsRotationIDParamsWithTimeout creates a new PutCredentialRotationsRotationIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*PutCredentialRotationsRotationIDParams) SetBody ¶
func (o *PutCredentialRotationsRotationIDParams) SetBody(body *models.CredentialRotationRequest)
SetBody adds the body to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) SetContext ¶
func (o *PutCredentialRotationsRotationIDParams) SetContext(ctx context.Context)
SetContext adds the context to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) SetHTTPClient ¶
func (o *PutCredentialRotationsRotationIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) SetRotationID ¶
func (o *PutCredentialRotationsRotationIDParams) SetRotationID(rotationID string)
SetRotationID adds the rotationId to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) SetTimeout ¶
func (o *PutCredentialRotationsRotationIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) WithBody ¶
func (o *PutCredentialRotationsRotationIDParams) WithBody(body *models.CredentialRotationRequest) *PutCredentialRotationsRotationIDParams
WithBody adds the body to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) WithContext ¶
func (o *PutCredentialRotationsRotationIDParams) WithContext(ctx context.Context) *PutCredentialRotationsRotationIDParams
WithContext adds the context to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) WithHTTPClient ¶
func (o *PutCredentialRotationsRotationIDParams) WithHTTPClient(client *http.Client) *PutCredentialRotationsRotationIDParams
WithHTTPClient adds the HTTPClient to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) WithRotationID ¶
func (o *PutCredentialRotationsRotationIDParams) WithRotationID(rotationID string) *PutCredentialRotationsRotationIDParams
WithRotationID adds the rotationID to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) WithTimeout ¶
func (o *PutCredentialRotationsRotationIDParams) WithTimeout(timeout time.Duration) *PutCredentialRotationsRotationIDParams
WithTimeout adds the timeout to the put credential rotations rotation ID params
func (*PutCredentialRotationsRotationIDParams) WriteToRequest ¶
func (o *PutCredentialRotationsRotationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutCredentialRotationsRotationIDReader ¶
type PutCredentialRotationsRotationIDReader struct {
// contains filtered or unexported fields
}
PutCredentialRotationsRotationIDReader is a Reader for the PutCredentialRotationsRotationID structure.
func (*PutCredentialRotationsRotationIDReader) ReadResponse ¶
func (o *PutCredentialRotationsRotationIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutCredentialRotationsRotationIDUnauthorized ¶
type PutCredentialRotationsRotationIDUnauthorized struct {
}PutCredentialRotationsRotationIDUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewPutCredentialRotationsRotationIDUnauthorized ¶
func NewPutCredentialRotationsRotationIDUnauthorized() *PutCredentialRotationsRotationIDUnauthorized
NewPutCredentialRotationsRotationIDUnauthorized creates a PutCredentialRotationsRotationIDUnauthorized with default headers values
func (*PutCredentialRotationsRotationIDUnauthorized) Error ¶
func (o *PutCredentialRotationsRotationIDUnauthorized) Error() string
type PutCredentialRotationsRotationIDUnauthorizedBody ¶
type PutCredentialRotationsRotationIDUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
PutCredentialRotationsRotationIDUnauthorizedBody put credential rotations rotation ID unauthorized body swagger:model PutCredentialRotationsRotationIDUnauthorizedBody