tokens

package
v2.20.6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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 (*AddTokenToServiceAccountCreated) GetPayload

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

Code gets the status code for the add token to service account default response

func (*AddTokenToServiceAccountDefault) Error

func (*AddTokenToServiceAccountDefault) GetPayload

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

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

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

WithBody adds the body to the add token to service account params

func (*AddTokenToServiceAccountParams) WithContext

WithContext adds the context to the add token to service account params

func (*AddTokenToServiceAccountParams) WithDefaults added in v2.18.0

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

WithHTTPClient adds the HTTPClient to the add token to service account params

func (*AddTokenToServiceAccountParams) WithProjectID

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

WithTimeout adds the timeout to the add token to service account params

func (*AddTokenToServiceAccountParams) WriteToRequest

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

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

Code gets the status code for the delete service account token default response

func (*DeleteServiceAccountTokenDefault) Error

func (*DeleteServiceAccountTokenDefault) GetPayload

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

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

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

WithContext adds the context to the delete service account token params

func (*DeleteServiceAccountTokenParams) WithDefaults added in v2.18.0

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

WithHTTPClient adds the HTTPClient to the delete service account token params

func (*DeleteServiceAccountTokenParams) WithProjectID

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

WithTimeout adds the timeout to the delete service account token params

func (*DeleteServiceAccountTokenParams) WithTokenID

WithTokenID adds the tokenID to the delete service account token params

func (*DeleteServiceAccountTokenParams) WriteToRequest

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

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

Code gets the status code for the list service account tokens default response

func (*ListServiceAccountTokensDefault) Error

func (*ListServiceAccountTokensDefault) GetPayload

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

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 (*ListServiceAccountTokensOK) GetPayload

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

WithContext adds the context to the list service account tokens params

func (*ListServiceAccountTokensParams) WithDefaults added in v2.18.0

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

WithHTTPClient adds the HTTPClient to the list service account tokens params

func (*ListServiceAccountTokensParams) WithProjectID

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

WithTimeout adds the timeout to the list service account tokens params

func (*ListServiceAccountTokensParams) WriteToRequest

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

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

Code gets the status code for the patch service account token default response

func (*PatchServiceAccountTokenDefault) Error

func (*PatchServiceAccountTokenDefault) GetPayload

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

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 (*PatchServiceAccountTokenOK) GetPayload

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

WithBody adds the body to the patch service account token params

func (*PatchServiceAccountTokenParams) WithContext

WithContext adds the context to the patch service account token params

func (*PatchServiceAccountTokenParams) WithDefaults added in v2.18.0

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

WithHTTPClient adds the HTTPClient to the patch service account token params

func (*PatchServiceAccountTokenParams) WithProjectID

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

WithTimeout adds the timeout to the patch service account token params

func (*PatchServiceAccountTokenParams) WithTokenID

WithTokenID adds the tokenID to the patch service account token params

func (*PatchServiceAccountTokenParams) WriteToRequest

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

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

Code gets the status code for the update service account token default response

func (*UpdateServiceAccountTokenDefault) Error

func (*UpdateServiceAccountTokenDefault) GetPayload

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

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 (*UpdateServiceAccountTokenOK) GetPayload

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

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

WithBody adds the body to the update service account token params

func (*UpdateServiceAccountTokenParams) WithContext

WithContext adds the context to the update service account token params

func (*UpdateServiceAccountTokenParams) WithDefaults added in v2.18.0

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

WithHTTPClient adds the HTTPClient to the update service account token params

func (*UpdateServiceAccountTokenParams) WithProjectID

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

WithTimeout adds the timeout to the update service account token params

func (*UpdateServiceAccountTokenParams) WithTokenID

WithTokenID adds the tokenID to the update service account token params

func (*UpdateServiceAccountTokenParams) WriteToRequest

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

Jump to

Keyboard shortcuts

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