p_cloud_tenants_ssh_keys

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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 Client

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

Client for p cloud tenants ssh keys API

func (*Client) PcloudTenantsSshkeysDelete

func (a *Client) PcloudTenantsSshkeysDelete(params *PcloudTenantsSshkeysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysDeleteOK, error)

PcloudTenantsSshkeysDelete deletes a tenant s SSH key

func (*Client) PcloudTenantsSshkeysGet

func (a *Client) PcloudTenantsSshkeysGet(params *PcloudTenantsSshkeysGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysGetOK, error)

PcloudTenantsSshkeysGet gets a tenant s SSH key by name

func (*Client) PcloudTenantsSshkeysGetall

func (a *Client) PcloudTenantsSshkeysGetall(params *PcloudTenantsSshkeysGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysGetallOK, error)

PcloudTenantsSshkeysGetall lists a tenant s SSH keys

func (*Client) PcloudTenantsSshkeysPost

PcloudTenantsSshkeysPost adds a new SSH key to the tenant

func (*Client) PcloudTenantsSshkeysPut

func (a *Client) PcloudTenantsSshkeysPut(params *PcloudTenantsSshkeysPutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysPutOK, error)

PcloudTenantsSshkeysPut updates an SSH key

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.1.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v1.1.0

type ClientService interface {
	PcloudTenantsSshkeysDelete(params *PcloudTenantsSshkeysDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysDeleteOK, error)

	PcloudTenantsSshkeysGet(params *PcloudTenantsSshkeysGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysGetOK, error)

	PcloudTenantsSshkeysGetall(params *PcloudTenantsSshkeysGetallParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysGetallOK, error)

	PcloudTenantsSshkeysPost(params *PcloudTenantsSshkeysPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysPostOK, *PcloudTenantsSshkeysPostCreated, error)

	PcloudTenantsSshkeysPut(params *PcloudTenantsSshkeysPutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PcloudTenantsSshkeysPutOK, 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 p cloud tenants ssh keys API client.

type PcloudTenantsSshkeysDeleteBadRequest

type PcloudTenantsSshkeysDeleteBadRequest struct {
	Payload *models.Error
}
PcloudTenantsSshkeysDeleteBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudTenantsSshkeysDeleteBadRequest

func NewPcloudTenantsSshkeysDeleteBadRequest() *PcloudTenantsSshkeysDeleteBadRequest

NewPcloudTenantsSshkeysDeleteBadRequest creates a PcloudTenantsSshkeysDeleteBadRequest with default headers values

func (*PcloudTenantsSshkeysDeleteBadRequest) Error

func (*PcloudTenantsSshkeysDeleteBadRequest) GetPayload added in v1.1.0

type PcloudTenantsSshkeysDeleteGone

type PcloudTenantsSshkeysDeleteGone struct {
	Payload *models.Error
}
PcloudTenantsSshkeysDeleteGone describes a response with status code 410, with default header values.

Gone

func NewPcloudTenantsSshkeysDeleteGone

func NewPcloudTenantsSshkeysDeleteGone() *PcloudTenantsSshkeysDeleteGone

NewPcloudTenantsSshkeysDeleteGone creates a PcloudTenantsSshkeysDeleteGone with default headers values

func (*PcloudTenantsSshkeysDeleteGone) Error

func (*PcloudTenantsSshkeysDeleteGone) GetPayload added in v1.1.0

func (o *PcloudTenantsSshkeysDeleteGone) GetPayload() *models.Error

type PcloudTenantsSshkeysDeleteInternalServerError

type PcloudTenantsSshkeysDeleteInternalServerError struct {
	Payload *models.Error
}
PcloudTenantsSshkeysDeleteInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudTenantsSshkeysDeleteInternalServerError

func NewPcloudTenantsSshkeysDeleteInternalServerError() *PcloudTenantsSshkeysDeleteInternalServerError

NewPcloudTenantsSshkeysDeleteInternalServerError creates a PcloudTenantsSshkeysDeleteInternalServerError with default headers values

func (*PcloudTenantsSshkeysDeleteInternalServerError) Error

func (*PcloudTenantsSshkeysDeleteInternalServerError) GetPayload added in v1.1.0

type PcloudTenantsSshkeysDeleteOK

type PcloudTenantsSshkeysDeleteOK struct {
	Payload models.Object
}
PcloudTenantsSshkeysDeleteOK describes a response with status code 200, with default header values.

OK

func NewPcloudTenantsSshkeysDeleteOK

func NewPcloudTenantsSshkeysDeleteOK() *PcloudTenantsSshkeysDeleteOK

NewPcloudTenantsSshkeysDeleteOK creates a PcloudTenantsSshkeysDeleteOK with default headers values

func (*PcloudTenantsSshkeysDeleteOK) Error

func (*PcloudTenantsSshkeysDeleteOK) GetPayload added in v1.1.0

func (o *PcloudTenantsSshkeysDeleteOK) GetPayload() models.Object

type PcloudTenantsSshkeysDeleteParams

type PcloudTenantsSshkeysDeleteParams struct {

	/* SshkeyName.

	   SSH key name for a pcloud tenant
	*/
	SshkeyName string

	/* TenantID.

	   Tenant ID of a pcloud tenant
	*/
	TenantID string

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

PcloudTenantsSshkeysDeleteParams contains all the parameters to send to the API endpoint

for the pcloud tenants sshkeys delete operation.

Typically these are written to a http.Request.

func NewPcloudTenantsSshkeysDeleteParams

func NewPcloudTenantsSshkeysDeleteParams() *PcloudTenantsSshkeysDeleteParams

NewPcloudTenantsSshkeysDeleteParams creates a new PcloudTenantsSshkeysDeleteParams 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 NewPcloudTenantsSshkeysDeleteParamsWithContext

func NewPcloudTenantsSshkeysDeleteParamsWithContext(ctx context.Context) *PcloudTenantsSshkeysDeleteParams

NewPcloudTenantsSshkeysDeleteParamsWithContext creates a new PcloudTenantsSshkeysDeleteParams object with the ability to set a context for a request.

func NewPcloudTenantsSshkeysDeleteParamsWithHTTPClient

func NewPcloudTenantsSshkeysDeleteParamsWithHTTPClient(client *http.Client) *PcloudTenantsSshkeysDeleteParams

NewPcloudTenantsSshkeysDeleteParamsWithHTTPClient creates a new PcloudTenantsSshkeysDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudTenantsSshkeysDeleteParamsWithTimeout

func NewPcloudTenantsSshkeysDeleteParamsWithTimeout(timeout time.Duration) *PcloudTenantsSshkeysDeleteParams

NewPcloudTenantsSshkeysDeleteParamsWithTimeout creates a new PcloudTenantsSshkeysDeleteParams object with the ability to set a timeout on a request.

func (*PcloudTenantsSshkeysDeleteParams) SetContext

SetContext adds the context to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) SetDefaults added in v1.1.0

func (o *PcloudTenantsSshkeysDeleteParams) SetDefaults()

SetDefaults hydrates default values in the pcloud tenants sshkeys delete params (not the query body).

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

func (*PcloudTenantsSshkeysDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) SetSshkeyName

func (o *PcloudTenantsSshkeysDeleteParams) SetSshkeyName(sshkeyName string)

SetSshkeyName adds the sshkeyName to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) SetTenantID

func (o *PcloudTenantsSshkeysDeleteParams) SetTenantID(tenantID string)

SetTenantID adds the tenantId to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) WithContext

WithContext adds the context to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the pcloud tenants sshkeys delete params (not the query body).

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

func (*PcloudTenantsSshkeysDeleteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) WithSshkeyName

WithSshkeyName adds the sshkeyName to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) WithTenantID

WithTenantID adds the tenantID to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) WithTimeout

WithTimeout adds the timeout to the pcloud tenants sshkeys delete params

func (*PcloudTenantsSshkeysDeleteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudTenantsSshkeysDeleteReader

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

PcloudTenantsSshkeysDeleteReader is a Reader for the PcloudTenantsSshkeysDelete structure.

func (*PcloudTenantsSshkeysDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudTenantsSshkeysDeleteUnauthorized added in v1.0.59

type PcloudTenantsSshkeysDeleteUnauthorized struct {
	Payload *models.Error
}
PcloudTenantsSshkeysDeleteUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudTenantsSshkeysDeleteUnauthorized added in v1.0.59

func NewPcloudTenantsSshkeysDeleteUnauthorized() *PcloudTenantsSshkeysDeleteUnauthorized

NewPcloudTenantsSshkeysDeleteUnauthorized creates a PcloudTenantsSshkeysDeleteUnauthorized with default headers values

func (*PcloudTenantsSshkeysDeleteUnauthorized) Error added in v1.0.59

func (*PcloudTenantsSshkeysDeleteUnauthorized) GetPayload added in v1.1.0

type PcloudTenantsSshkeysGetBadRequest

type PcloudTenantsSshkeysGetBadRequest struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudTenantsSshkeysGetBadRequest

func NewPcloudTenantsSshkeysGetBadRequest() *PcloudTenantsSshkeysGetBadRequest

NewPcloudTenantsSshkeysGetBadRequest creates a PcloudTenantsSshkeysGetBadRequest with default headers values

func (*PcloudTenantsSshkeysGetBadRequest) Error

func (*PcloudTenantsSshkeysGetBadRequest) GetPayload added in v1.1.0

type PcloudTenantsSshkeysGetInternalServerError

type PcloudTenantsSshkeysGetInternalServerError struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudTenantsSshkeysGetInternalServerError

func NewPcloudTenantsSshkeysGetInternalServerError() *PcloudTenantsSshkeysGetInternalServerError

NewPcloudTenantsSshkeysGetInternalServerError creates a PcloudTenantsSshkeysGetInternalServerError with default headers values

func (*PcloudTenantsSshkeysGetInternalServerError) Error

func (*PcloudTenantsSshkeysGetInternalServerError) GetPayload added in v1.1.0

type PcloudTenantsSshkeysGetNotFound

type PcloudTenantsSshkeysGetNotFound struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetNotFound describes a response with status code 404, with default header values.

Not Found

func NewPcloudTenantsSshkeysGetNotFound

func NewPcloudTenantsSshkeysGetNotFound() *PcloudTenantsSshkeysGetNotFound

NewPcloudTenantsSshkeysGetNotFound creates a PcloudTenantsSshkeysGetNotFound with default headers values

func (*PcloudTenantsSshkeysGetNotFound) Error

func (*PcloudTenantsSshkeysGetNotFound) GetPayload added in v1.1.0

func (o *PcloudTenantsSshkeysGetNotFound) GetPayload() *models.Error

type PcloudTenantsSshkeysGetOK

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

OK

func NewPcloudTenantsSshkeysGetOK

func NewPcloudTenantsSshkeysGetOK() *PcloudTenantsSshkeysGetOK

NewPcloudTenantsSshkeysGetOK creates a PcloudTenantsSshkeysGetOK with default headers values

func (*PcloudTenantsSshkeysGetOK) Error

func (o *PcloudTenantsSshkeysGetOK) Error() string

func (*PcloudTenantsSshkeysGetOK) GetPayload added in v1.1.0

func (o *PcloudTenantsSshkeysGetOK) GetPayload() *models.SSHKey

type PcloudTenantsSshkeysGetParams

type PcloudTenantsSshkeysGetParams struct {

	/* SshkeyName.

	   SSH key name for a pcloud tenant
	*/
	SshkeyName string

	/* TenantID.

	   Tenant ID of a pcloud tenant
	*/
	TenantID string

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

PcloudTenantsSshkeysGetParams contains all the parameters to send to the API endpoint

for the pcloud tenants sshkeys get operation.

Typically these are written to a http.Request.

func NewPcloudTenantsSshkeysGetParams

func NewPcloudTenantsSshkeysGetParams() *PcloudTenantsSshkeysGetParams

NewPcloudTenantsSshkeysGetParams creates a new PcloudTenantsSshkeysGetParams 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 NewPcloudTenantsSshkeysGetParamsWithContext

func NewPcloudTenantsSshkeysGetParamsWithContext(ctx context.Context) *PcloudTenantsSshkeysGetParams

NewPcloudTenantsSshkeysGetParamsWithContext creates a new PcloudTenantsSshkeysGetParams object with the ability to set a context for a request.

func NewPcloudTenantsSshkeysGetParamsWithHTTPClient

func NewPcloudTenantsSshkeysGetParamsWithHTTPClient(client *http.Client) *PcloudTenantsSshkeysGetParams

NewPcloudTenantsSshkeysGetParamsWithHTTPClient creates a new PcloudTenantsSshkeysGetParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudTenantsSshkeysGetParamsWithTimeout

func NewPcloudTenantsSshkeysGetParamsWithTimeout(timeout time.Duration) *PcloudTenantsSshkeysGetParams

NewPcloudTenantsSshkeysGetParamsWithTimeout creates a new PcloudTenantsSshkeysGetParams object with the ability to set a timeout on a request.

func (*PcloudTenantsSshkeysGetParams) SetContext

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

SetContext adds the context to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) SetDefaults added in v1.1.0

func (o *PcloudTenantsSshkeysGetParams) SetDefaults()

SetDefaults hydrates default values in the pcloud tenants sshkeys get params (not the query body).

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

func (*PcloudTenantsSshkeysGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) SetSshkeyName

func (o *PcloudTenantsSshkeysGetParams) SetSshkeyName(sshkeyName string)

SetSshkeyName adds the sshkeyName to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) SetTenantID

func (o *PcloudTenantsSshkeysGetParams) SetTenantID(tenantID string)

SetTenantID adds the tenantId to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) WithContext

WithContext adds the context to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the pcloud tenants sshkeys get params (not the query body).

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

func (*PcloudTenantsSshkeysGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) WithSshkeyName

WithSshkeyName adds the sshkeyName to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) WithTenantID

WithTenantID adds the tenantID to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) WithTimeout

WithTimeout adds the timeout to the pcloud tenants sshkeys get params

func (*PcloudTenantsSshkeysGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudTenantsSshkeysGetReader

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

PcloudTenantsSshkeysGetReader is a Reader for the PcloudTenantsSshkeysGet structure.

func (*PcloudTenantsSshkeysGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudTenantsSshkeysGetUnauthorized added in v1.0.59

type PcloudTenantsSshkeysGetUnauthorized struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudTenantsSshkeysGetUnauthorized added in v1.0.59

func NewPcloudTenantsSshkeysGetUnauthorized() *PcloudTenantsSshkeysGetUnauthorized

NewPcloudTenantsSshkeysGetUnauthorized creates a PcloudTenantsSshkeysGetUnauthorized with default headers values

func (*PcloudTenantsSshkeysGetUnauthorized) Error added in v1.0.59

func (*PcloudTenantsSshkeysGetUnauthorized) GetPayload added in v1.1.0

type PcloudTenantsSshkeysGetallBadRequest

type PcloudTenantsSshkeysGetallBadRequest struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetallBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudTenantsSshkeysGetallBadRequest

func NewPcloudTenantsSshkeysGetallBadRequest() *PcloudTenantsSshkeysGetallBadRequest

NewPcloudTenantsSshkeysGetallBadRequest creates a PcloudTenantsSshkeysGetallBadRequest with default headers values

func (*PcloudTenantsSshkeysGetallBadRequest) Error

func (*PcloudTenantsSshkeysGetallBadRequest) GetPayload added in v1.1.0

type PcloudTenantsSshkeysGetallInternalServerError

type PcloudTenantsSshkeysGetallInternalServerError struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetallInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudTenantsSshkeysGetallInternalServerError

func NewPcloudTenantsSshkeysGetallInternalServerError() *PcloudTenantsSshkeysGetallInternalServerError

NewPcloudTenantsSshkeysGetallInternalServerError creates a PcloudTenantsSshkeysGetallInternalServerError with default headers values

func (*PcloudTenantsSshkeysGetallInternalServerError) Error

func (*PcloudTenantsSshkeysGetallInternalServerError) GetPayload added in v1.1.0

type PcloudTenantsSshkeysGetallNotFound

type PcloudTenantsSshkeysGetallNotFound struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetallNotFound describes a response with status code 404, with default header values.

Not Found

func NewPcloudTenantsSshkeysGetallNotFound

func NewPcloudTenantsSshkeysGetallNotFound() *PcloudTenantsSshkeysGetallNotFound

NewPcloudTenantsSshkeysGetallNotFound creates a PcloudTenantsSshkeysGetallNotFound with default headers values

func (*PcloudTenantsSshkeysGetallNotFound) Error

func (*PcloudTenantsSshkeysGetallNotFound) GetPayload added in v1.1.0

type PcloudTenantsSshkeysGetallOK

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

OK

func NewPcloudTenantsSshkeysGetallOK

func NewPcloudTenantsSshkeysGetallOK() *PcloudTenantsSshkeysGetallOK

NewPcloudTenantsSshkeysGetallOK creates a PcloudTenantsSshkeysGetallOK with default headers values

func (*PcloudTenantsSshkeysGetallOK) Error

func (*PcloudTenantsSshkeysGetallOK) GetPayload added in v1.1.0

func (o *PcloudTenantsSshkeysGetallOK) GetPayload() *models.SSHKeys

type PcloudTenantsSshkeysGetallParams

type PcloudTenantsSshkeysGetallParams struct {

	/* TenantID.

	   Tenant ID of a pcloud tenant
	*/
	TenantID string

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

PcloudTenantsSshkeysGetallParams contains all the parameters to send to the API endpoint

for the pcloud tenants sshkeys getall operation.

Typically these are written to a http.Request.

func NewPcloudTenantsSshkeysGetallParams

func NewPcloudTenantsSshkeysGetallParams() *PcloudTenantsSshkeysGetallParams

NewPcloudTenantsSshkeysGetallParams creates a new PcloudTenantsSshkeysGetallParams 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 NewPcloudTenantsSshkeysGetallParamsWithContext

func NewPcloudTenantsSshkeysGetallParamsWithContext(ctx context.Context) *PcloudTenantsSshkeysGetallParams

NewPcloudTenantsSshkeysGetallParamsWithContext creates a new PcloudTenantsSshkeysGetallParams object with the ability to set a context for a request.

func NewPcloudTenantsSshkeysGetallParamsWithHTTPClient

func NewPcloudTenantsSshkeysGetallParamsWithHTTPClient(client *http.Client) *PcloudTenantsSshkeysGetallParams

NewPcloudTenantsSshkeysGetallParamsWithHTTPClient creates a new PcloudTenantsSshkeysGetallParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudTenantsSshkeysGetallParamsWithTimeout

func NewPcloudTenantsSshkeysGetallParamsWithTimeout(timeout time.Duration) *PcloudTenantsSshkeysGetallParams

NewPcloudTenantsSshkeysGetallParamsWithTimeout creates a new PcloudTenantsSshkeysGetallParams object with the ability to set a timeout on a request.

func (*PcloudTenantsSshkeysGetallParams) SetContext

SetContext adds the context to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) SetDefaults added in v1.1.0

func (o *PcloudTenantsSshkeysGetallParams) SetDefaults()

SetDefaults hydrates default values in the pcloud tenants sshkeys getall params (not the query body).

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

func (*PcloudTenantsSshkeysGetallParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) SetTenantID

func (o *PcloudTenantsSshkeysGetallParams) SetTenantID(tenantID string)

SetTenantID adds the tenantId to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) WithContext

WithContext adds the context to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the pcloud tenants sshkeys getall params (not the query body).

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

func (*PcloudTenantsSshkeysGetallParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) WithTenantID

WithTenantID adds the tenantID to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) WithTimeout

WithTimeout adds the timeout to the pcloud tenants sshkeys getall params

func (*PcloudTenantsSshkeysGetallParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudTenantsSshkeysGetallReader

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

PcloudTenantsSshkeysGetallReader is a Reader for the PcloudTenantsSshkeysGetall structure.

func (*PcloudTenantsSshkeysGetallReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudTenantsSshkeysGetallUnauthorized added in v1.0.59

type PcloudTenantsSshkeysGetallUnauthorized struct {
	Payload *models.Error
}
PcloudTenantsSshkeysGetallUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudTenantsSshkeysGetallUnauthorized added in v1.0.59

func NewPcloudTenantsSshkeysGetallUnauthorized() *PcloudTenantsSshkeysGetallUnauthorized

NewPcloudTenantsSshkeysGetallUnauthorized creates a PcloudTenantsSshkeysGetallUnauthorized with default headers values

func (*PcloudTenantsSshkeysGetallUnauthorized) Error added in v1.0.59

func (*PcloudTenantsSshkeysGetallUnauthorized) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPostBadRequest

type PcloudTenantsSshkeysPostBadRequest struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPostBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudTenantsSshkeysPostBadRequest

func NewPcloudTenantsSshkeysPostBadRequest() *PcloudTenantsSshkeysPostBadRequest

NewPcloudTenantsSshkeysPostBadRequest creates a PcloudTenantsSshkeysPostBadRequest with default headers values

func (*PcloudTenantsSshkeysPostBadRequest) Error

func (*PcloudTenantsSshkeysPostBadRequest) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPostConflict

type PcloudTenantsSshkeysPostConflict struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPostConflict describes a response with status code 409, with default header values.

Conflict

func NewPcloudTenantsSshkeysPostConflict

func NewPcloudTenantsSshkeysPostConflict() *PcloudTenantsSshkeysPostConflict

NewPcloudTenantsSshkeysPostConflict creates a PcloudTenantsSshkeysPostConflict with default headers values

func (*PcloudTenantsSshkeysPostConflict) Error

func (*PcloudTenantsSshkeysPostConflict) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPostCreated

type PcloudTenantsSshkeysPostCreated struct {
	Payload *models.SSHKey
}
PcloudTenantsSshkeysPostCreated describes a response with status code 201, with default header values.

Created

func NewPcloudTenantsSshkeysPostCreated

func NewPcloudTenantsSshkeysPostCreated() *PcloudTenantsSshkeysPostCreated

NewPcloudTenantsSshkeysPostCreated creates a PcloudTenantsSshkeysPostCreated with default headers values

func (*PcloudTenantsSshkeysPostCreated) Error

func (*PcloudTenantsSshkeysPostCreated) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPostInternalServerError

type PcloudTenantsSshkeysPostInternalServerError struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPostInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudTenantsSshkeysPostInternalServerError

func NewPcloudTenantsSshkeysPostInternalServerError() *PcloudTenantsSshkeysPostInternalServerError

NewPcloudTenantsSshkeysPostInternalServerError creates a PcloudTenantsSshkeysPostInternalServerError with default headers values

func (*PcloudTenantsSshkeysPostInternalServerError) Error

func (*PcloudTenantsSshkeysPostInternalServerError) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPostOK

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

OK

func NewPcloudTenantsSshkeysPostOK

func NewPcloudTenantsSshkeysPostOK() *PcloudTenantsSshkeysPostOK

NewPcloudTenantsSshkeysPostOK creates a PcloudTenantsSshkeysPostOK with default headers values

func (*PcloudTenantsSshkeysPostOK) Error

func (*PcloudTenantsSshkeysPostOK) GetPayload added in v1.1.0

func (o *PcloudTenantsSshkeysPostOK) GetPayload() *models.SSHKey

type PcloudTenantsSshkeysPostParams

type PcloudTenantsSshkeysPostParams struct {

	/* Body.

	   Parameters for the creation of a new SSH key
	*/
	Body *models.SSHKey

	/* TenantID.

	   Tenant ID of a pcloud tenant
	*/
	TenantID string

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

PcloudTenantsSshkeysPostParams contains all the parameters to send to the API endpoint

for the pcloud tenants sshkeys post operation.

Typically these are written to a http.Request.

func NewPcloudTenantsSshkeysPostParams

func NewPcloudTenantsSshkeysPostParams() *PcloudTenantsSshkeysPostParams

NewPcloudTenantsSshkeysPostParams creates a new PcloudTenantsSshkeysPostParams 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 NewPcloudTenantsSshkeysPostParamsWithContext

func NewPcloudTenantsSshkeysPostParamsWithContext(ctx context.Context) *PcloudTenantsSshkeysPostParams

NewPcloudTenantsSshkeysPostParamsWithContext creates a new PcloudTenantsSshkeysPostParams object with the ability to set a context for a request.

func NewPcloudTenantsSshkeysPostParamsWithHTTPClient

func NewPcloudTenantsSshkeysPostParamsWithHTTPClient(client *http.Client) *PcloudTenantsSshkeysPostParams

NewPcloudTenantsSshkeysPostParamsWithHTTPClient creates a new PcloudTenantsSshkeysPostParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudTenantsSshkeysPostParamsWithTimeout

func NewPcloudTenantsSshkeysPostParamsWithTimeout(timeout time.Duration) *PcloudTenantsSshkeysPostParams

NewPcloudTenantsSshkeysPostParamsWithTimeout creates a new PcloudTenantsSshkeysPostParams object with the ability to set a timeout on a request.

func (*PcloudTenantsSshkeysPostParams) SetBody

func (o *PcloudTenantsSshkeysPostParams) SetBody(body *models.SSHKey)

SetBody adds the body to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) SetContext

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

SetContext adds the context to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) SetDefaults added in v1.1.0

func (o *PcloudTenantsSshkeysPostParams) SetDefaults()

SetDefaults hydrates default values in the pcloud tenants sshkeys post params (not the query body).

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

func (*PcloudTenantsSshkeysPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) SetTenantID

func (o *PcloudTenantsSshkeysPostParams) SetTenantID(tenantID string)

SetTenantID adds the tenantId to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) WithBody

WithBody adds the body to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) WithContext

WithContext adds the context to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the pcloud tenants sshkeys post params (not the query body).

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

func (*PcloudTenantsSshkeysPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) WithTenantID

WithTenantID adds the tenantID to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) WithTimeout

WithTimeout adds the timeout to the pcloud tenants sshkeys post params

func (*PcloudTenantsSshkeysPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudTenantsSshkeysPostReader

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

PcloudTenantsSshkeysPostReader is a Reader for the PcloudTenantsSshkeysPost structure.

func (*PcloudTenantsSshkeysPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudTenantsSshkeysPostUnauthorized added in v1.0.59

type PcloudTenantsSshkeysPostUnauthorized struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPostUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudTenantsSshkeysPostUnauthorized added in v1.0.59

func NewPcloudTenantsSshkeysPostUnauthorized() *PcloudTenantsSshkeysPostUnauthorized

NewPcloudTenantsSshkeysPostUnauthorized creates a PcloudTenantsSshkeysPostUnauthorized with default headers values

func (*PcloudTenantsSshkeysPostUnauthorized) Error added in v1.0.59

func (*PcloudTenantsSshkeysPostUnauthorized) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPostUnprocessableEntity

type PcloudTenantsSshkeysPostUnprocessableEntity struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPostUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Entity

func NewPcloudTenantsSshkeysPostUnprocessableEntity

func NewPcloudTenantsSshkeysPostUnprocessableEntity() *PcloudTenantsSshkeysPostUnprocessableEntity

NewPcloudTenantsSshkeysPostUnprocessableEntity creates a PcloudTenantsSshkeysPostUnprocessableEntity with default headers values

func (*PcloudTenantsSshkeysPostUnprocessableEntity) Error

func (*PcloudTenantsSshkeysPostUnprocessableEntity) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPutBadRequest

type PcloudTenantsSshkeysPutBadRequest struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPutBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPcloudTenantsSshkeysPutBadRequest

func NewPcloudTenantsSshkeysPutBadRequest() *PcloudTenantsSshkeysPutBadRequest

NewPcloudTenantsSshkeysPutBadRequest creates a PcloudTenantsSshkeysPutBadRequest with default headers values

func (*PcloudTenantsSshkeysPutBadRequest) Error

func (*PcloudTenantsSshkeysPutBadRequest) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPutInternalServerError

type PcloudTenantsSshkeysPutInternalServerError struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPutInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPcloudTenantsSshkeysPutInternalServerError

func NewPcloudTenantsSshkeysPutInternalServerError() *PcloudTenantsSshkeysPutInternalServerError

NewPcloudTenantsSshkeysPutInternalServerError creates a PcloudTenantsSshkeysPutInternalServerError with default headers values

func (*PcloudTenantsSshkeysPutInternalServerError) Error

func (*PcloudTenantsSshkeysPutInternalServerError) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPutOK

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

OK

func NewPcloudTenantsSshkeysPutOK

func NewPcloudTenantsSshkeysPutOK() *PcloudTenantsSshkeysPutOK

NewPcloudTenantsSshkeysPutOK creates a PcloudTenantsSshkeysPutOK with default headers values

func (*PcloudTenantsSshkeysPutOK) Error

func (o *PcloudTenantsSshkeysPutOK) Error() string

func (*PcloudTenantsSshkeysPutOK) GetPayload added in v1.1.0

func (o *PcloudTenantsSshkeysPutOK) GetPayload() *models.SSHKey

type PcloudTenantsSshkeysPutParams

type PcloudTenantsSshkeysPutParams struct {

	/* Body.

	   Parameters for updating a Tenant's SSH Key
	*/
	Body *models.SSHKey

	/* SshkeyName.

	   SSH key name for a pcloud tenant
	*/
	SshkeyName string

	/* TenantID.

	   Tenant ID of a pcloud tenant
	*/
	TenantID string

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

PcloudTenantsSshkeysPutParams contains all the parameters to send to the API endpoint

for the pcloud tenants sshkeys put operation.

Typically these are written to a http.Request.

func NewPcloudTenantsSshkeysPutParams

func NewPcloudTenantsSshkeysPutParams() *PcloudTenantsSshkeysPutParams

NewPcloudTenantsSshkeysPutParams creates a new PcloudTenantsSshkeysPutParams 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 NewPcloudTenantsSshkeysPutParamsWithContext

func NewPcloudTenantsSshkeysPutParamsWithContext(ctx context.Context) *PcloudTenantsSshkeysPutParams

NewPcloudTenantsSshkeysPutParamsWithContext creates a new PcloudTenantsSshkeysPutParams object with the ability to set a context for a request.

func NewPcloudTenantsSshkeysPutParamsWithHTTPClient

func NewPcloudTenantsSshkeysPutParamsWithHTTPClient(client *http.Client) *PcloudTenantsSshkeysPutParams

NewPcloudTenantsSshkeysPutParamsWithHTTPClient creates a new PcloudTenantsSshkeysPutParams object with the ability to set a custom HTTPClient for a request.

func NewPcloudTenantsSshkeysPutParamsWithTimeout

func NewPcloudTenantsSshkeysPutParamsWithTimeout(timeout time.Duration) *PcloudTenantsSshkeysPutParams

NewPcloudTenantsSshkeysPutParamsWithTimeout creates a new PcloudTenantsSshkeysPutParams object with the ability to set a timeout on a request.

func (*PcloudTenantsSshkeysPutParams) SetBody

func (o *PcloudTenantsSshkeysPutParams) SetBody(body *models.SSHKey)

SetBody adds the body to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) SetContext

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

SetContext adds the context to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) SetDefaults added in v1.1.0

func (o *PcloudTenantsSshkeysPutParams) SetDefaults()

SetDefaults hydrates default values in the pcloud tenants sshkeys put params (not the query body).

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

func (*PcloudTenantsSshkeysPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) SetSshkeyName

func (o *PcloudTenantsSshkeysPutParams) SetSshkeyName(sshkeyName string)

SetSshkeyName adds the sshkeyName to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) SetTenantID

func (o *PcloudTenantsSshkeysPutParams) SetTenantID(tenantID string)

SetTenantID adds the tenantId to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) SetTimeout

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

SetTimeout adds the timeout to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) WithBody

WithBody adds the body to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) WithContext

WithContext adds the context to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the pcloud tenants sshkeys put params (not the query body).

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

func (*PcloudTenantsSshkeysPutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) WithSshkeyName

WithSshkeyName adds the sshkeyName to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) WithTenantID

WithTenantID adds the tenantID to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) WithTimeout

WithTimeout adds the timeout to the pcloud tenants sshkeys put params

func (*PcloudTenantsSshkeysPutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PcloudTenantsSshkeysPutReader

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

PcloudTenantsSshkeysPutReader is a Reader for the PcloudTenantsSshkeysPut structure.

func (*PcloudTenantsSshkeysPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PcloudTenantsSshkeysPutUnauthorized added in v1.0.59

type PcloudTenantsSshkeysPutUnauthorized struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPutUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPcloudTenantsSshkeysPutUnauthorized added in v1.0.59

func NewPcloudTenantsSshkeysPutUnauthorized() *PcloudTenantsSshkeysPutUnauthorized

NewPcloudTenantsSshkeysPutUnauthorized creates a PcloudTenantsSshkeysPutUnauthorized with default headers values

func (*PcloudTenantsSshkeysPutUnauthorized) Error added in v1.0.59

func (*PcloudTenantsSshkeysPutUnauthorized) GetPayload added in v1.1.0

type PcloudTenantsSshkeysPutUnprocessableEntity

type PcloudTenantsSshkeysPutUnprocessableEntity struct {
	Payload *models.Error
}
PcloudTenantsSshkeysPutUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable Entity

func NewPcloudTenantsSshkeysPutUnprocessableEntity

func NewPcloudTenantsSshkeysPutUnprocessableEntity() *PcloudTenantsSshkeysPutUnprocessableEntity

NewPcloudTenantsSshkeysPutUnprocessableEntity creates a PcloudTenantsSshkeysPutUnprocessableEntity with default headers values

func (*PcloudTenantsSshkeysPutUnprocessableEntity) Error

func (*PcloudTenantsSshkeysPutUnprocessableEntity) GetPayload added in v1.1.0

Jump to

Keyboard shortcuts

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