Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialNoContent, error)
- func (a *Client) GenerateCredentials(params *GenerateCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GenerateCredentialsOK, error)
- func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteCredentialDefault
- type DeleteCredentialInternalServerError
- type DeleteCredentialNoContent
- type DeleteCredentialParams
- func NewDeleteCredentialParams() *DeleteCredentialParams
- func NewDeleteCredentialParamsWithContext(ctx context.Context) *DeleteCredentialParams
- func NewDeleteCredentialParamsWithHTTPClient(client *http.Client) *DeleteCredentialParams
- func NewDeleteCredentialParamsWithTimeout(timeout time.Duration) *DeleteCredentialParams
- func (o *DeleteCredentialParams) SetAccessKey(accessKey string)
- func (o *DeleteCredentialParams) SetContext(ctx context.Context)
- func (o *DeleteCredentialParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCredentialParams) SetStackID(stackID string)
- func (o *DeleteCredentialParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCredentialParams) SetUserID(userID string)
- func (o *DeleteCredentialParams) WithAccessKey(accessKey string) *DeleteCredentialParams
- func (o *DeleteCredentialParams) WithContext(ctx context.Context) *DeleteCredentialParams
- func (o *DeleteCredentialParams) WithHTTPClient(client *http.Client) *DeleteCredentialParams
- func (o *DeleteCredentialParams) WithStackID(stackID string) *DeleteCredentialParams
- func (o *DeleteCredentialParams) WithTimeout(timeout time.Duration) *DeleteCredentialParams
- func (o *DeleteCredentialParams) WithUserID(userID string) *DeleteCredentialParams
- func (o *DeleteCredentialParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCredentialReader
- type DeleteCredentialUnauthorized
- type GenerateCredentialsDefault
- type GenerateCredentialsInternalServerError
- type GenerateCredentialsOK
- type GenerateCredentialsParams
- func NewGenerateCredentialsParams() *GenerateCredentialsParams
- func NewGenerateCredentialsParamsWithContext(ctx context.Context) *GenerateCredentialsParams
- func NewGenerateCredentialsParamsWithHTTPClient(client *http.Client) *GenerateCredentialsParams
- func NewGenerateCredentialsParamsWithTimeout(timeout time.Duration) *GenerateCredentialsParams
- func (o *GenerateCredentialsParams) SetContext(ctx context.Context)
- func (o *GenerateCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *GenerateCredentialsParams) SetStackID(stackID string)
- func (o *GenerateCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *GenerateCredentialsParams) SetUserID(userID string)
- func (o *GenerateCredentialsParams) WithContext(ctx context.Context) *GenerateCredentialsParams
- func (o *GenerateCredentialsParams) WithHTTPClient(client *http.Client) *GenerateCredentialsParams
- func (o *GenerateCredentialsParams) WithStackID(stackID string) *GenerateCredentialsParams
- func (o *GenerateCredentialsParams) WithTimeout(timeout time.Duration) *GenerateCredentialsParams
- func (o *GenerateCredentialsParams) WithUserID(userID string) *GenerateCredentialsParams
- func (o *GenerateCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GenerateCredentialsReader
- type GenerateCredentialsUnauthorized
- type GetCredentialsDefault
- type GetCredentialsInternalServerError
- type GetCredentialsOK
- type GetCredentialsParams
- func NewGetCredentialsParams() *GetCredentialsParams
- func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams
- func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams
- func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams
- func (o *GetCredentialsParams) SetContext(ctx context.Context)
- func (o *GetCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *GetCredentialsParams) SetStackID(stackID string)
- func (o *GetCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *GetCredentialsParams) SetUserID(userID string)
- func (o *GetCredentialsParams) WithContext(ctx context.Context) *GetCredentialsParams
- func (o *GetCredentialsParams) WithHTTPClient(client *http.Client) *GetCredentialsParams
- func (o *GetCredentialsParams) WithStackID(stackID string) *GetCredentialsParams
- func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams
- func (o *GetCredentialsParams) WithUserID(userID string) *GetCredentialsParams
- func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCredentialsReader
- type GetCredentialsUnauthorized
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 user credentials API
func (*Client) DeleteCredential ¶
func (a *Client) DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialNoContent, error)
DeleteCredential deletes provided storage access credentials for the given user
func (*Client) GenerateCredentials ¶
func (a *Client) GenerateCredentials(params *GenerateCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GenerateCredentialsOK, error)
GenerateCredentials generates storage credentials for the given user
Generate storage credentials for the given user. Users can only have one set of credentials, so calling this method will generate a new set and invalidate any existing ones.
func (*Client) GetCredentials ¶
func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, error)
GetCredentials gets credentials for a given user
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialNoContent, error) GenerateCredentials(params *GenerateCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GenerateCredentialsOK, error) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, 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 user credentials API client.
type DeleteCredentialDefault ¶
type DeleteCredentialDefault struct { Payload *storage_models.StackpathapiStatus // contains filtered or unexported fields }
DeleteCredentialDefault handles this case with default header values.
Default error structure.
func NewDeleteCredentialDefault ¶
func NewDeleteCredentialDefault(code int) *DeleteCredentialDefault
NewDeleteCredentialDefault creates a DeleteCredentialDefault with default headers values
func (*DeleteCredentialDefault) Code ¶
func (o *DeleteCredentialDefault) Code() int
Code gets the status code for the delete credential default response
func (*DeleteCredentialDefault) Error ¶
func (o *DeleteCredentialDefault) Error() string
func (*DeleteCredentialDefault) GetPayload ¶
func (o *DeleteCredentialDefault) GetPayload() *storage_models.StackpathapiStatus
type DeleteCredentialInternalServerError ¶
type DeleteCredentialInternalServerError struct {
Payload *storage_models.StackpathapiStatus
}
DeleteCredentialInternalServerError handles this case with default header values.
Internal server error.
func NewDeleteCredentialInternalServerError ¶
func NewDeleteCredentialInternalServerError() *DeleteCredentialInternalServerError
NewDeleteCredentialInternalServerError creates a DeleteCredentialInternalServerError with default headers values
func (*DeleteCredentialInternalServerError) Error ¶
func (o *DeleteCredentialInternalServerError) Error() string
func (*DeleteCredentialInternalServerError) GetPayload ¶
func (o *DeleteCredentialInternalServerError) GetPayload() *storage_models.StackpathapiStatus
type DeleteCredentialNoContent ¶
type DeleteCredentialNoContent struct { }
DeleteCredentialNoContent handles this case with default header values.
No content
func NewDeleteCredentialNoContent ¶
func NewDeleteCredentialNoContent() *DeleteCredentialNoContent
NewDeleteCredentialNoContent creates a DeleteCredentialNoContent with default headers values
func (*DeleteCredentialNoContent) Error ¶
func (o *DeleteCredentialNoContent) Error() string
type DeleteCredentialParams ¶
type DeleteCredentialParams struct { /*AccessKey The credentials access key to be removed */ AccessKey string /*StackID The stack's ID for which the user belongs to */ StackID string /*UserID The user's ID for which the credentials will be generated */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCredentialParams contains all the parameters to send to the API endpoint for the delete credential operation typically these are written to a http.Request
func NewDeleteCredentialParams ¶
func NewDeleteCredentialParams() *DeleteCredentialParams
NewDeleteCredentialParams creates a new DeleteCredentialParams object with the default values initialized.
func NewDeleteCredentialParamsWithContext ¶
func NewDeleteCredentialParamsWithContext(ctx context.Context) *DeleteCredentialParams
NewDeleteCredentialParamsWithContext creates a new DeleteCredentialParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteCredentialParamsWithHTTPClient ¶
func NewDeleteCredentialParamsWithHTTPClient(client *http.Client) *DeleteCredentialParams
NewDeleteCredentialParamsWithHTTPClient creates a new DeleteCredentialParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteCredentialParamsWithTimeout ¶
func NewDeleteCredentialParamsWithTimeout(timeout time.Duration) *DeleteCredentialParams
NewDeleteCredentialParamsWithTimeout creates a new DeleteCredentialParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteCredentialParams) SetAccessKey ¶
func (o *DeleteCredentialParams) SetAccessKey(accessKey string)
SetAccessKey adds the accessKey to the delete credential params
func (*DeleteCredentialParams) SetContext ¶
func (o *DeleteCredentialParams) SetContext(ctx context.Context)
SetContext adds the context to the delete credential params
func (*DeleteCredentialParams) SetHTTPClient ¶
func (o *DeleteCredentialParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete credential params
func (*DeleteCredentialParams) SetStackID ¶
func (o *DeleteCredentialParams) SetStackID(stackID string)
SetStackID adds the stackId to the delete credential params
func (*DeleteCredentialParams) SetTimeout ¶
func (o *DeleteCredentialParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete credential params
func (*DeleteCredentialParams) SetUserID ¶
func (o *DeleteCredentialParams) SetUserID(userID string)
SetUserID adds the userId to the delete credential params
func (*DeleteCredentialParams) WithAccessKey ¶
func (o *DeleteCredentialParams) WithAccessKey(accessKey string) *DeleteCredentialParams
WithAccessKey adds the accessKey to the delete credential params
func (*DeleteCredentialParams) WithContext ¶
func (o *DeleteCredentialParams) WithContext(ctx context.Context) *DeleteCredentialParams
WithContext adds the context to the delete credential params
func (*DeleteCredentialParams) WithHTTPClient ¶
func (o *DeleteCredentialParams) WithHTTPClient(client *http.Client) *DeleteCredentialParams
WithHTTPClient adds the HTTPClient to the delete credential params
func (*DeleteCredentialParams) WithStackID ¶
func (o *DeleteCredentialParams) WithStackID(stackID string) *DeleteCredentialParams
WithStackID adds the stackID to the delete credential params
func (*DeleteCredentialParams) WithTimeout ¶
func (o *DeleteCredentialParams) WithTimeout(timeout time.Duration) *DeleteCredentialParams
WithTimeout adds the timeout to the delete credential params
func (*DeleteCredentialParams) WithUserID ¶
func (o *DeleteCredentialParams) WithUserID(userID string) *DeleteCredentialParams
WithUserID adds the userID to the delete credential params
func (*DeleteCredentialParams) WriteToRequest ¶
func (o *DeleteCredentialParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCredentialReader ¶
type DeleteCredentialReader struct {
// contains filtered or unexported fields
}
DeleteCredentialReader is a Reader for the DeleteCredential structure.
func (*DeleteCredentialReader) ReadResponse ¶
func (o *DeleteCredentialReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCredentialUnauthorized ¶
type DeleteCredentialUnauthorized struct {
}DeleteCredentialUnauthorized handles this case with default header values.
Returned when an unauthorized request is attempted.
func NewDeleteCredentialUnauthorized ¶
func NewDeleteCredentialUnauthorized() *DeleteCredentialUnauthorized
NewDeleteCredentialUnauthorized creates a DeleteCredentialUnauthorized with default headers values
func (*DeleteCredentialUnauthorized) Error ¶
func (o *DeleteCredentialUnauthorized) Error() string
func (*DeleteCredentialUnauthorized) GetPayload ¶
func (o *DeleteCredentialUnauthorized) GetPayload() *storage_models.StackpathapiStatus
type GenerateCredentialsDefault ¶
type GenerateCredentialsDefault struct { Payload *storage_models.StackpathapiStatus // contains filtered or unexported fields }
GenerateCredentialsDefault handles this case with default header values.
Default error structure.
func NewGenerateCredentialsDefault ¶
func NewGenerateCredentialsDefault(code int) *GenerateCredentialsDefault
NewGenerateCredentialsDefault creates a GenerateCredentialsDefault with default headers values
func (*GenerateCredentialsDefault) Code ¶
func (o *GenerateCredentialsDefault) Code() int
Code gets the status code for the generate credentials default response
func (*GenerateCredentialsDefault) Error ¶
func (o *GenerateCredentialsDefault) Error() string
func (*GenerateCredentialsDefault) GetPayload ¶
func (o *GenerateCredentialsDefault) GetPayload() *storage_models.StackpathapiStatus
type GenerateCredentialsInternalServerError ¶
type GenerateCredentialsInternalServerError struct {
Payload *storage_models.StackpathapiStatus
}
GenerateCredentialsInternalServerError handles this case with default header values.
Internal server error.
func NewGenerateCredentialsInternalServerError ¶
func NewGenerateCredentialsInternalServerError() *GenerateCredentialsInternalServerError
NewGenerateCredentialsInternalServerError creates a GenerateCredentialsInternalServerError with default headers values
func (*GenerateCredentialsInternalServerError) Error ¶
func (o *GenerateCredentialsInternalServerError) Error() string
func (*GenerateCredentialsInternalServerError) GetPayload ¶
func (o *GenerateCredentialsInternalServerError) GetPayload() *storage_models.StackpathapiStatus
type GenerateCredentialsOK ¶
type GenerateCredentialsOK struct {
Payload *storage_models.StorageGenerateCredentialsResponse
}
GenerateCredentialsOK handles this case with default header values.
GenerateCredentialsOK generate credentials o k
func NewGenerateCredentialsOK ¶
func NewGenerateCredentialsOK() *GenerateCredentialsOK
NewGenerateCredentialsOK creates a GenerateCredentialsOK with default headers values
func (*GenerateCredentialsOK) Error ¶
func (o *GenerateCredentialsOK) Error() string
func (*GenerateCredentialsOK) GetPayload ¶
func (o *GenerateCredentialsOK) GetPayload() *storage_models.StorageGenerateCredentialsResponse
type GenerateCredentialsParams ¶
type GenerateCredentialsParams struct { /*StackID The stack's ID for which the user belongs to */ StackID string /*UserID The user's ID for which the credentials will be generated */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GenerateCredentialsParams contains all the parameters to send to the API endpoint for the generate credentials operation typically these are written to a http.Request
func NewGenerateCredentialsParams ¶
func NewGenerateCredentialsParams() *GenerateCredentialsParams
NewGenerateCredentialsParams creates a new GenerateCredentialsParams object with the default values initialized.
func NewGenerateCredentialsParamsWithContext ¶
func NewGenerateCredentialsParamsWithContext(ctx context.Context) *GenerateCredentialsParams
NewGenerateCredentialsParamsWithContext creates a new GenerateCredentialsParams object with the default values initialized, and the ability to set a context for a request
func NewGenerateCredentialsParamsWithHTTPClient ¶
func NewGenerateCredentialsParamsWithHTTPClient(client *http.Client) *GenerateCredentialsParams
NewGenerateCredentialsParamsWithHTTPClient creates a new GenerateCredentialsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGenerateCredentialsParamsWithTimeout ¶
func NewGenerateCredentialsParamsWithTimeout(timeout time.Duration) *GenerateCredentialsParams
NewGenerateCredentialsParamsWithTimeout creates a new GenerateCredentialsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GenerateCredentialsParams) SetContext ¶
func (o *GenerateCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the generate credentials params
func (*GenerateCredentialsParams) SetHTTPClient ¶
func (o *GenerateCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the generate credentials params
func (*GenerateCredentialsParams) SetStackID ¶
func (o *GenerateCredentialsParams) SetStackID(stackID string)
SetStackID adds the stackId to the generate credentials params
func (*GenerateCredentialsParams) SetTimeout ¶
func (o *GenerateCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the generate credentials params
func (*GenerateCredentialsParams) SetUserID ¶
func (o *GenerateCredentialsParams) SetUserID(userID string)
SetUserID adds the userId to the generate credentials params
func (*GenerateCredentialsParams) WithContext ¶
func (o *GenerateCredentialsParams) WithContext(ctx context.Context) *GenerateCredentialsParams
WithContext adds the context to the generate credentials params
func (*GenerateCredentialsParams) WithHTTPClient ¶
func (o *GenerateCredentialsParams) WithHTTPClient(client *http.Client) *GenerateCredentialsParams
WithHTTPClient adds the HTTPClient to the generate credentials params
func (*GenerateCredentialsParams) WithStackID ¶
func (o *GenerateCredentialsParams) WithStackID(stackID string) *GenerateCredentialsParams
WithStackID adds the stackID to the generate credentials params
func (*GenerateCredentialsParams) WithTimeout ¶
func (o *GenerateCredentialsParams) WithTimeout(timeout time.Duration) *GenerateCredentialsParams
WithTimeout adds the timeout to the generate credentials params
func (*GenerateCredentialsParams) WithUserID ¶
func (o *GenerateCredentialsParams) WithUserID(userID string) *GenerateCredentialsParams
WithUserID adds the userID to the generate credentials params
func (*GenerateCredentialsParams) WriteToRequest ¶
func (o *GenerateCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GenerateCredentialsReader ¶
type GenerateCredentialsReader struct {
// contains filtered or unexported fields
}
GenerateCredentialsReader is a Reader for the GenerateCredentials structure.
func (*GenerateCredentialsReader) ReadResponse ¶
func (o *GenerateCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GenerateCredentialsUnauthorized ¶
type GenerateCredentialsUnauthorized struct {
}GenerateCredentialsUnauthorized handles this case with default header values.
Returned when an unauthorized request is attempted.
func NewGenerateCredentialsUnauthorized ¶
func NewGenerateCredentialsUnauthorized() *GenerateCredentialsUnauthorized
NewGenerateCredentialsUnauthorized creates a GenerateCredentialsUnauthorized with default headers values
func (*GenerateCredentialsUnauthorized) Error ¶
func (o *GenerateCredentialsUnauthorized) Error() string
func (*GenerateCredentialsUnauthorized) GetPayload ¶
func (o *GenerateCredentialsUnauthorized) GetPayload() *storage_models.StackpathapiStatus
type GetCredentialsDefault ¶
type GetCredentialsDefault struct { Payload *storage_models.StackpathapiStatus // contains filtered or unexported fields }
GetCredentialsDefault handles this case with default header values.
Default error structure.
func NewGetCredentialsDefault ¶
func NewGetCredentialsDefault(code int) *GetCredentialsDefault
NewGetCredentialsDefault creates a GetCredentialsDefault with default headers values
func (*GetCredentialsDefault) Code ¶
func (o *GetCredentialsDefault) Code() int
Code gets the status code for the get credentials default response
func (*GetCredentialsDefault) Error ¶
func (o *GetCredentialsDefault) Error() string
func (*GetCredentialsDefault) GetPayload ¶
func (o *GetCredentialsDefault) GetPayload() *storage_models.StackpathapiStatus
type GetCredentialsInternalServerError ¶
type GetCredentialsInternalServerError struct {
Payload *storage_models.StackpathapiStatus
}
GetCredentialsInternalServerError handles this case with default header values.
Internal server error.
func NewGetCredentialsInternalServerError ¶
func NewGetCredentialsInternalServerError() *GetCredentialsInternalServerError
NewGetCredentialsInternalServerError creates a GetCredentialsInternalServerError with default headers values
func (*GetCredentialsInternalServerError) Error ¶
func (o *GetCredentialsInternalServerError) Error() string
func (*GetCredentialsInternalServerError) GetPayload ¶
func (o *GetCredentialsInternalServerError) GetPayload() *storage_models.StackpathapiStatus
type GetCredentialsOK ¶
type GetCredentialsOK struct {
Payload *storage_models.StorageGetCredentialsResponse
}
GetCredentialsOK handles this case with default header values.
GetCredentialsOK get credentials o k
func NewGetCredentialsOK ¶
func NewGetCredentialsOK() *GetCredentialsOK
NewGetCredentialsOK creates a GetCredentialsOK with default headers values
func (*GetCredentialsOK) Error ¶
func (o *GetCredentialsOK) Error() string
func (*GetCredentialsOK) GetPayload ¶
func (o *GetCredentialsOK) GetPayload() *storage_models.StorageGetCredentialsResponse
type GetCredentialsParams ¶
type GetCredentialsParams struct { /*StackID The stack's ID for which the user belongs to */ StackID string /*UserID The user's ID for which the credentials belong to */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCredentialsParams contains all the parameters to send to the API endpoint for the get credentials operation typically these are written to a http.Request
func NewGetCredentialsParams ¶
func NewGetCredentialsParams() *GetCredentialsParams
NewGetCredentialsParams creates a new GetCredentialsParams object with the default values initialized.
func NewGetCredentialsParamsWithContext ¶
func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams
NewGetCredentialsParamsWithContext creates a new GetCredentialsParams object with the default values initialized, and the ability to set a context for a request
func NewGetCredentialsParamsWithHTTPClient ¶
func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams
NewGetCredentialsParamsWithHTTPClient creates a new GetCredentialsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCredentialsParamsWithTimeout ¶
func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams
NewGetCredentialsParamsWithTimeout creates a new GetCredentialsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCredentialsParams) SetContext ¶
func (o *GetCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the get credentials params
func (*GetCredentialsParams) SetHTTPClient ¶
func (o *GetCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get credentials params
func (*GetCredentialsParams) SetStackID ¶
func (o *GetCredentialsParams) SetStackID(stackID string)
SetStackID adds the stackId to the get credentials params
func (*GetCredentialsParams) SetTimeout ¶
func (o *GetCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get credentials params
func (*GetCredentialsParams) SetUserID ¶
func (o *GetCredentialsParams) SetUserID(userID string)
SetUserID adds the userId to the get credentials params
func (*GetCredentialsParams) WithContext ¶
func (o *GetCredentialsParams) WithContext(ctx context.Context) *GetCredentialsParams
WithContext adds the context to the get credentials params
func (*GetCredentialsParams) WithHTTPClient ¶
func (o *GetCredentialsParams) WithHTTPClient(client *http.Client) *GetCredentialsParams
WithHTTPClient adds the HTTPClient to the get credentials params
func (*GetCredentialsParams) WithStackID ¶
func (o *GetCredentialsParams) WithStackID(stackID string) *GetCredentialsParams
WithStackID adds the stackID to the get credentials params
func (*GetCredentialsParams) WithTimeout ¶
func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams
WithTimeout adds the timeout to the get credentials params
func (*GetCredentialsParams) WithUserID ¶
func (o *GetCredentialsParams) WithUserID(userID string) *GetCredentialsParams
WithUserID adds the userID to the get credentials params
func (*GetCredentialsParams) WriteToRequest ¶
func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCredentialsReader ¶
type GetCredentialsReader struct {
// contains filtered or unexported fields
}
GetCredentialsReader is a Reader for the GetCredentials structure.
func (*GetCredentialsReader) ReadResponse ¶
func (o *GetCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCredentialsUnauthorized ¶
type GetCredentialsUnauthorized struct {
}GetCredentialsUnauthorized handles this case with default header values.
Returned when an unauthorized request is attempted.
func NewGetCredentialsUnauthorized ¶
func NewGetCredentialsUnauthorized() *GetCredentialsUnauthorized
NewGetCredentialsUnauthorized creates a GetCredentialsUnauthorized with default headers values
func (*GetCredentialsUnauthorized) Error ¶
func (o *GetCredentialsUnauthorized) Error() string
func (*GetCredentialsUnauthorized) GetPayload ¶
func (o *GetCredentialsUnauthorized) GetPayload() *storage_models.StackpathapiStatus