platform

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 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 platform API

func (*Client) DeleteExtraCertificate

func (a *Client) DeleteExtraCertificate(params *DeleteExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteExtraCertificateOK, error)

DeleteExtraCertificate deletes extra certificate

Delete an extra certificate.

func (*Client) GetExtraCertificate

func (a *Client) GetExtraCertificate(params *GetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtraCertificateOK, error)

GetExtraCertificate reads extra certificate

Read an extra certificate.

func (*Client) GetExtraCertificates

func (a *Client) GetExtraCertificates(params *GetExtraCertificatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtraCertificatesOK, error)

GetExtraCertificates lists extra certificates

List all of the extra certificates.

func (*Client) GetPlatform

func (a *Client) GetPlatform(params *GetPlatformParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlatformOK, error)

GetPlatform gets platform info

Retrieves information about the active platform.

func (*Client) SetExtraCertificate

func (a *Client) SetExtraCertificate(params *SetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetExtraCertificateOK, error)

SetExtraCertificate updates extra certificate

Add or update an extra certificate.

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 {
	DeleteExtraCertificate(params *DeleteExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteExtraCertificateOK, error)

	GetExtraCertificate(params *GetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtraCertificateOK, error)

	GetExtraCertificates(params *GetExtraCertificatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetExtraCertificatesOK, error)

	GetPlatform(params *GetPlatformParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPlatformOK, error)

	SetExtraCertificate(params *SetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetExtraCertificateOK, 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 platform API client.

type DeleteExtraCertificateNotFound

type DeleteExtraCertificateNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteExtraCertificateNotFound describes a response with status code 404, with default header values.

The extra certificate cannot be found. (code: `cert.not_found`)

func NewDeleteExtraCertificateNotFound

func NewDeleteExtraCertificateNotFound() *DeleteExtraCertificateNotFound

NewDeleteExtraCertificateNotFound creates a DeleteExtraCertificateNotFound with default headers values

func (*DeleteExtraCertificateNotFound) Code

Code gets the status code for the delete extra certificate not found response

func (*DeleteExtraCertificateNotFound) Error

func (*DeleteExtraCertificateNotFound) GetPayload

func (*DeleteExtraCertificateNotFound) IsClientError

func (o *DeleteExtraCertificateNotFound) IsClientError() bool

IsClientError returns true when this delete extra certificate not found response has a 4xx status code

func (*DeleteExtraCertificateNotFound) IsCode

func (o *DeleteExtraCertificateNotFound) IsCode(code int) bool

IsCode returns true when this delete extra certificate not found response a status code equal to that given

func (*DeleteExtraCertificateNotFound) IsRedirect

func (o *DeleteExtraCertificateNotFound) IsRedirect() bool

IsRedirect returns true when this delete extra certificate not found response has a 3xx status code

func (*DeleteExtraCertificateNotFound) IsServerError

func (o *DeleteExtraCertificateNotFound) IsServerError() bool

IsServerError returns true when this delete extra certificate not found response has a 5xx status code

func (*DeleteExtraCertificateNotFound) IsSuccess

func (o *DeleteExtraCertificateNotFound) IsSuccess() bool

IsSuccess returns true when this delete extra certificate not found response has a 2xx status code

func (*DeleteExtraCertificateNotFound) String

type DeleteExtraCertificateOK

type DeleteExtraCertificateOK struct {
	Payload models.EmptyResponse
}

DeleteExtraCertificateOK describes a response with status code 200, with default header values.

Extra certificate under the given id is deleted if exists

func NewDeleteExtraCertificateOK

func NewDeleteExtraCertificateOK() *DeleteExtraCertificateOK

NewDeleteExtraCertificateOK creates a DeleteExtraCertificateOK with default headers values

func (*DeleteExtraCertificateOK) Code

func (o *DeleteExtraCertificateOK) Code() int

Code gets the status code for the delete extra certificate o k response

func (*DeleteExtraCertificateOK) Error

func (o *DeleteExtraCertificateOK) Error() string

func (*DeleteExtraCertificateOK) GetPayload

func (*DeleteExtraCertificateOK) IsClientError

func (o *DeleteExtraCertificateOK) IsClientError() bool

IsClientError returns true when this delete extra certificate o k response has a 4xx status code

func (*DeleteExtraCertificateOK) IsCode

func (o *DeleteExtraCertificateOK) IsCode(code int) bool

IsCode returns true when this delete extra certificate o k response a status code equal to that given

func (*DeleteExtraCertificateOK) IsRedirect

func (o *DeleteExtraCertificateOK) IsRedirect() bool

IsRedirect returns true when this delete extra certificate o k response has a 3xx status code

func (*DeleteExtraCertificateOK) IsServerError

func (o *DeleteExtraCertificateOK) IsServerError() bool

IsServerError returns true when this delete extra certificate o k response has a 5xx status code

func (*DeleteExtraCertificateOK) IsSuccess

func (o *DeleteExtraCertificateOK) IsSuccess() bool

IsSuccess returns true when this delete extra certificate o k response has a 2xx status code

func (*DeleteExtraCertificateOK) String

func (o *DeleteExtraCertificateOK) String() string

type DeleteExtraCertificateParams

type DeleteExtraCertificateParams struct {

	/* CertID.

	   The extra certificate Id. For example, `star_my_domain_com`.
	*/
	CertID string

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

DeleteExtraCertificateParams contains all the parameters to send to the API endpoint

for the delete extra certificate operation.

Typically these are written to a http.Request.

func NewDeleteExtraCertificateParams

func NewDeleteExtraCertificateParams() *DeleteExtraCertificateParams

NewDeleteExtraCertificateParams creates a new DeleteExtraCertificateParams 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 NewDeleteExtraCertificateParamsWithContext

func NewDeleteExtraCertificateParamsWithContext(ctx context.Context) *DeleteExtraCertificateParams

NewDeleteExtraCertificateParamsWithContext creates a new DeleteExtraCertificateParams object with the ability to set a context for a request.

func NewDeleteExtraCertificateParamsWithHTTPClient

func NewDeleteExtraCertificateParamsWithHTTPClient(client *http.Client) *DeleteExtraCertificateParams

NewDeleteExtraCertificateParamsWithHTTPClient creates a new DeleteExtraCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteExtraCertificateParamsWithTimeout

func NewDeleteExtraCertificateParamsWithTimeout(timeout time.Duration) *DeleteExtraCertificateParams

NewDeleteExtraCertificateParamsWithTimeout creates a new DeleteExtraCertificateParams object with the ability to set a timeout on a request.

func (*DeleteExtraCertificateParams) SetCertID

func (o *DeleteExtraCertificateParams) SetCertID(certID string)

SetCertID adds the certId to the delete extra certificate params

func (*DeleteExtraCertificateParams) SetContext

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

SetContext adds the context to the delete extra certificate params

func (*DeleteExtraCertificateParams) SetDefaults

func (o *DeleteExtraCertificateParams) SetDefaults()

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

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

func (*DeleteExtraCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete extra certificate params

func (*DeleteExtraCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithCertID

WithCertID adds the certID to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithContext

WithContext adds the context to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithDefaults

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

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

func (*DeleteExtraCertificateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithTimeout

WithTimeout adds the timeout to the delete extra certificate params

func (*DeleteExtraCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteExtraCertificateReader

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

DeleteExtraCertificateReader is a Reader for the DeleteExtraCertificate structure.

func (*DeleteExtraCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetExtraCertificateNotFound

type GetExtraCertificateNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetExtraCertificateNotFound describes a response with status code 404, with default header values.

The extra certificate cannot be found. (code: `cert.not_found`)

func NewGetExtraCertificateNotFound

func NewGetExtraCertificateNotFound() *GetExtraCertificateNotFound

NewGetExtraCertificateNotFound creates a GetExtraCertificateNotFound with default headers values

func (*GetExtraCertificateNotFound) Code

func (o *GetExtraCertificateNotFound) Code() int

Code gets the status code for the get extra certificate not found response

func (*GetExtraCertificateNotFound) Error

func (*GetExtraCertificateNotFound) GetPayload

func (*GetExtraCertificateNotFound) IsClientError

func (o *GetExtraCertificateNotFound) IsClientError() bool

IsClientError returns true when this get extra certificate not found response has a 4xx status code

func (*GetExtraCertificateNotFound) IsCode

func (o *GetExtraCertificateNotFound) IsCode(code int) bool

IsCode returns true when this get extra certificate not found response a status code equal to that given

func (*GetExtraCertificateNotFound) IsRedirect

func (o *GetExtraCertificateNotFound) IsRedirect() bool

IsRedirect returns true when this get extra certificate not found response has a 3xx status code

func (*GetExtraCertificateNotFound) IsServerError

func (o *GetExtraCertificateNotFound) IsServerError() bool

IsServerError returns true when this get extra certificate not found response has a 5xx status code

func (*GetExtraCertificateNotFound) IsSuccess

func (o *GetExtraCertificateNotFound) IsSuccess() bool

IsSuccess returns true when this get extra certificate not found response has a 2xx status code

func (*GetExtraCertificateNotFound) String

func (o *GetExtraCertificateNotFound) String() string

type GetExtraCertificateOK

type GetExtraCertificateOK struct {
	Payload *models.PublicCertChain
}

GetExtraCertificateOK describes a response with status code 200, with default header values.

Extra certificate public chain if exists

func NewGetExtraCertificateOK

func NewGetExtraCertificateOK() *GetExtraCertificateOK

NewGetExtraCertificateOK creates a GetExtraCertificateOK with default headers values

func (*GetExtraCertificateOK) Code

func (o *GetExtraCertificateOK) Code() int

Code gets the status code for the get extra certificate o k response

func (*GetExtraCertificateOK) Error

func (o *GetExtraCertificateOK) Error() string

func (*GetExtraCertificateOK) GetPayload

func (o *GetExtraCertificateOK) GetPayload() *models.PublicCertChain

func (*GetExtraCertificateOK) IsClientError

func (o *GetExtraCertificateOK) IsClientError() bool

IsClientError returns true when this get extra certificate o k response has a 4xx status code

func (*GetExtraCertificateOK) IsCode

func (o *GetExtraCertificateOK) IsCode(code int) bool

IsCode returns true when this get extra certificate o k response a status code equal to that given

func (*GetExtraCertificateOK) IsRedirect

func (o *GetExtraCertificateOK) IsRedirect() bool

IsRedirect returns true when this get extra certificate o k response has a 3xx status code

func (*GetExtraCertificateOK) IsServerError

func (o *GetExtraCertificateOK) IsServerError() bool

IsServerError returns true when this get extra certificate o k response has a 5xx status code

func (*GetExtraCertificateOK) IsSuccess

func (o *GetExtraCertificateOK) IsSuccess() bool

IsSuccess returns true when this get extra certificate o k response has a 2xx status code

func (*GetExtraCertificateOK) String

func (o *GetExtraCertificateOK) String() string

type GetExtraCertificateParams

type GetExtraCertificateParams struct {

	/* CertID.

	   The extra certificate Id. For example, `star_my_domain_com`.
	*/
	CertID string

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

GetExtraCertificateParams contains all the parameters to send to the API endpoint

for the get extra certificate operation.

Typically these are written to a http.Request.

func NewGetExtraCertificateParams

func NewGetExtraCertificateParams() *GetExtraCertificateParams

NewGetExtraCertificateParams creates a new GetExtraCertificateParams 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 NewGetExtraCertificateParamsWithContext

func NewGetExtraCertificateParamsWithContext(ctx context.Context) *GetExtraCertificateParams

NewGetExtraCertificateParamsWithContext creates a new GetExtraCertificateParams object with the ability to set a context for a request.

func NewGetExtraCertificateParamsWithHTTPClient

func NewGetExtraCertificateParamsWithHTTPClient(client *http.Client) *GetExtraCertificateParams

NewGetExtraCertificateParamsWithHTTPClient creates a new GetExtraCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewGetExtraCertificateParamsWithTimeout

func NewGetExtraCertificateParamsWithTimeout(timeout time.Duration) *GetExtraCertificateParams

NewGetExtraCertificateParamsWithTimeout creates a new GetExtraCertificateParams object with the ability to set a timeout on a request.

func (*GetExtraCertificateParams) SetCertID

func (o *GetExtraCertificateParams) SetCertID(certID string)

SetCertID adds the certId to the get extra certificate params

func (*GetExtraCertificateParams) SetContext

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

SetContext adds the context to the get extra certificate params

func (*GetExtraCertificateParams) SetDefaults

func (o *GetExtraCertificateParams) SetDefaults()

SetDefaults hydrates default values in the get extra certificate params (not the query body).

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

func (*GetExtraCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get extra certificate params

func (*GetExtraCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the get extra certificate params

func (*GetExtraCertificateParams) WithCertID

WithCertID adds the certID to the get extra certificate params

func (*GetExtraCertificateParams) WithContext

WithContext adds the context to the get extra certificate params

func (*GetExtraCertificateParams) WithDefaults

WithDefaults hydrates default values in the get extra certificate params (not the query body).

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

func (*GetExtraCertificateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get extra certificate params

func (*GetExtraCertificateParams) WithTimeout

WithTimeout adds the timeout to the get extra certificate params

func (*GetExtraCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetExtraCertificateReader

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

GetExtraCertificateReader is a Reader for the GetExtraCertificate structure.

func (*GetExtraCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetExtraCertificatesOK

type GetExtraCertificatesOK struct {
	Payload *models.PublicCertChainCollection
}

GetExtraCertificatesOK describes a response with status code 200, with default header values.

The collection of all available extra certificates public chains

func NewGetExtraCertificatesOK

func NewGetExtraCertificatesOK() *GetExtraCertificatesOK

NewGetExtraCertificatesOK creates a GetExtraCertificatesOK with default headers values

func (*GetExtraCertificatesOK) Code

func (o *GetExtraCertificatesOK) Code() int

Code gets the status code for the get extra certificates o k response

func (*GetExtraCertificatesOK) Error

func (o *GetExtraCertificatesOK) Error() string

func (*GetExtraCertificatesOK) GetPayload

func (*GetExtraCertificatesOK) IsClientError

func (o *GetExtraCertificatesOK) IsClientError() bool

IsClientError returns true when this get extra certificates o k response has a 4xx status code

func (*GetExtraCertificatesOK) IsCode

func (o *GetExtraCertificatesOK) IsCode(code int) bool

IsCode returns true when this get extra certificates o k response a status code equal to that given

func (*GetExtraCertificatesOK) IsRedirect

func (o *GetExtraCertificatesOK) IsRedirect() bool

IsRedirect returns true when this get extra certificates o k response has a 3xx status code

func (*GetExtraCertificatesOK) IsServerError

func (o *GetExtraCertificatesOK) IsServerError() bool

IsServerError returns true when this get extra certificates o k response has a 5xx status code

func (*GetExtraCertificatesOK) IsSuccess

func (o *GetExtraCertificatesOK) IsSuccess() bool

IsSuccess returns true when this get extra certificates o k response has a 2xx status code

func (*GetExtraCertificatesOK) String

func (o *GetExtraCertificatesOK) String() string

type GetExtraCertificatesParams

type GetExtraCertificatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetExtraCertificatesParams contains all the parameters to send to the API endpoint

for the get extra certificates operation.

Typically these are written to a http.Request.

func NewGetExtraCertificatesParams

func NewGetExtraCertificatesParams() *GetExtraCertificatesParams

NewGetExtraCertificatesParams creates a new GetExtraCertificatesParams 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 NewGetExtraCertificatesParamsWithContext

func NewGetExtraCertificatesParamsWithContext(ctx context.Context) *GetExtraCertificatesParams

NewGetExtraCertificatesParamsWithContext creates a new GetExtraCertificatesParams object with the ability to set a context for a request.

func NewGetExtraCertificatesParamsWithHTTPClient

func NewGetExtraCertificatesParamsWithHTTPClient(client *http.Client) *GetExtraCertificatesParams

NewGetExtraCertificatesParamsWithHTTPClient creates a new GetExtraCertificatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetExtraCertificatesParamsWithTimeout

func NewGetExtraCertificatesParamsWithTimeout(timeout time.Duration) *GetExtraCertificatesParams

NewGetExtraCertificatesParamsWithTimeout creates a new GetExtraCertificatesParams object with the ability to set a timeout on a request.

func (*GetExtraCertificatesParams) SetContext

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

SetContext adds the context to the get extra certificates params

func (*GetExtraCertificatesParams) SetDefaults

func (o *GetExtraCertificatesParams) SetDefaults()

SetDefaults hydrates default values in the get extra certificates params (not the query body).

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

func (*GetExtraCertificatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get extra certificates params

func (*GetExtraCertificatesParams) SetTimeout

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

SetTimeout adds the timeout to the get extra certificates params

func (*GetExtraCertificatesParams) WithContext

WithContext adds the context to the get extra certificates params

func (*GetExtraCertificatesParams) WithDefaults

WithDefaults hydrates default values in the get extra certificates params (not the query body).

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

func (*GetExtraCertificatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get extra certificates params

func (*GetExtraCertificatesParams) WithTimeout

WithTimeout adds the timeout to the get extra certificates params

func (*GetExtraCertificatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetExtraCertificatesReader

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

GetExtraCertificatesReader is a Reader for the GetExtraCertificates structure.

func (*GetExtraCertificatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPlatformOK

type GetPlatformOK struct {
	Payload *models.PlatformInfo
}

GetPlatformOK describes a response with status code 200, with default header values.

The platform information is retrieved.

func NewGetPlatformOK

func NewGetPlatformOK() *GetPlatformOK

NewGetPlatformOK creates a GetPlatformOK with default headers values

func (*GetPlatformOK) Code

func (o *GetPlatformOK) Code() int

Code gets the status code for the get platform o k response

func (*GetPlatformOK) Error

func (o *GetPlatformOK) Error() string

func (*GetPlatformOK) GetPayload

func (o *GetPlatformOK) GetPayload() *models.PlatformInfo

func (*GetPlatformOK) IsClientError

func (o *GetPlatformOK) IsClientError() bool

IsClientError returns true when this get platform o k response has a 4xx status code

func (*GetPlatformOK) IsCode

func (o *GetPlatformOK) IsCode(code int) bool

IsCode returns true when this get platform o k response a status code equal to that given

func (*GetPlatformOK) IsRedirect

func (o *GetPlatformOK) IsRedirect() bool

IsRedirect returns true when this get platform o k response has a 3xx status code

func (*GetPlatformOK) IsServerError

func (o *GetPlatformOK) IsServerError() bool

IsServerError returns true when this get platform o k response has a 5xx status code

func (*GetPlatformOK) IsSuccess

func (o *GetPlatformOK) IsSuccess() bool

IsSuccess returns true when this get platform o k response has a 2xx status code

func (*GetPlatformOK) String

func (o *GetPlatformOK) String() string

type GetPlatformParams

type GetPlatformParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPlatformParams contains all the parameters to send to the API endpoint

for the get platform operation.

Typically these are written to a http.Request.

func NewGetPlatformParams

func NewGetPlatformParams() *GetPlatformParams

NewGetPlatformParams creates a new GetPlatformParams 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 NewGetPlatformParamsWithContext

func NewGetPlatformParamsWithContext(ctx context.Context) *GetPlatformParams

NewGetPlatformParamsWithContext creates a new GetPlatformParams object with the ability to set a context for a request.

func NewGetPlatformParamsWithHTTPClient

func NewGetPlatformParamsWithHTTPClient(client *http.Client) *GetPlatformParams

NewGetPlatformParamsWithHTTPClient creates a new GetPlatformParams object with the ability to set a custom HTTPClient for a request.

func NewGetPlatformParamsWithTimeout

func NewGetPlatformParamsWithTimeout(timeout time.Duration) *GetPlatformParams

NewGetPlatformParamsWithTimeout creates a new GetPlatformParams object with the ability to set a timeout on a request.

func (*GetPlatformParams) SetContext

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

SetContext adds the context to the get platform params

func (*GetPlatformParams) SetDefaults

func (o *GetPlatformParams) SetDefaults()

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

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

func (*GetPlatformParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get platform params

func (*GetPlatformParams) SetTimeout

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

SetTimeout adds the timeout to the get platform params

func (*GetPlatformParams) WithContext

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

WithContext adds the context to the get platform params

func (*GetPlatformParams) WithDefaults

func (o *GetPlatformParams) WithDefaults() *GetPlatformParams

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

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

func (*GetPlatformParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get platform params

func (*GetPlatformParams) WithTimeout

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

WithTimeout adds the timeout to the get platform params

func (*GetPlatformParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPlatformReader

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

GetPlatformReader is a Reader for the GetPlatform structure.

func (*GetPlatformReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetExtraCertificateBadRequest

type SetExtraCertificateBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetExtraCertificateBadRequest describes a response with status code 400, with default header values.

Certificate uses unknown cryptographic algorithm. (code: `cert.unknown_cert_algorithm`)

func NewSetExtraCertificateBadRequest

func NewSetExtraCertificateBadRequest() *SetExtraCertificateBadRequest

NewSetExtraCertificateBadRequest creates a SetExtraCertificateBadRequest with default headers values

func (*SetExtraCertificateBadRequest) Code

Code gets the status code for the set extra certificate bad request response

func (*SetExtraCertificateBadRequest) Error

func (*SetExtraCertificateBadRequest) GetPayload

func (*SetExtraCertificateBadRequest) IsClientError

func (o *SetExtraCertificateBadRequest) IsClientError() bool

IsClientError returns true when this set extra certificate bad request response has a 4xx status code

func (*SetExtraCertificateBadRequest) IsCode

func (o *SetExtraCertificateBadRequest) IsCode(code int) bool

IsCode returns true when this set extra certificate bad request response a status code equal to that given

func (*SetExtraCertificateBadRequest) IsRedirect

func (o *SetExtraCertificateBadRequest) IsRedirect() bool

IsRedirect returns true when this set extra certificate bad request response has a 3xx status code

func (*SetExtraCertificateBadRequest) IsServerError

func (o *SetExtraCertificateBadRequest) IsServerError() bool

IsServerError returns true when this set extra certificate bad request response has a 5xx status code

func (*SetExtraCertificateBadRequest) IsSuccess

func (o *SetExtraCertificateBadRequest) IsSuccess() bool

IsSuccess returns true when this set extra certificate bad request response has a 2xx status code

func (*SetExtraCertificateBadRequest) String

type SetExtraCertificateOK

type SetExtraCertificateOK struct {
	Payload models.EmptyResponse
}

SetExtraCertificateOK describes a response with status code 200, with default header values.

Updates extra certificate under given id

func NewSetExtraCertificateOK

func NewSetExtraCertificateOK() *SetExtraCertificateOK

NewSetExtraCertificateOK creates a SetExtraCertificateOK with default headers values

func (*SetExtraCertificateOK) Code

func (o *SetExtraCertificateOK) Code() int

Code gets the status code for the set extra certificate o k response

func (*SetExtraCertificateOK) Error

func (o *SetExtraCertificateOK) Error() string

func (*SetExtraCertificateOK) GetPayload

func (o *SetExtraCertificateOK) GetPayload() models.EmptyResponse

func (*SetExtraCertificateOK) IsClientError

func (o *SetExtraCertificateOK) IsClientError() bool

IsClientError returns true when this set extra certificate o k response has a 4xx status code

func (*SetExtraCertificateOK) IsCode

func (o *SetExtraCertificateOK) IsCode(code int) bool

IsCode returns true when this set extra certificate o k response a status code equal to that given

func (*SetExtraCertificateOK) IsRedirect

func (o *SetExtraCertificateOK) IsRedirect() bool

IsRedirect returns true when this set extra certificate o k response has a 3xx status code

func (*SetExtraCertificateOK) IsServerError

func (o *SetExtraCertificateOK) IsServerError() bool

IsServerError returns true when this set extra certificate o k response has a 5xx status code

func (*SetExtraCertificateOK) IsSuccess

func (o *SetExtraCertificateOK) IsSuccess() bool

IsSuccess returns true when this set extra certificate o k response has a 2xx status code

func (*SetExtraCertificateOK) String

func (o *SetExtraCertificateOK) String() string

type SetExtraCertificateParams

type SetExtraCertificateParams struct {

	/* Body.

	   Extra certificate bundle
	*/
	Body string

	/* CertID.

	   The extra certificate Id. For example, `star_my_domain_com`.
	*/
	CertID string

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

SetExtraCertificateParams contains all the parameters to send to the API endpoint

for the set extra certificate operation.

Typically these are written to a http.Request.

func NewSetExtraCertificateParams

func NewSetExtraCertificateParams() *SetExtraCertificateParams

NewSetExtraCertificateParams creates a new SetExtraCertificateParams 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 NewSetExtraCertificateParamsWithContext

func NewSetExtraCertificateParamsWithContext(ctx context.Context) *SetExtraCertificateParams

NewSetExtraCertificateParamsWithContext creates a new SetExtraCertificateParams object with the ability to set a context for a request.

func NewSetExtraCertificateParamsWithHTTPClient

func NewSetExtraCertificateParamsWithHTTPClient(client *http.Client) *SetExtraCertificateParams

NewSetExtraCertificateParamsWithHTTPClient creates a new SetExtraCertificateParams object with the ability to set a custom HTTPClient for a request.

func NewSetExtraCertificateParamsWithTimeout

func NewSetExtraCertificateParamsWithTimeout(timeout time.Duration) *SetExtraCertificateParams

NewSetExtraCertificateParamsWithTimeout creates a new SetExtraCertificateParams object with the ability to set a timeout on a request.

func (*SetExtraCertificateParams) SetBody

func (o *SetExtraCertificateParams) SetBody(body string)

SetBody adds the body to the set extra certificate params

func (*SetExtraCertificateParams) SetCertID

func (o *SetExtraCertificateParams) SetCertID(certID string)

SetCertID adds the certId to the set extra certificate params

func (*SetExtraCertificateParams) SetContext

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

SetContext adds the context to the set extra certificate params

func (*SetExtraCertificateParams) SetDefaults

func (o *SetExtraCertificateParams) SetDefaults()

SetDefaults hydrates default values in the set extra certificate params (not the query body).

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

func (*SetExtraCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set extra certificate params

func (*SetExtraCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the set extra certificate params

func (*SetExtraCertificateParams) WithBody

WithBody adds the body to the set extra certificate params

func (*SetExtraCertificateParams) WithCertID

WithCertID adds the certID to the set extra certificate params

func (*SetExtraCertificateParams) WithContext

WithContext adds the context to the set extra certificate params

func (*SetExtraCertificateParams) WithDefaults

WithDefaults hydrates default values in the set extra certificate params (not the query body).

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

func (*SetExtraCertificateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set extra certificate params

func (*SetExtraCertificateParams) WithTimeout

WithTimeout adds the timeout to the set extra certificate params

func (*SetExtraCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetExtraCertificateReader

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

SetExtraCertificateReader is a Reader for the SetExtraCertificate structure.

func (*SetExtraCertificateReader) ReadResponse

func (o *SetExtraCertificateReader) 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