access_keys

package
v0.0.0-...-af0b780 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for access keys API

func (*Client) CreateAccesskey

func (a *Client) CreateAccesskey(params *CreateAccesskeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAccesskeyOK, error)

CreateAccesskey creates an access key

func (*Client) DeleteAccesskey

func (a *Client) DeleteAccesskey(params *DeleteAccesskeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAccesskeyOK, error)

DeleteAccesskey deletes an access key

func (*Client) Index

func (a *Client) Index(params *IndexParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IndexOK, error)

Index gets an access key

func (*Client) List

func (a *Client) List(params *ListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOK, error)

List lists access keys for a specific provider

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateAccesskey(params *CreateAccesskeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAccesskeyOK, error)

	DeleteAccesskey(params *DeleteAccesskeyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAccesskeyOK, error)

	Index(params *IndexParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IndexOK, error)

	List(params *ListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOK, 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 access keys API client.

type CreateAccesskeyOK

type CreateAccesskeyOK struct {
	Payload *models.AccessKey
}
CreateAccesskeyOK describes a response with status code 200, with default header values.

successful operation

func NewCreateAccesskeyOK

func NewCreateAccesskeyOK() *CreateAccesskeyOK

NewCreateAccesskeyOK creates a CreateAccesskeyOK with default headers values

func (*CreateAccesskeyOK) Error

func (o *CreateAccesskeyOK) Error() string

func (*CreateAccesskeyOK) GetPayload

func (o *CreateAccesskeyOK) GetPayload() *models.AccessKey

type CreateAccesskeyParams

type CreateAccesskeyParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// PUUID.
	//
	// Format: uuid
	PUUID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateAccesskeyParams contains all the parameters to send to the API endpoint

for the create accesskey operation.

Typically these are written to a http.Request.

func NewCreateAccesskeyParams

func NewCreateAccesskeyParams() *CreateAccesskeyParams

NewCreateAccesskeyParams creates a new CreateAccesskeyParams 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 NewCreateAccesskeyParamsWithContext

func NewCreateAccesskeyParamsWithContext(ctx context.Context) *CreateAccesskeyParams

NewCreateAccesskeyParamsWithContext creates a new CreateAccesskeyParams object with the ability to set a context for a request.

func NewCreateAccesskeyParamsWithHTTPClient

func NewCreateAccesskeyParamsWithHTTPClient(client *http.Client) *CreateAccesskeyParams

NewCreateAccesskeyParamsWithHTTPClient creates a new CreateAccesskeyParams object with the ability to set a custom HTTPClient for a request.

func NewCreateAccesskeyParamsWithTimeout

func NewCreateAccesskeyParamsWithTimeout(timeout time.Duration) *CreateAccesskeyParams

NewCreateAccesskeyParamsWithTimeout creates a new CreateAccesskeyParams object with the ability to set a timeout on a request.

func (*CreateAccesskeyParams) SetCUUID

func (o *CreateAccesskeyParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the create accesskey params

func (*CreateAccesskeyParams) SetContext

func (o *CreateAccesskeyParams) SetContext(ctx context.Context)

SetContext adds the context to the create accesskey params

func (*CreateAccesskeyParams) SetDefaults

func (o *CreateAccesskeyParams) SetDefaults()

SetDefaults hydrates default values in the create accesskey params (not the query body).

All values with no default are reset to their zero value.

func (*CreateAccesskeyParams) SetHTTPClient

func (o *CreateAccesskeyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create accesskey params

func (*CreateAccesskeyParams) SetPUUID

func (o *CreateAccesskeyParams) SetPUUID(pUUID strfmt.UUID)

SetPUUID adds the pUuid to the create accesskey params

func (*CreateAccesskeyParams) SetTimeout

func (o *CreateAccesskeyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create accesskey params

func (*CreateAccesskeyParams) WithCUUID

WithCUUID adds the cUUID to the create accesskey params

func (*CreateAccesskeyParams) WithContext

WithContext adds the context to the create accesskey params

func (*CreateAccesskeyParams) WithDefaults

func (o *CreateAccesskeyParams) WithDefaults() *CreateAccesskeyParams

WithDefaults hydrates default values in the create accesskey params (not the query body).

All values with no default are reset to their zero value.

func (*CreateAccesskeyParams) WithHTTPClient

func (o *CreateAccesskeyParams) WithHTTPClient(client *http.Client) *CreateAccesskeyParams

WithHTTPClient adds the HTTPClient to the create accesskey params

func (*CreateAccesskeyParams) WithPUUID

WithPUUID adds the pUUID to the create accesskey params

func (*CreateAccesskeyParams) WithTimeout

func (o *CreateAccesskeyParams) WithTimeout(timeout time.Duration) *CreateAccesskeyParams

WithTimeout adds the timeout to the create accesskey params

func (*CreateAccesskeyParams) WriteToRequest

func (o *CreateAccesskeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateAccesskeyReader

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

CreateAccesskeyReader is a Reader for the CreateAccesskey structure.

func (*CreateAccesskeyReader) ReadResponse

func (o *CreateAccesskeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteAccesskeyOK

type DeleteAccesskeyOK struct {
	Payload *models.YBPSuccess
}
DeleteAccesskeyOK describes a response with status code 200, with default header values.

successful operation

func NewDeleteAccesskeyOK

func NewDeleteAccesskeyOK() *DeleteAccesskeyOK

NewDeleteAccesskeyOK creates a DeleteAccesskeyOK with default headers values

func (*DeleteAccesskeyOK) Error

func (o *DeleteAccesskeyOK) Error() string

func (*DeleteAccesskeyOK) GetPayload

func (o *DeleteAccesskeyOK) GetPayload() *models.YBPSuccess

type DeleteAccesskeyParams

type DeleteAccesskeyParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// KeyCode.
	KeyCode string

	// PUUID.
	//
	// Format: uuid
	PUUID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteAccesskeyParams contains all the parameters to send to the API endpoint

for the delete accesskey operation.

Typically these are written to a http.Request.

func NewDeleteAccesskeyParams

func NewDeleteAccesskeyParams() *DeleteAccesskeyParams

NewDeleteAccesskeyParams creates a new DeleteAccesskeyParams 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 NewDeleteAccesskeyParamsWithContext

func NewDeleteAccesskeyParamsWithContext(ctx context.Context) *DeleteAccesskeyParams

NewDeleteAccesskeyParamsWithContext creates a new DeleteAccesskeyParams object with the ability to set a context for a request.

func NewDeleteAccesskeyParamsWithHTTPClient

func NewDeleteAccesskeyParamsWithHTTPClient(client *http.Client) *DeleteAccesskeyParams

NewDeleteAccesskeyParamsWithHTTPClient creates a new DeleteAccesskeyParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAccesskeyParamsWithTimeout

func NewDeleteAccesskeyParamsWithTimeout(timeout time.Duration) *DeleteAccesskeyParams

NewDeleteAccesskeyParamsWithTimeout creates a new DeleteAccesskeyParams object with the ability to set a timeout on a request.

func (*DeleteAccesskeyParams) SetCUUID

func (o *DeleteAccesskeyParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the delete accesskey params

func (*DeleteAccesskeyParams) SetContext

func (o *DeleteAccesskeyParams) SetContext(ctx context.Context)

SetContext adds the context to the delete accesskey params

func (*DeleteAccesskeyParams) SetDefaults

func (o *DeleteAccesskeyParams) SetDefaults()

SetDefaults hydrates default values in the delete accesskey params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAccesskeyParams) SetHTTPClient

func (o *DeleteAccesskeyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete accesskey params

func (*DeleteAccesskeyParams) SetKeyCode

func (o *DeleteAccesskeyParams) SetKeyCode(keyCode string)

SetKeyCode adds the keyCode to the delete accesskey params

func (*DeleteAccesskeyParams) SetPUUID

func (o *DeleteAccesskeyParams) SetPUUID(pUUID strfmt.UUID)

SetPUUID adds the pUuid to the delete accesskey params

func (*DeleteAccesskeyParams) SetTimeout

func (o *DeleteAccesskeyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete accesskey params

func (*DeleteAccesskeyParams) WithCUUID

WithCUUID adds the cUUID to the delete accesskey params

func (*DeleteAccesskeyParams) WithContext

WithContext adds the context to the delete accesskey params

func (*DeleteAccesskeyParams) WithDefaults

func (o *DeleteAccesskeyParams) WithDefaults() *DeleteAccesskeyParams

WithDefaults hydrates default values in the delete accesskey params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteAccesskeyParams) WithHTTPClient

func (o *DeleteAccesskeyParams) WithHTTPClient(client *http.Client) *DeleteAccesskeyParams

WithHTTPClient adds the HTTPClient to the delete accesskey params

func (*DeleteAccesskeyParams) WithKeyCode

func (o *DeleteAccesskeyParams) WithKeyCode(keyCode string) *DeleteAccesskeyParams

WithKeyCode adds the keyCode to the delete accesskey params

func (*DeleteAccesskeyParams) WithPUUID

WithPUUID adds the pUUID to the delete accesskey params

func (*DeleteAccesskeyParams) WithTimeout

func (o *DeleteAccesskeyParams) WithTimeout(timeout time.Duration) *DeleteAccesskeyParams

WithTimeout adds the timeout to the delete accesskey params

func (*DeleteAccesskeyParams) WriteToRequest

func (o *DeleteAccesskeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteAccesskeyReader

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

DeleteAccesskeyReader is a Reader for the DeleteAccesskey structure.

func (*DeleteAccesskeyReader) ReadResponse

func (o *DeleteAccesskeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type IndexOK

type IndexOK struct {
	Payload *models.AccessKey
}
IndexOK describes a response with status code 200, with default header values.

successful operation

func NewIndexOK

func NewIndexOK() *IndexOK

NewIndexOK creates a IndexOK with default headers values

func (*IndexOK) Error

func (o *IndexOK) Error() string

func (*IndexOK) GetPayload

func (o *IndexOK) GetPayload() *models.AccessKey

type IndexParams

type IndexParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// KeyCode.
	KeyCode string

	// PUUID.
	//
	// Format: uuid
	PUUID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

IndexParams contains all the parameters to send to the API endpoint

for the index operation.

Typically these are written to a http.Request.

func NewIndexParams

func NewIndexParams() *IndexParams

NewIndexParams creates a new IndexParams 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 NewIndexParamsWithContext

func NewIndexParamsWithContext(ctx context.Context) *IndexParams

NewIndexParamsWithContext creates a new IndexParams object with the ability to set a context for a request.

func NewIndexParamsWithHTTPClient

func NewIndexParamsWithHTTPClient(client *http.Client) *IndexParams

NewIndexParamsWithHTTPClient creates a new IndexParams object with the ability to set a custom HTTPClient for a request.

func NewIndexParamsWithTimeout

func NewIndexParamsWithTimeout(timeout time.Duration) *IndexParams

NewIndexParamsWithTimeout creates a new IndexParams object with the ability to set a timeout on a request.

func (*IndexParams) SetCUUID

func (o *IndexParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the index params

func (*IndexParams) SetContext

func (o *IndexParams) SetContext(ctx context.Context)

SetContext adds the context to the index params

func (*IndexParams) SetDefaults

func (o *IndexParams) SetDefaults()

SetDefaults hydrates default values in the index params (not the query body).

All values with no default are reset to their zero value.

func (*IndexParams) SetHTTPClient

func (o *IndexParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the index params

func (*IndexParams) SetKeyCode

func (o *IndexParams) SetKeyCode(keyCode string)

SetKeyCode adds the keyCode to the index params

func (*IndexParams) SetPUUID

func (o *IndexParams) SetPUUID(pUUID strfmt.UUID)

SetPUUID adds the pUuid to the index params

func (*IndexParams) SetTimeout

func (o *IndexParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the index params

func (*IndexParams) WithCUUID

func (o *IndexParams) WithCUUID(cUUID strfmt.UUID) *IndexParams

WithCUUID adds the cUUID to the index params

func (*IndexParams) WithContext

func (o *IndexParams) WithContext(ctx context.Context) *IndexParams

WithContext adds the context to the index params

func (*IndexParams) WithDefaults

func (o *IndexParams) WithDefaults() *IndexParams

WithDefaults hydrates default values in the index params (not the query body).

All values with no default are reset to their zero value.

func (*IndexParams) WithHTTPClient

func (o *IndexParams) WithHTTPClient(client *http.Client) *IndexParams

WithHTTPClient adds the HTTPClient to the index params

func (*IndexParams) WithKeyCode

func (o *IndexParams) WithKeyCode(keyCode string) *IndexParams

WithKeyCode adds the keyCode to the index params

func (*IndexParams) WithPUUID

func (o *IndexParams) WithPUUID(pUUID strfmt.UUID) *IndexParams

WithPUUID adds the pUUID to the index params

func (*IndexParams) WithTimeout

func (o *IndexParams) WithTimeout(timeout time.Duration) *IndexParams

WithTimeout adds the timeout to the index params

func (*IndexParams) WriteToRequest

func (o *IndexParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type IndexReader

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

IndexReader is a Reader for the Index structure.

func (*IndexReader) ReadResponse

func (o *IndexReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListOK

type ListOK struct {
	Payload []*models.AccessKey
}
ListOK describes a response with status code 200, with default header values.

successful operation

func NewListOK

func NewListOK() *ListOK

NewListOK creates a ListOK with default headers values

func (*ListOK) Error

func (o *ListOK) Error() string

func (*ListOK) GetPayload

func (o *ListOK) GetPayload() []*models.AccessKey

type ListParams

type ListParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// PUUID.
	//
	// Format: uuid
	PUUID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListParams contains all the parameters to send to the API endpoint

for the list operation.

Typically these are written to a http.Request.

func NewListParams

func NewListParams() *ListParams

NewListParams creates a new ListParams 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 NewListParamsWithContext

func NewListParamsWithContext(ctx context.Context) *ListParams

NewListParamsWithContext creates a new ListParams object with the ability to set a context for a request.

func NewListParamsWithHTTPClient

func NewListParamsWithHTTPClient(client *http.Client) *ListParams

NewListParamsWithHTTPClient creates a new ListParams object with the ability to set a custom HTTPClient for a request.

func NewListParamsWithTimeout

func NewListParamsWithTimeout(timeout time.Duration) *ListParams

NewListParamsWithTimeout creates a new ListParams object with the ability to set a timeout on a request.

func (*ListParams) SetCUUID

func (o *ListParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the list params

func (*ListParams) SetContext

func (o *ListParams) SetContext(ctx context.Context)

SetContext adds the context to the list params

func (*ListParams) SetDefaults

func (o *ListParams) SetDefaults()

SetDefaults hydrates default values in the list params (not the query body).

All values with no default are reset to their zero value.

func (*ListParams) SetHTTPClient

func (o *ListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list params

func (*ListParams) SetPUUID

func (o *ListParams) SetPUUID(pUUID strfmt.UUID)

SetPUUID adds the pUuid to the list params

func (*ListParams) SetTimeout

func (o *ListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list params

func (*ListParams) WithCUUID

func (o *ListParams) WithCUUID(cUUID strfmt.UUID) *ListParams

WithCUUID adds the cUUID to the list params

func (*ListParams) WithContext

func (o *ListParams) WithContext(ctx context.Context) *ListParams

WithContext adds the context to the list params

func (*ListParams) WithDefaults

func (o *ListParams) WithDefaults() *ListParams

WithDefaults hydrates default values in the list params (not the query body).

All values with no default are reset to their zero value.

func (*ListParams) WithHTTPClient

func (o *ListParams) WithHTTPClient(client *http.Client) *ListParams

WithHTTPClient adds the HTTPClient to the list params

func (*ListParams) WithPUUID

func (o *ListParams) WithPUUID(pUUID strfmt.UUID) *ListParams

WithPUUID adds the pUUID to the list params

func (*ListParams) WithTimeout

func (o *ListParams) WithTimeout(timeout time.Duration) *ListParams

WithTimeout adds the timeout to the list params

func (*ListParams) WriteToRequest

func (o *ListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListReader

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

ListReader is a Reader for the List structure.

func (*ListReader) ReadResponse

func (o *ListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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