Documentation ¶
Index ¶
- type AddTokenToServiceAccountCreated
- type AddTokenToServiceAccountDefault
- type AddTokenToServiceAccountForbidden
- type AddTokenToServiceAccountParams
- func NewAddTokenToServiceAccountParams() *AddTokenToServiceAccountParams
- func NewAddTokenToServiceAccountParamsWithContext(ctx context.Context) *AddTokenToServiceAccountParams
- func NewAddTokenToServiceAccountParamsWithHTTPClient(client *http.Client) *AddTokenToServiceAccountParams
- func NewAddTokenToServiceAccountParamsWithTimeout(timeout time.Duration) *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) SetBody(body *models.ServiceAccountToken)
- func (o *AddTokenToServiceAccountParams) SetContext(ctx context.Context)
- func (o *AddTokenToServiceAccountParams) SetDefaults()
- func (o *AddTokenToServiceAccountParams) SetHTTPClient(client *http.Client)
- func (o *AddTokenToServiceAccountParams) SetProjectID(projectID string)
- func (o *AddTokenToServiceAccountParams) SetServiceAccountID(serviceaccountID string)
- func (o *AddTokenToServiceAccountParams) SetTimeout(timeout time.Duration)
- func (o *AddTokenToServiceAccountParams) WithBody(body *models.ServiceAccountToken) *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) WithContext(ctx context.Context) *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) WithDefaults() *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) WithHTTPClient(client *http.Client) *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) WithProjectID(projectID string) *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) WithServiceAccountID(serviceaccountID string) *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) WithTimeout(timeout time.Duration) *AddTokenToServiceAccountParams
- func (o *AddTokenToServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddTokenToServiceAccountReader
- type AddTokenToServiceAccountUnauthorized
- type Client
- func (a *Client) AddTokenToServiceAccount(params *AddTokenToServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddTokenToServiceAccountCreated, error)
- func (a *Client) DeleteServiceAccountToken(params *DeleteServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteServiceAccountTokenOK, error)
- func (a *Client) ListServiceAccountTokens(params *ListServiceAccountTokensParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListServiceAccountTokensOK, error)
- func (a *Client) PatchServiceAccountToken(params *PatchServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchServiceAccountTokenOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateServiceAccountToken(params *UpdateServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateServiceAccountTokenOK, error)
- type ClientOption
- type ClientService
- type DeleteServiceAccountTokenDefault
- type DeleteServiceAccountTokenForbidden
- type DeleteServiceAccountTokenOK
- type DeleteServiceAccountTokenParams
- func NewDeleteServiceAccountTokenParams() *DeleteServiceAccountTokenParams
- func NewDeleteServiceAccountTokenParamsWithContext(ctx context.Context) *DeleteServiceAccountTokenParams
- func NewDeleteServiceAccountTokenParamsWithHTTPClient(client *http.Client) *DeleteServiceAccountTokenParams
- func NewDeleteServiceAccountTokenParamsWithTimeout(timeout time.Duration) *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) SetContext(ctx context.Context)
- func (o *DeleteServiceAccountTokenParams) SetDefaults()
- func (o *DeleteServiceAccountTokenParams) SetHTTPClient(client *http.Client)
- func (o *DeleteServiceAccountTokenParams) SetProjectID(projectID string)
- func (o *DeleteServiceAccountTokenParams) SetServiceAccountID(serviceaccountID string)
- func (o *DeleteServiceAccountTokenParams) SetTimeout(timeout time.Duration)
- func (o *DeleteServiceAccountTokenParams) SetTokenID(tokenID string)
- func (o *DeleteServiceAccountTokenParams) WithContext(ctx context.Context) *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) WithDefaults() *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) WithHTTPClient(client *http.Client) *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) WithProjectID(projectID string) *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) WithServiceAccountID(serviceaccountID string) *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) WithTimeout(timeout time.Duration) *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) WithTokenID(tokenID string) *DeleteServiceAccountTokenParams
- func (o *DeleteServiceAccountTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteServiceAccountTokenReader
- type DeleteServiceAccountTokenUnauthorized
- type ListServiceAccountTokensDefault
- type ListServiceAccountTokensForbidden
- type ListServiceAccountTokensOK
- type ListServiceAccountTokensParams
- func NewListServiceAccountTokensParams() *ListServiceAccountTokensParams
- func NewListServiceAccountTokensParamsWithContext(ctx context.Context) *ListServiceAccountTokensParams
- func NewListServiceAccountTokensParamsWithHTTPClient(client *http.Client) *ListServiceAccountTokensParams
- func NewListServiceAccountTokensParamsWithTimeout(timeout time.Duration) *ListServiceAccountTokensParams
- func (o *ListServiceAccountTokensParams) SetContext(ctx context.Context)
- func (o *ListServiceAccountTokensParams) SetDefaults()
- func (o *ListServiceAccountTokensParams) SetHTTPClient(client *http.Client)
- func (o *ListServiceAccountTokensParams) SetProjectID(projectID string)
- func (o *ListServiceAccountTokensParams) SetServiceAccountID(serviceaccountID string)
- func (o *ListServiceAccountTokensParams) SetTimeout(timeout time.Duration)
- func (o *ListServiceAccountTokensParams) WithContext(ctx context.Context) *ListServiceAccountTokensParams
- func (o *ListServiceAccountTokensParams) WithDefaults() *ListServiceAccountTokensParams
- func (o *ListServiceAccountTokensParams) WithHTTPClient(client *http.Client) *ListServiceAccountTokensParams
- func (o *ListServiceAccountTokensParams) WithProjectID(projectID string) *ListServiceAccountTokensParams
- func (o *ListServiceAccountTokensParams) WithServiceAccountID(serviceaccountID string) *ListServiceAccountTokensParams
- func (o *ListServiceAccountTokensParams) WithTimeout(timeout time.Duration) *ListServiceAccountTokensParams
- func (o *ListServiceAccountTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListServiceAccountTokensReader
- type ListServiceAccountTokensUnauthorized
- type PatchServiceAccountTokenDefault
- type PatchServiceAccountTokenForbidden
- type PatchServiceAccountTokenOK
- type PatchServiceAccountTokenParams
- func NewPatchServiceAccountTokenParams() *PatchServiceAccountTokenParams
- func NewPatchServiceAccountTokenParamsWithContext(ctx context.Context) *PatchServiceAccountTokenParams
- func NewPatchServiceAccountTokenParamsWithHTTPClient(client *http.Client) *PatchServiceAccountTokenParams
- func NewPatchServiceAccountTokenParamsWithTimeout(timeout time.Duration) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) SetBody(body []uint8)
- func (o *PatchServiceAccountTokenParams) SetContext(ctx context.Context)
- func (o *PatchServiceAccountTokenParams) SetDefaults()
- func (o *PatchServiceAccountTokenParams) SetHTTPClient(client *http.Client)
- func (o *PatchServiceAccountTokenParams) SetProjectID(projectID string)
- func (o *PatchServiceAccountTokenParams) SetServiceAccountID(serviceaccountID string)
- func (o *PatchServiceAccountTokenParams) SetTimeout(timeout time.Duration)
- func (o *PatchServiceAccountTokenParams) SetTokenID(tokenID string)
- func (o *PatchServiceAccountTokenParams) WithBody(body []uint8) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WithContext(ctx context.Context) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WithDefaults() *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WithHTTPClient(client *http.Client) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WithProjectID(projectID string) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WithServiceAccountID(serviceaccountID string) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WithTimeout(timeout time.Duration) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WithTokenID(tokenID string) *PatchServiceAccountTokenParams
- func (o *PatchServiceAccountTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchServiceAccountTokenReader
- type PatchServiceAccountTokenUnauthorized
- type UpdateServiceAccountTokenDefault
- type UpdateServiceAccountTokenForbidden
- type UpdateServiceAccountTokenOK
- type UpdateServiceAccountTokenParams
- func NewUpdateServiceAccountTokenParams() *UpdateServiceAccountTokenParams
- func NewUpdateServiceAccountTokenParamsWithContext(ctx context.Context) *UpdateServiceAccountTokenParams
- func NewUpdateServiceAccountTokenParamsWithHTTPClient(client *http.Client) *UpdateServiceAccountTokenParams
- func NewUpdateServiceAccountTokenParamsWithTimeout(timeout time.Duration) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) SetBody(body *models.PublicServiceAccountToken)
- func (o *UpdateServiceAccountTokenParams) SetContext(ctx context.Context)
- func (o *UpdateServiceAccountTokenParams) SetDefaults()
- func (o *UpdateServiceAccountTokenParams) SetHTTPClient(client *http.Client)
- func (o *UpdateServiceAccountTokenParams) SetProjectID(projectID string)
- func (o *UpdateServiceAccountTokenParams) SetServiceAccountID(serviceaccountID string)
- func (o *UpdateServiceAccountTokenParams) SetTimeout(timeout time.Duration)
- func (o *UpdateServiceAccountTokenParams) SetTokenID(tokenID string)
- func (o *UpdateServiceAccountTokenParams) WithBody(body *models.PublicServiceAccountToken) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WithContext(ctx context.Context) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WithDefaults() *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WithHTTPClient(client *http.Client) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WithProjectID(projectID string) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WithServiceAccountID(serviceaccountID string) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WithTimeout(timeout time.Duration) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WithTokenID(tokenID string) *UpdateServiceAccountTokenParams
- func (o *UpdateServiceAccountTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateServiceAccountTokenReader
- type UpdateServiceAccountTokenUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddTokenToServiceAccountCreated ¶
type AddTokenToServiceAccountCreated struct {
Payload *models.ServiceAccountToken
}
AddTokenToServiceAccountCreated describes a response with status code 201, with default header values.
ServiceAccountToken
func NewAddTokenToServiceAccountCreated ¶
func NewAddTokenToServiceAccountCreated() *AddTokenToServiceAccountCreated
NewAddTokenToServiceAccountCreated creates a AddTokenToServiceAccountCreated with default headers values
func (*AddTokenToServiceAccountCreated) Error ¶
func (o *AddTokenToServiceAccountCreated) Error() string
func (*AddTokenToServiceAccountCreated) GetPayload ¶
func (o *AddTokenToServiceAccountCreated) GetPayload() *models.ServiceAccountToken
type AddTokenToServiceAccountDefault ¶
type AddTokenToServiceAccountDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
AddTokenToServiceAccountDefault describes a response with status code -1, with default header values.
errorResponse
func NewAddTokenToServiceAccountDefault ¶
func NewAddTokenToServiceAccountDefault(code int) *AddTokenToServiceAccountDefault
NewAddTokenToServiceAccountDefault creates a AddTokenToServiceAccountDefault with default headers values
func (*AddTokenToServiceAccountDefault) Code ¶
func (o *AddTokenToServiceAccountDefault) Code() int
Code gets the status code for the add token to service account default response
func (*AddTokenToServiceAccountDefault) Error ¶
func (o *AddTokenToServiceAccountDefault) Error() string
func (*AddTokenToServiceAccountDefault) GetPayload ¶
func (o *AddTokenToServiceAccountDefault) GetPayload() *models.ErrorResponse
type AddTokenToServiceAccountForbidden ¶
type AddTokenToServiceAccountForbidden struct { }
AddTokenToServiceAccountForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewAddTokenToServiceAccountForbidden ¶
func NewAddTokenToServiceAccountForbidden() *AddTokenToServiceAccountForbidden
NewAddTokenToServiceAccountForbidden creates a AddTokenToServiceAccountForbidden with default headers values
func (*AddTokenToServiceAccountForbidden) Error ¶
func (o *AddTokenToServiceAccountForbidden) Error() string
type AddTokenToServiceAccountParams ¶
type AddTokenToServiceAccountParams struct { // Body. Body *models.ServiceAccountToken // ProjectID. ProjectID string // ServiceaccountID. ServiceAccountID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddTokenToServiceAccountParams contains all the parameters to send to the API endpoint
for the add token to service account operation. Typically these are written to a http.Request.
func NewAddTokenToServiceAccountParams ¶
func NewAddTokenToServiceAccountParams() *AddTokenToServiceAccountParams
NewAddTokenToServiceAccountParams creates a new AddTokenToServiceAccountParams 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 NewAddTokenToServiceAccountParamsWithContext ¶
func NewAddTokenToServiceAccountParamsWithContext(ctx context.Context) *AddTokenToServiceAccountParams
NewAddTokenToServiceAccountParamsWithContext creates a new AddTokenToServiceAccountParams object with the ability to set a context for a request.
func NewAddTokenToServiceAccountParamsWithHTTPClient ¶
func NewAddTokenToServiceAccountParamsWithHTTPClient(client *http.Client) *AddTokenToServiceAccountParams
NewAddTokenToServiceAccountParamsWithHTTPClient creates a new AddTokenToServiceAccountParams object with the ability to set a custom HTTPClient for a request.
func NewAddTokenToServiceAccountParamsWithTimeout ¶
func NewAddTokenToServiceAccountParamsWithTimeout(timeout time.Duration) *AddTokenToServiceAccountParams
NewAddTokenToServiceAccountParamsWithTimeout creates a new AddTokenToServiceAccountParams object with the ability to set a timeout on a request.
func (*AddTokenToServiceAccountParams) SetBody ¶
func (o *AddTokenToServiceAccountParams) SetBody(body *models.ServiceAccountToken)
SetBody adds the body to the add token to service account params
func (*AddTokenToServiceAccountParams) SetContext ¶
func (o *AddTokenToServiceAccountParams) SetContext(ctx context.Context)
SetContext adds the context to the add token to service account params
func (*AddTokenToServiceAccountParams) SetDefaults ¶ added in v2.18.0
func (o *AddTokenToServiceAccountParams) SetDefaults()
SetDefaults hydrates default values in the add token to service account params (not the query body).
All values with no default are reset to their zero value.
func (*AddTokenToServiceAccountParams) SetHTTPClient ¶
func (o *AddTokenToServiceAccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add token to service account params
func (*AddTokenToServiceAccountParams) SetProjectID ¶
func (o *AddTokenToServiceAccountParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the add token to service account params
func (*AddTokenToServiceAccountParams) SetServiceAccountID ¶
func (o *AddTokenToServiceAccountParams) SetServiceAccountID(serviceaccountID string)
SetServiceAccountID adds the serviceaccountId to the add token to service account params
func (*AddTokenToServiceAccountParams) SetTimeout ¶
func (o *AddTokenToServiceAccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add token to service account params
func (*AddTokenToServiceAccountParams) WithBody ¶
func (o *AddTokenToServiceAccountParams) WithBody(body *models.ServiceAccountToken) *AddTokenToServiceAccountParams
WithBody adds the body to the add token to service account params
func (*AddTokenToServiceAccountParams) WithContext ¶
func (o *AddTokenToServiceAccountParams) WithContext(ctx context.Context) *AddTokenToServiceAccountParams
WithContext adds the context to the add token to service account params
func (*AddTokenToServiceAccountParams) WithDefaults ¶ added in v2.18.0
func (o *AddTokenToServiceAccountParams) WithDefaults() *AddTokenToServiceAccountParams
WithDefaults hydrates default values in the add token to service account params (not the query body).
All values with no default are reset to their zero value.
func (*AddTokenToServiceAccountParams) WithHTTPClient ¶
func (o *AddTokenToServiceAccountParams) WithHTTPClient(client *http.Client) *AddTokenToServiceAccountParams
WithHTTPClient adds the HTTPClient to the add token to service account params
func (*AddTokenToServiceAccountParams) WithProjectID ¶
func (o *AddTokenToServiceAccountParams) WithProjectID(projectID string) *AddTokenToServiceAccountParams
WithProjectID adds the projectID to the add token to service account params
func (*AddTokenToServiceAccountParams) WithServiceAccountID ¶
func (o *AddTokenToServiceAccountParams) WithServiceAccountID(serviceaccountID string) *AddTokenToServiceAccountParams
WithServiceAccountID adds the serviceaccountID to the add token to service account params
func (*AddTokenToServiceAccountParams) WithTimeout ¶
func (o *AddTokenToServiceAccountParams) WithTimeout(timeout time.Duration) *AddTokenToServiceAccountParams
WithTimeout adds the timeout to the add token to service account params
func (*AddTokenToServiceAccountParams) WriteToRequest ¶
func (o *AddTokenToServiceAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddTokenToServiceAccountReader ¶
type AddTokenToServiceAccountReader struct {
// contains filtered or unexported fields
}
AddTokenToServiceAccountReader is a Reader for the AddTokenToServiceAccount structure.
func (*AddTokenToServiceAccountReader) ReadResponse ¶
func (o *AddTokenToServiceAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddTokenToServiceAccountUnauthorized ¶
type AddTokenToServiceAccountUnauthorized struct { }
AddTokenToServiceAccountUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewAddTokenToServiceAccountUnauthorized ¶
func NewAddTokenToServiceAccountUnauthorized() *AddTokenToServiceAccountUnauthorized
NewAddTokenToServiceAccountUnauthorized creates a AddTokenToServiceAccountUnauthorized with default headers values
func (*AddTokenToServiceAccountUnauthorized) Error ¶
func (o *AddTokenToServiceAccountUnauthorized) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for tokens API
func (*Client) AddTokenToServiceAccount ¶
func (a *Client) AddTokenToServiceAccount(params *AddTokenToServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddTokenToServiceAccountCreated, error)
AddTokenToServiceAccount Generates a token for the given service account
func (*Client) DeleteServiceAccountToken ¶
func (a *Client) DeleteServiceAccountToken(params *DeleteServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceAccountTokenOK, error)
DeleteServiceAccountToken Deletes the token
func (*Client) ListServiceAccountTokens ¶
func (a *Client) ListServiceAccountTokens(params *ListServiceAccountTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceAccountTokensOK, error)
ListServiceAccountTokens List tokens for the given service account
func (*Client) PatchServiceAccountToken ¶
func (a *Client) PatchServiceAccountToken(params *PatchServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchServiceAccountTokenOK, error)
PatchServiceAccountToken Patches the token name
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateServiceAccountToken ¶
func (a *Client) UpdateServiceAccountToken(params *UpdateServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceAccountTokenOK, error)
UpdateServiceAccountToken Updates and regenerates the token
type ClientOption ¶ added in v2.18.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddTokenToServiceAccount(params *AddTokenToServiceAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddTokenToServiceAccountCreated, error) DeleteServiceAccountToken(params *DeleteServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceAccountTokenOK, error) ListServiceAccountTokens(params *ListServiceAccountTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceAccountTokensOK, error) PatchServiceAccountToken(params *PatchServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchServiceAccountTokenOK, error) UpdateServiceAccountToken(params *UpdateServiceAccountTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceAccountTokenOK, 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 tokens API client.
type DeleteServiceAccountTokenDefault ¶
type DeleteServiceAccountTokenDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
DeleteServiceAccountTokenDefault describes a response with status code -1, with default header values.
errorResponse
func NewDeleteServiceAccountTokenDefault ¶
func NewDeleteServiceAccountTokenDefault(code int) *DeleteServiceAccountTokenDefault
NewDeleteServiceAccountTokenDefault creates a DeleteServiceAccountTokenDefault with default headers values
func (*DeleteServiceAccountTokenDefault) Code ¶
func (o *DeleteServiceAccountTokenDefault) Code() int
Code gets the status code for the delete service account token default response
func (*DeleteServiceAccountTokenDefault) Error ¶
func (o *DeleteServiceAccountTokenDefault) Error() string
func (*DeleteServiceAccountTokenDefault) GetPayload ¶
func (o *DeleteServiceAccountTokenDefault) GetPayload() *models.ErrorResponse
type DeleteServiceAccountTokenForbidden ¶
type DeleteServiceAccountTokenForbidden struct { }
DeleteServiceAccountTokenForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewDeleteServiceAccountTokenForbidden ¶
func NewDeleteServiceAccountTokenForbidden() *DeleteServiceAccountTokenForbidden
NewDeleteServiceAccountTokenForbidden creates a DeleteServiceAccountTokenForbidden with default headers values
func (*DeleteServiceAccountTokenForbidden) Error ¶
func (o *DeleteServiceAccountTokenForbidden) Error() string
type DeleteServiceAccountTokenOK ¶
type DeleteServiceAccountTokenOK struct { }
DeleteServiceAccountTokenOK describes a response with status code 200, with default header values.
EmptyResponse is a empty response
func NewDeleteServiceAccountTokenOK ¶
func NewDeleteServiceAccountTokenOK() *DeleteServiceAccountTokenOK
NewDeleteServiceAccountTokenOK creates a DeleteServiceAccountTokenOK with default headers values
func (*DeleteServiceAccountTokenOK) Error ¶
func (o *DeleteServiceAccountTokenOK) Error() string
type DeleteServiceAccountTokenParams ¶
type DeleteServiceAccountTokenParams struct { // ProjectID. ProjectID string // ServiceaccountID. ServiceAccountID string // TokenID. TokenID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteServiceAccountTokenParams contains all the parameters to send to the API endpoint
for the delete service account token operation. Typically these are written to a http.Request.
func NewDeleteServiceAccountTokenParams ¶
func NewDeleteServiceAccountTokenParams() *DeleteServiceAccountTokenParams
NewDeleteServiceAccountTokenParams creates a new DeleteServiceAccountTokenParams 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 NewDeleteServiceAccountTokenParamsWithContext ¶
func NewDeleteServiceAccountTokenParamsWithContext(ctx context.Context) *DeleteServiceAccountTokenParams
NewDeleteServiceAccountTokenParamsWithContext creates a new DeleteServiceAccountTokenParams object with the ability to set a context for a request.
func NewDeleteServiceAccountTokenParamsWithHTTPClient ¶
func NewDeleteServiceAccountTokenParamsWithHTTPClient(client *http.Client) *DeleteServiceAccountTokenParams
NewDeleteServiceAccountTokenParamsWithHTTPClient creates a new DeleteServiceAccountTokenParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteServiceAccountTokenParamsWithTimeout ¶
func NewDeleteServiceAccountTokenParamsWithTimeout(timeout time.Duration) *DeleteServiceAccountTokenParams
NewDeleteServiceAccountTokenParamsWithTimeout creates a new DeleteServiceAccountTokenParams object with the ability to set a timeout on a request.
func (*DeleteServiceAccountTokenParams) SetContext ¶
func (o *DeleteServiceAccountTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the delete service account token params
func (*DeleteServiceAccountTokenParams) SetDefaults ¶ added in v2.18.0
func (o *DeleteServiceAccountTokenParams) SetDefaults()
SetDefaults hydrates default values in the delete service account token params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteServiceAccountTokenParams) SetHTTPClient ¶
func (o *DeleteServiceAccountTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete service account token params
func (*DeleteServiceAccountTokenParams) SetProjectID ¶
func (o *DeleteServiceAccountTokenParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the delete service account token params
func (*DeleteServiceAccountTokenParams) SetServiceAccountID ¶
func (o *DeleteServiceAccountTokenParams) SetServiceAccountID(serviceaccountID string)
SetServiceAccountID adds the serviceaccountId to the delete service account token params
func (*DeleteServiceAccountTokenParams) SetTimeout ¶
func (o *DeleteServiceAccountTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete service account token params
func (*DeleteServiceAccountTokenParams) SetTokenID ¶
func (o *DeleteServiceAccountTokenParams) SetTokenID(tokenID string)
SetTokenID adds the tokenId to the delete service account token params
func (*DeleteServiceAccountTokenParams) WithContext ¶
func (o *DeleteServiceAccountTokenParams) WithContext(ctx context.Context) *DeleteServiceAccountTokenParams
WithContext adds the context to the delete service account token params
func (*DeleteServiceAccountTokenParams) WithDefaults ¶ added in v2.18.0
func (o *DeleteServiceAccountTokenParams) WithDefaults() *DeleteServiceAccountTokenParams
WithDefaults hydrates default values in the delete service account token params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteServiceAccountTokenParams) WithHTTPClient ¶
func (o *DeleteServiceAccountTokenParams) WithHTTPClient(client *http.Client) *DeleteServiceAccountTokenParams
WithHTTPClient adds the HTTPClient to the delete service account token params
func (*DeleteServiceAccountTokenParams) WithProjectID ¶
func (o *DeleteServiceAccountTokenParams) WithProjectID(projectID string) *DeleteServiceAccountTokenParams
WithProjectID adds the projectID to the delete service account token params
func (*DeleteServiceAccountTokenParams) WithServiceAccountID ¶
func (o *DeleteServiceAccountTokenParams) WithServiceAccountID(serviceaccountID string) *DeleteServiceAccountTokenParams
WithServiceAccountID adds the serviceaccountID to the delete service account token params
func (*DeleteServiceAccountTokenParams) WithTimeout ¶
func (o *DeleteServiceAccountTokenParams) WithTimeout(timeout time.Duration) *DeleteServiceAccountTokenParams
WithTimeout adds the timeout to the delete service account token params
func (*DeleteServiceAccountTokenParams) WithTokenID ¶
func (o *DeleteServiceAccountTokenParams) WithTokenID(tokenID string) *DeleteServiceAccountTokenParams
WithTokenID adds the tokenID to the delete service account token params
func (*DeleteServiceAccountTokenParams) WriteToRequest ¶
func (o *DeleteServiceAccountTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteServiceAccountTokenReader ¶
type DeleteServiceAccountTokenReader struct {
// contains filtered or unexported fields
}
DeleteServiceAccountTokenReader is a Reader for the DeleteServiceAccountToken structure.
func (*DeleteServiceAccountTokenReader) ReadResponse ¶
func (o *DeleteServiceAccountTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteServiceAccountTokenUnauthorized ¶
type DeleteServiceAccountTokenUnauthorized struct { }
DeleteServiceAccountTokenUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewDeleteServiceAccountTokenUnauthorized ¶
func NewDeleteServiceAccountTokenUnauthorized() *DeleteServiceAccountTokenUnauthorized
NewDeleteServiceAccountTokenUnauthorized creates a DeleteServiceAccountTokenUnauthorized with default headers values
func (*DeleteServiceAccountTokenUnauthorized) Error ¶
func (o *DeleteServiceAccountTokenUnauthorized) Error() string
type ListServiceAccountTokensDefault ¶
type ListServiceAccountTokensDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListServiceAccountTokensDefault describes a response with status code -1, with default header values.
errorResponse
func NewListServiceAccountTokensDefault ¶
func NewListServiceAccountTokensDefault(code int) *ListServiceAccountTokensDefault
NewListServiceAccountTokensDefault creates a ListServiceAccountTokensDefault with default headers values
func (*ListServiceAccountTokensDefault) Code ¶
func (o *ListServiceAccountTokensDefault) Code() int
Code gets the status code for the list service account tokens default response
func (*ListServiceAccountTokensDefault) Error ¶
func (o *ListServiceAccountTokensDefault) Error() string
func (*ListServiceAccountTokensDefault) GetPayload ¶
func (o *ListServiceAccountTokensDefault) GetPayload() *models.ErrorResponse
type ListServiceAccountTokensForbidden ¶
type ListServiceAccountTokensForbidden struct { }
ListServiceAccountTokensForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewListServiceAccountTokensForbidden ¶
func NewListServiceAccountTokensForbidden() *ListServiceAccountTokensForbidden
NewListServiceAccountTokensForbidden creates a ListServiceAccountTokensForbidden with default headers values
func (*ListServiceAccountTokensForbidden) Error ¶
func (o *ListServiceAccountTokensForbidden) Error() string
type ListServiceAccountTokensOK ¶
type ListServiceAccountTokensOK struct {
Payload []*models.PublicServiceAccountToken
}
ListServiceAccountTokensOK describes a response with status code 200, with default header values.
PublicServiceAccountToken
func NewListServiceAccountTokensOK ¶
func NewListServiceAccountTokensOK() *ListServiceAccountTokensOK
NewListServiceAccountTokensOK creates a ListServiceAccountTokensOK with default headers values
func (*ListServiceAccountTokensOK) Error ¶
func (o *ListServiceAccountTokensOK) Error() string
func (*ListServiceAccountTokensOK) GetPayload ¶
func (o *ListServiceAccountTokensOK) GetPayload() []*models.PublicServiceAccountToken
type ListServiceAccountTokensParams ¶
type ListServiceAccountTokensParams struct { // ProjectID. ProjectID string // ServiceaccountID. ServiceAccountID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListServiceAccountTokensParams contains all the parameters to send to the API endpoint
for the list service account tokens operation. Typically these are written to a http.Request.
func NewListServiceAccountTokensParams ¶
func NewListServiceAccountTokensParams() *ListServiceAccountTokensParams
NewListServiceAccountTokensParams creates a new ListServiceAccountTokensParams 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 NewListServiceAccountTokensParamsWithContext ¶
func NewListServiceAccountTokensParamsWithContext(ctx context.Context) *ListServiceAccountTokensParams
NewListServiceAccountTokensParamsWithContext creates a new ListServiceAccountTokensParams object with the ability to set a context for a request.
func NewListServiceAccountTokensParamsWithHTTPClient ¶
func NewListServiceAccountTokensParamsWithHTTPClient(client *http.Client) *ListServiceAccountTokensParams
NewListServiceAccountTokensParamsWithHTTPClient creates a new ListServiceAccountTokensParams object with the ability to set a custom HTTPClient for a request.
func NewListServiceAccountTokensParamsWithTimeout ¶
func NewListServiceAccountTokensParamsWithTimeout(timeout time.Duration) *ListServiceAccountTokensParams
NewListServiceAccountTokensParamsWithTimeout creates a new ListServiceAccountTokensParams object with the ability to set a timeout on a request.
func (*ListServiceAccountTokensParams) SetContext ¶
func (o *ListServiceAccountTokensParams) SetContext(ctx context.Context)
SetContext adds the context to the list service account tokens params
func (*ListServiceAccountTokensParams) SetDefaults ¶ added in v2.18.0
func (o *ListServiceAccountTokensParams) SetDefaults()
SetDefaults hydrates default values in the list service account tokens params (not the query body).
All values with no default are reset to their zero value.
func (*ListServiceAccountTokensParams) SetHTTPClient ¶
func (o *ListServiceAccountTokensParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list service account tokens params
func (*ListServiceAccountTokensParams) SetProjectID ¶
func (o *ListServiceAccountTokensParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the list service account tokens params
func (*ListServiceAccountTokensParams) SetServiceAccountID ¶
func (o *ListServiceAccountTokensParams) SetServiceAccountID(serviceaccountID string)
SetServiceAccountID adds the serviceaccountId to the list service account tokens params
func (*ListServiceAccountTokensParams) SetTimeout ¶
func (o *ListServiceAccountTokensParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list service account tokens params
func (*ListServiceAccountTokensParams) WithContext ¶
func (o *ListServiceAccountTokensParams) WithContext(ctx context.Context) *ListServiceAccountTokensParams
WithContext adds the context to the list service account tokens params
func (*ListServiceAccountTokensParams) WithDefaults ¶ added in v2.18.0
func (o *ListServiceAccountTokensParams) WithDefaults() *ListServiceAccountTokensParams
WithDefaults hydrates default values in the list service account tokens params (not the query body).
All values with no default are reset to their zero value.
func (*ListServiceAccountTokensParams) WithHTTPClient ¶
func (o *ListServiceAccountTokensParams) WithHTTPClient(client *http.Client) *ListServiceAccountTokensParams
WithHTTPClient adds the HTTPClient to the list service account tokens params
func (*ListServiceAccountTokensParams) WithProjectID ¶
func (o *ListServiceAccountTokensParams) WithProjectID(projectID string) *ListServiceAccountTokensParams
WithProjectID adds the projectID to the list service account tokens params
func (*ListServiceAccountTokensParams) WithServiceAccountID ¶
func (o *ListServiceAccountTokensParams) WithServiceAccountID(serviceaccountID string) *ListServiceAccountTokensParams
WithServiceAccountID adds the serviceaccountID to the list service account tokens params
func (*ListServiceAccountTokensParams) WithTimeout ¶
func (o *ListServiceAccountTokensParams) WithTimeout(timeout time.Duration) *ListServiceAccountTokensParams
WithTimeout adds the timeout to the list service account tokens params
func (*ListServiceAccountTokensParams) WriteToRequest ¶
func (o *ListServiceAccountTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListServiceAccountTokensReader ¶
type ListServiceAccountTokensReader struct {
// contains filtered or unexported fields
}
ListServiceAccountTokensReader is a Reader for the ListServiceAccountTokens structure.
func (*ListServiceAccountTokensReader) ReadResponse ¶
func (o *ListServiceAccountTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListServiceAccountTokensUnauthorized ¶
type ListServiceAccountTokensUnauthorized struct { }
ListServiceAccountTokensUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewListServiceAccountTokensUnauthorized ¶
func NewListServiceAccountTokensUnauthorized() *ListServiceAccountTokensUnauthorized
NewListServiceAccountTokensUnauthorized creates a ListServiceAccountTokensUnauthorized with default headers values
func (*ListServiceAccountTokensUnauthorized) Error ¶
func (o *ListServiceAccountTokensUnauthorized) Error() string
type PatchServiceAccountTokenDefault ¶
type PatchServiceAccountTokenDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
PatchServiceAccountTokenDefault describes a response with status code -1, with default header values.
errorResponse
func NewPatchServiceAccountTokenDefault ¶
func NewPatchServiceAccountTokenDefault(code int) *PatchServiceAccountTokenDefault
NewPatchServiceAccountTokenDefault creates a PatchServiceAccountTokenDefault with default headers values
func (*PatchServiceAccountTokenDefault) Code ¶
func (o *PatchServiceAccountTokenDefault) Code() int
Code gets the status code for the patch service account token default response
func (*PatchServiceAccountTokenDefault) Error ¶
func (o *PatchServiceAccountTokenDefault) Error() string
func (*PatchServiceAccountTokenDefault) GetPayload ¶
func (o *PatchServiceAccountTokenDefault) GetPayload() *models.ErrorResponse
type PatchServiceAccountTokenForbidden ¶
type PatchServiceAccountTokenForbidden struct { }
PatchServiceAccountTokenForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewPatchServiceAccountTokenForbidden ¶
func NewPatchServiceAccountTokenForbidden() *PatchServiceAccountTokenForbidden
NewPatchServiceAccountTokenForbidden creates a PatchServiceAccountTokenForbidden with default headers values
func (*PatchServiceAccountTokenForbidden) Error ¶
func (o *PatchServiceAccountTokenForbidden) Error() string
type PatchServiceAccountTokenOK ¶
type PatchServiceAccountTokenOK struct {
Payload *models.PublicServiceAccountToken
}
PatchServiceAccountTokenOK describes a response with status code 200, with default header values.
PublicServiceAccountToken
func NewPatchServiceAccountTokenOK ¶
func NewPatchServiceAccountTokenOK() *PatchServiceAccountTokenOK
NewPatchServiceAccountTokenOK creates a PatchServiceAccountTokenOK with default headers values
func (*PatchServiceAccountTokenOK) Error ¶
func (o *PatchServiceAccountTokenOK) Error() string
func (*PatchServiceAccountTokenOK) GetPayload ¶
func (o *PatchServiceAccountTokenOK) GetPayload() *models.PublicServiceAccountToken
type PatchServiceAccountTokenParams ¶
type PatchServiceAccountTokenParams struct { // Body. Body []uint8 // ProjectID. ProjectID string // ServiceaccountID. ServiceAccountID string // TokenID. TokenID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchServiceAccountTokenParams contains all the parameters to send to the API endpoint
for the patch service account token operation. Typically these are written to a http.Request.
func NewPatchServiceAccountTokenParams ¶
func NewPatchServiceAccountTokenParams() *PatchServiceAccountTokenParams
NewPatchServiceAccountTokenParams creates a new PatchServiceAccountTokenParams 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 NewPatchServiceAccountTokenParamsWithContext ¶
func NewPatchServiceAccountTokenParamsWithContext(ctx context.Context) *PatchServiceAccountTokenParams
NewPatchServiceAccountTokenParamsWithContext creates a new PatchServiceAccountTokenParams object with the ability to set a context for a request.
func NewPatchServiceAccountTokenParamsWithHTTPClient ¶
func NewPatchServiceAccountTokenParamsWithHTTPClient(client *http.Client) *PatchServiceAccountTokenParams
NewPatchServiceAccountTokenParamsWithHTTPClient creates a new PatchServiceAccountTokenParams object with the ability to set a custom HTTPClient for a request.
func NewPatchServiceAccountTokenParamsWithTimeout ¶
func NewPatchServiceAccountTokenParamsWithTimeout(timeout time.Duration) *PatchServiceAccountTokenParams
NewPatchServiceAccountTokenParamsWithTimeout creates a new PatchServiceAccountTokenParams object with the ability to set a timeout on a request.
func (*PatchServiceAccountTokenParams) SetBody ¶
func (o *PatchServiceAccountTokenParams) SetBody(body []uint8)
SetBody adds the body to the patch service account token params
func (*PatchServiceAccountTokenParams) SetContext ¶
func (o *PatchServiceAccountTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the patch service account token params
func (*PatchServiceAccountTokenParams) SetDefaults ¶ added in v2.18.0
func (o *PatchServiceAccountTokenParams) SetDefaults()
SetDefaults hydrates default values in the patch service account token params (not the query body).
All values with no default are reset to their zero value.
func (*PatchServiceAccountTokenParams) SetHTTPClient ¶
func (o *PatchServiceAccountTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch service account token params
func (*PatchServiceAccountTokenParams) SetProjectID ¶
func (o *PatchServiceAccountTokenParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the patch service account token params
func (*PatchServiceAccountTokenParams) SetServiceAccountID ¶
func (o *PatchServiceAccountTokenParams) SetServiceAccountID(serviceaccountID string)
SetServiceAccountID adds the serviceaccountId to the patch service account token params
func (*PatchServiceAccountTokenParams) SetTimeout ¶
func (o *PatchServiceAccountTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch service account token params
func (*PatchServiceAccountTokenParams) SetTokenID ¶
func (o *PatchServiceAccountTokenParams) SetTokenID(tokenID string)
SetTokenID adds the tokenId to the patch service account token params
func (*PatchServiceAccountTokenParams) WithBody ¶
func (o *PatchServiceAccountTokenParams) WithBody(body []uint8) *PatchServiceAccountTokenParams
WithBody adds the body to the patch service account token params
func (*PatchServiceAccountTokenParams) WithContext ¶
func (o *PatchServiceAccountTokenParams) WithContext(ctx context.Context) *PatchServiceAccountTokenParams
WithContext adds the context to the patch service account token params
func (*PatchServiceAccountTokenParams) WithDefaults ¶ added in v2.18.0
func (o *PatchServiceAccountTokenParams) WithDefaults() *PatchServiceAccountTokenParams
WithDefaults hydrates default values in the patch service account token params (not the query body).
All values with no default are reset to their zero value.
func (*PatchServiceAccountTokenParams) WithHTTPClient ¶
func (o *PatchServiceAccountTokenParams) WithHTTPClient(client *http.Client) *PatchServiceAccountTokenParams
WithHTTPClient adds the HTTPClient to the patch service account token params
func (*PatchServiceAccountTokenParams) WithProjectID ¶
func (o *PatchServiceAccountTokenParams) WithProjectID(projectID string) *PatchServiceAccountTokenParams
WithProjectID adds the projectID to the patch service account token params
func (*PatchServiceAccountTokenParams) WithServiceAccountID ¶
func (o *PatchServiceAccountTokenParams) WithServiceAccountID(serviceaccountID string) *PatchServiceAccountTokenParams
WithServiceAccountID adds the serviceaccountID to the patch service account token params
func (*PatchServiceAccountTokenParams) WithTimeout ¶
func (o *PatchServiceAccountTokenParams) WithTimeout(timeout time.Duration) *PatchServiceAccountTokenParams
WithTimeout adds the timeout to the patch service account token params
func (*PatchServiceAccountTokenParams) WithTokenID ¶
func (o *PatchServiceAccountTokenParams) WithTokenID(tokenID string) *PatchServiceAccountTokenParams
WithTokenID adds the tokenID to the patch service account token params
func (*PatchServiceAccountTokenParams) WriteToRequest ¶
func (o *PatchServiceAccountTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchServiceAccountTokenReader ¶
type PatchServiceAccountTokenReader struct {
// contains filtered or unexported fields
}
PatchServiceAccountTokenReader is a Reader for the PatchServiceAccountToken structure.
func (*PatchServiceAccountTokenReader) ReadResponse ¶
func (o *PatchServiceAccountTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchServiceAccountTokenUnauthorized ¶
type PatchServiceAccountTokenUnauthorized struct { }
PatchServiceAccountTokenUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewPatchServiceAccountTokenUnauthorized ¶
func NewPatchServiceAccountTokenUnauthorized() *PatchServiceAccountTokenUnauthorized
NewPatchServiceAccountTokenUnauthorized creates a PatchServiceAccountTokenUnauthorized with default headers values
func (*PatchServiceAccountTokenUnauthorized) Error ¶
func (o *PatchServiceAccountTokenUnauthorized) Error() string
type UpdateServiceAccountTokenDefault ¶
type UpdateServiceAccountTokenDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
UpdateServiceAccountTokenDefault describes a response with status code -1, with default header values.
errorResponse
func NewUpdateServiceAccountTokenDefault ¶
func NewUpdateServiceAccountTokenDefault(code int) *UpdateServiceAccountTokenDefault
NewUpdateServiceAccountTokenDefault creates a UpdateServiceAccountTokenDefault with default headers values
func (*UpdateServiceAccountTokenDefault) Code ¶
func (o *UpdateServiceAccountTokenDefault) Code() int
Code gets the status code for the update service account token default response
func (*UpdateServiceAccountTokenDefault) Error ¶
func (o *UpdateServiceAccountTokenDefault) Error() string
func (*UpdateServiceAccountTokenDefault) GetPayload ¶
func (o *UpdateServiceAccountTokenDefault) GetPayload() *models.ErrorResponse
type UpdateServiceAccountTokenForbidden ¶
type UpdateServiceAccountTokenForbidden struct { }
UpdateServiceAccountTokenForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewUpdateServiceAccountTokenForbidden ¶
func NewUpdateServiceAccountTokenForbidden() *UpdateServiceAccountTokenForbidden
NewUpdateServiceAccountTokenForbidden creates a UpdateServiceAccountTokenForbidden with default headers values
func (*UpdateServiceAccountTokenForbidden) Error ¶
func (o *UpdateServiceAccountTokenForbidden) Error() string
type UpdateServiceAccountTokenOK ¶
type UpdateServiceAccountTokenOK struct {
Payload *models.ServiceAccountToken
}
UpdateServiceAccountTokenOK describes a response with status code 200, with default header values.
ServiceAccountToken
func NewUpdateServiceAccountTokenOK ¶
func NewUpdateServiceAccountTokenOK() *UpdateServiceAccountTokenOK
NewUpdateServiceAccountTokenOK creates a UpdateServiceAccountTokenOK with default headers values
func (*UpdateServiceAccountTokenOK) Error ¶
func (o *UpdateServiceAccountTokenOK) Error() string
func (*UpdateServiceAccountTokenOK) GetPayload ¶
func (o *UpdateServiceAccountTokenOK) GetPayload() *models.ServiceAccountToken
type UpdateServiceAccountTokenParams ¶
type UpdateServiceAccountTokenParams struct { // Body. Body *models.PublicServiceAccountToken // ProjectID. ProjectID string // ServiceaccountID. ServiceAccountID string // TokenID. TokenID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateServiceAccountTokenParams contains all the parameters to send to the API endpoint
for the update service account token operation. Typically these are written to a http.Request.
func NewUpdateServiceAccountTokenParams ¶
func NewUpdateServiceAccountTokenParams() *UpdateServiceAccountTokenParams
NewUpdateServiceAccountTokenParams creates a new UpdateServiceAccountTokenParams 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 NewUpdateServiceAccountTokenParamsWithContext ¶
func NewUpdateServiceAccountTokenParamsWithContext(ctx context.Context) *UpdateServiceAccountTokenParams
NewUpdateServiceAccountTokenParamsWithContext creates a new UpdateServiceAccountTokenParams object with the ability to set a context for a request.
func NewUpdateServiceAccountTokenParamsWithHTTPClient ¶
func NewUpdateServiceAccountTokenParamsWithHTTPClient(client *http.Client) *UpdateServiceAccountTokenParams
NewUpdateServiceAccountTokenParamsWithHTTPClient creates a new UpdateServiceAccountTokenParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateServiceAccountTokenParamsWithTimeout ¶
func NewUpdateServiceAccountTokenParamsWithTimeout(timeout time.Duration) *UpdateServiceAccountTokenParams
NewUpdateServiceAccountTokenParamsWithTimeout creates a new UpdateServiceAccountTokenParams object with the ability to set a timeout on a request.
func (*UpdateServiceAccountTokenParams) SetBody ¶
func (o *UpdateServiceAccountTokenParams) SetBody(body *models.PublicServiceAccountToken)
SetBody adds the body to the update service account token params
func (*UpdateServiceAccountTokenParams) SetContext ¶
func (o *UpdateServiceAccountTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the update service account token params
func (*UpdateServiceAccountTokenParams) SetDefaults ¶ added in v2.18.0
func (o *UpdateServiceAccountTokenParams) SetDefaults()
SetDefaults hydrates default values in the update service account token params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateServiceAccountTokenParams) SetHTTPClient ¶
func (o *UpdateServiceAccountTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update service account token params
func (*UpdateServiceAccountTokenParams) SetProjectID ¶
func (o *UpdateServiceAccountTokenParams) SetProjectID(projectID string)
SetProjectID adds the projectId to the update service account token params
func (*UpdateServiceAccountTokenParams) SetServiceAccountID ¶
func (o *UpdateServiceAccountTokenParams) SetServiceAccountID(serviceaccountID string)
SetServiceAccountID adds the serviceaccountId to the update service account token params
func (*UpdateServiceAccountTokenParams) SetTimeout ¶
func (o *UpdateServiceAccountTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update service account token params
func (*UpdateServiceAccountTokenParams) SetTokenID ¶
func (o *UpdateServiceAccountTokenParams) SetTokenID(tokenID string)
SetTokenID adds the tokenId to the update service account token params
func (*UpdateServiceAccountTokenParams) WithBody ¶
func (o *UpdateServiceAccountTokenParams) WithBody(body *models.PublicServiceAccountToken) *UpdateServiceAccountTokenParams
WithBody adds the body to the update service account token params
func (*UpdateServiceAccountTokenParams) WithContext ¶
func (o *UpdateServiceAccountTokenParams) WithContext(ctx context.Context) *UpdateServiceAccountTokenParams
WithContext adds the context to the update service account token params
func (*UpdateServiceAccountTokenParams) WithDefaults ¶ added in v2.18.0
func (o *UpdateServiceAccountTokenParams) WithDefaults() *UpdateServiceAccountTokenParams
WithDefaults hydrates default values in the update service account token params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateServiceAccountTokenParams) WithHTTPClient ¶
func (o *UpdateServiceAccountTokenParams) WithHTTPClient(client *http.Client) *UpdateServiceAccountTokenParams
WithHTTPClient adds the HTTPClient to the update service account token params
func (*UpdateServiceAccountTokenParams) WithProjectID ¶
func (o *UpdateServiceAccountTokenParams) WithProjectID(projectID string) *UpdateServiceAccountTokenParams
WithProjectID adds the projectID to the update service account token params
func (*UpdateServiceAccountTokenParams) WithServiceAccountID ¶
func (o *UpdateServiceAccountTokenParams) WithServiceAccountID(serviceaccountID string) *UpdateServiceAccountTokenParams
WithServiceAccountID adds the serviceaccountID to the update service account token params
func (*UpdateServiceAccountTokenParams) WithTimeout ¶
func (o *UpdateServiceAccountTokenParams) WithTimeout(timeout time.Duration) *UpdateServiceAccountTokenParams
WithTimeout adds the timeout to the update service account token params
func (*UpdateServiceAccountTokenParams) WithTokenID ¶
func (o *UpdateServiceAccountTokenParams) WithTokenID(tokenID string) *UpdateServiceAccountTokenParams
WithTokenID adds the tokenID to the update service account token params
func (*UpdateServiceAccountTokenParams) WriteToRequest ¶
func (o *UpdateServiceAccountTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateServiceAccountTokenReader ¶
type UpdateServiceAccountTokenReader struct {
// contains filtered or unexported fields
}
UpdateServiceAccountTokenReader is a Reader for the UpdateServiceAccountToken structure.
func (*UpdateServiceAccountTokenReader) ReadResponse ¶
func (o *UpdateServiceAccountTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateServiceAccountTokenUnauthorized ¶
type UpdateServiceAccountTokenUnauthorized struct { }
UpdateServiceAccountTokenUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewUpdateServiceAccountTokenUnauthorized ¶
func NewUpdateServiceAccountTokenUnauthorized() *UpdateServiceAccountTokenUnauthorized
NewUpdateServiceAccountTokenUnauthorized creates a UpdateServiceAccountTokenUnauthorized with default headers values
func (*UpdateServiceAccountTokenUnauthorized) Error ¶
func (o *UpdateServiceAccountTokenUnauthorized) Error() string
Source Files ¶
- add_token_to_service_account_parameters.go
- add_token_to_service_account_responses.go
- delete_service_account_token_parameters.go
- delete_service_account_token_responses.go
- list_service_account_tokens_parameters.go
- list_service_account_tokens_responses.go
- patch_service_account_token_parameters.go
- patch_service_account_token_responses.go
- tokens_client.go
- update_service_account_token_parameters.go
- update_service_account_token_responses.go