platform_configuration_snapshots

package
v1.17.0 Latest Latest
Warning

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

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

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 configuration snapshots API

func (*Client) DeleteSnapshotRepository

DeleteSnapshotRepository deletes snapshot repository

Deletes the snapshot repository configuration.

func (*Client) GetSnapshotRepositories

func (a *Client) GetSnapshotRepositories(params *GetSnapshotRepositoriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotRepositoriesOK, error)

GetSnapshotRepositories gets snapshot repositories

Retrieves a list of available snapshot repository configurations. To access the configuration contents, you must have privileged permissions.

func (*Client) GetSnapshotRepository

func (a *Client) GetSnapshotRepository(params *GetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotRepositoryOK, error)

GetSnapshotRepository gets snapshot repository

Retrieves the snapshot repository configuration. To access the configuration contents, you must have privileged permissions.

func (*Client) SetSnapshotRepository

func (a *Client) SetSnapshotRepository(params *SetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetSnapshotRepositoryOK, error)

SetSnapshotRepository sets snapshot repository

Creates or updates the snapshot repository configuration.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.3.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteSnapshotRepository(params *DeleteSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSnapshotRepositoryOK, *DeleteSnapshotRepositoryAccepted, error)

	GetSnapshotRepositories(params *GetSnapshotRepositoriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotRepositoriesOK, error)

	GetSnapshotRepository(params *GetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSnapshotRepositoryOK, error)

	SetSnapshotRepository(params *SetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetSnapshotRepositoryOK, 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 configuration snapshots API client.

type DeleteSnapshotRepositoryAccepted

type DeleteSnapshotRepositoryAccepted struct {
	Payload models.EmptyResponse
}

DeleteSnapshotRepositoryAccepted describes a response with status code 202, with default header values.

Delete snapshot repository config

func NewDeleteSnapshotRepositoryAccepted

func NewDeleteSnapshotRepositoryAccepted() *DeleteSnapshotRepositoryAccepted

NewDeleteSnapshotRepositoryAccepted creates a DeleteSnapshotRepositoryAccepted with default headers values

func (*DeleteSnapshotRepositoryAccepted) Code added in v1.13.0

Code gets the status code for the delete snapshot repository accepted response

func (*DeleteSnapshotRepositoryAccepted) Error

func (*DeleteSnapshotRepositoryAccepted) GetPayload

func (*DeleteSnapshotRepositoryAccepted) IsClientError added in v1.13.0

func (o *DeleteSnapshotRepositoryAccepted) IsClientError() bool

IsClientError returns true when this delete snapshot repository accepted response has a 4xx status code

func (*DeleteSnapshotRepositoryAccepted) IsCode added in v1.13.0

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

IsCode returns true when this delete snapshot repository accepted response a status code equal to that given

func (*DeleteSnapshotRepositoryAccepted) IsRedirect added in v1.13.0

func (o *DeleteSnapshotRepositoryAccepted) IsRedirect() bool

IsRedirect returns true when this delete snapshot repository accepted response has a 3xx status code

func (*DeleteSnapshotRepositoryAccepted) IsServerError added in v1.13.0

func (o *DeleteSnapshotRepositoryAccepted) IsServerError() bool

IsServerError returns true when this delete snapshot repository accepted response has a 5xx status code

func (*DeleteSnapshotRepositoryAccepted) IsSuccess added in v1.13.0

func (o *DeleteSnapshotRepositoryAccepted) IsSuccess() bool

IsSuccess returns true when this delete snapshot repository accepted response has a 2xx status code

func (*DeleteSnapshotRepositoryAccepted) String added in v1.13.0

type DeleteSnapshotRepositoryInternalServerError

type DeleteSnapshotRepositoryInternalServerError struct {
	Payload *models.BasicFailedReply
}

DeleteSnapshotRepositoryInternalServerError describes a response with status code 500, with default header values.

Failed to delete references and disable snapshots in one or more referencing clusters.

func NewDeleteSnapshotRepositoryInternalServerError

func NewDeleteSnapshotRepositoryInternalServerError() *DeleteSnapshotRepositoryInternalServerError

NewDeleteSnapshotRepositoryInternalServerError creates a DeleteSnapshotRepositoryInternalServerError with default headers values

func (*DeleteSnapshotRepositoryInternalServerError) Code added in v1.13.0

Code gets the status code for the delete snapshot repository internal server error response

func (*DeleteSnapshotRepositoryInternalServerError) Error

func (*DeleteSnapshotRepositoryInternalServerError) GetPayload

func (*DeleteSnapshotRepositoryInternalServerError) IsClientError added in v1.13.0

IsClientError returns true when this delete snapshot repository internal server error response has a 4xx status code

func (*DeleteSnapshotRepositoryInternalServerError) IsCode added in v1.13.0

IsCode returns true when this delete snapshot repository internal server error response a status code equal to that given

func (*DeleteSnapshotRepositoryInternalServerError) IsRedirect added in v1.13.0

IsRedirect returns true when this delete snapshot repository internal server error response has a 3xx status code

func (*DeleteSnapshotRepositoryInternalServerError) IsServerError added in v1.13.0

IsServerError returns true when this delete snapshot repository internal server error response has a 5xx status code

func (*DeleteSnapshotRepositoryInternalServerError) IsSuccess added in v1.13.0

IsSuccess returns true when this delete snapshot repository internal server error response has a 2xx status code

func (*DeleteSnapshotRepositoryInternalServerError) String added in v1.13.0

type DeleteSnapshotRepositoryOK

type DeleteSnapshotRepositoryOK struct {
	Payload models.EmptyResponse
}

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

successful operation

func NewDeleteSnapshotRepositoryOK

func NewDeleteSnapshotRepositoryOK() *DeleteSnapshotRepositoryOK

NewDeleteSnapshotRepositoryOK creates a DeleteSnapshotRepositoryOK with default headers values

func (*DeleteSnapshotRepositoryOK) Code added in v1.13.0

func (o *DeleteSnapshotRepositoryOK) Code() int

Code gets the status code for the delete snapshot repository o k response

func (*DeleteSnapshotRepositoryOK) Error

func (*DeleteSnapshotRepositoryOK) GetPayload

func (*DeleteSnapshotRepositoryOK) IsClientError added in v1.13.0

func (o *DeleteSnapshotRepositoryOK) IsClientError() bool

IsClientError returns true when this delete snapshot repository o k response has a 4xx status code

func (*DeleteSnapshotRepositoryOK) IsCode added in v1.13.0

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

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

func (*DeleteSnapshotRepositoryOK) IsRedirect added in v1.13.0

func (o *DeleteSnapshotRepositoryOK) IsRedirect() bool

IsRedirect returns true when this delete snapshot repository o k response has a 3xx status code

func (*DeleteSnapshotRepositoryOK) IsServerError added in v1.13.0

func (o *DeleteSnapshotRepositoryOK) IsServerError() bool

IsServerError returns true when this delete snapshot repository o k response has a 5xx status code

func (*DeleteSnapshotRepositoryOK) IsSuccess added in v1.13.0

func (o *DeleteSnapshotRepositoryOK) IsSuccess() bool

IsSuccess returns true when this delete snapshot repository o k response has a 2xx status code

func (*DeleteSnapshotRepositoryOK) String added in v1.13.0

func (o *DeleteSnapshotRepositoryOK) String() string

type DeleteSnapshotRepositoryParams

type DeleteSnapshotRepositoryParams struct {

	/* CleanupDeployments.

	   Removes references to this snapshot repository configuration and disables snapshots on the clusters that were referencing this configuration. If a request is made to delete a repository configuration that has already been deleted and this parameter is set to true and clusters still reference the configuration, then the request will have the side effects of removing references and disabling snapshots for clusters that reference the previously deleted configuration.
	*/
	CleanupDeployments *bool

	/* RepositoryName.

	   The name of the snapshot repository configuration.
	*/
	RepositoryName string

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

DeleteSnapshotRepositoryParams contains all the parameters to send to the API endpoint

for the delete snapshot repository operation.

Typically these are written to a http.Request.

func NewDeleteSnapshotRepositoryParams

func NewDeleteSnapshotRepositoryParams() *DeleteSnapshotRepositoryParams

NewDeleteSnapshotRepositoryParams creates a new DeleteSnapshotRepositoryParams 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 NewDeleteSnapshotRepositoryParamsWithContext

func NewDeleteSnapshotRepositoryParamsWithContext(ctx context.Context) *DeleteSnapshotRepositoryParams

NewDeleteSnapshotRepositoryParamsWithContext creates a new DeleteSnapshotRepositoryParams object with the ability to set a context for a request.

func NewDeleteSnapshotRepositoryParamsWithHTTPClient

func NewDeleteSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *DeleteSnapshotRepositoryParams

NewDeleteSnapshotRepositoryParamsWithHTTPClient creates a new DeleteSnapshotRepositoryParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSnapshotRepositoryParamsWithTimeout

func NewDeleteSnapshotRepositoryParamsWithTimeout(timeout time.Duration) *DeleteSnapshotRepositoryParams

NewDeleteSnapshotRepositoryParamsWithTimeout creates a new DeleteSnapshotRepositoryParams object with the ability to set a timeout on a request.

func (*DeleteSnapshotRepositoryParams) SetCleanupDeployments

func (o *DeleteSnapshotRepositoryParams) SetCleanupDeployments(cleanupDeployments *bool)

SetCleanupDeployments adds the cleanupDeployments to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) SetContext

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

SetContext adds the context to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) SetDefaults added in v1.3.0

func (o *DeleteSnapshotRepositoryParams) SetDefaults()

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

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

func (*DeleteSnapshotRepositoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) SetRepositoryName

func (o *DeleteSnapshotRepositoryParams) SetRepositoryName(repositoryName string)

SetRepositoryName adds the repositoryName to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) SetTimeout

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

SetTimeout adds the timeout to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) WithCleanupDeployments

func (o *DeleteSnapshotRepositoryParams) WithCleanupDeployments(cleanupDeployments *bool) *DeleteSnapshotRepositoryParams

WithCleanupDeployments adds the cleanupDeployments to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) WithContext

WithContext adds the context to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) WithDefaults added in v1.3.0

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

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

func (*DeleteSnapshotRepositoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) WithRepositoryName

func (o *DeleteSnapshotRepositoryParams) WithRepositoryName(repositoryName string) *DeleteSnapshotRepositoryParams

WithRepositoryName adds the repositoryName to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) WithTimeout

WithTimeout adds the timeout to the delete snapshot repository params

func (*DeleteSnapshotRepositoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSnapshotRepositoryReader

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

DeleteSnapshotRepositoryReader is a Reader for the DeleteSnapshotRepository structure.

func (*DeleteSnapshotRepositoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSnapshotRepositoriesOK

type GetSnapshotRepositoriesOK struct {
	Payload *models.RepositoryConfigs
}

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

List of snapshot repository configs

func NewGetSnapshotRepositoriesOK

func NewGetSnapshotRepositoriesOK() *GetSnapshotRepositoriesOK

NewGetSnapshotRepositoriesOK creates a GetSnapshotRepositoriesOK with default headers values

func (*GetSnapshotRepositoriesOK) Code added in v1.13.0

func (o *GetSnapshotRepositoriesOK) Code() int

Code gets the status code for the get snapshot repositories o k response

func (*GetSnapshotRepositoriesOK) Error

func (o *GetSnapshotRepositoriesOK) Error() string

func (*GetSnapshotRepositoriesOK) GetPayload

func (*GetSnapshotRepositoriesOK) IsClientError added in v1.13.0

func (o *GetSnapshotRepositoriesOK) IsClientError() bool

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

func (*GetSnapshotRepositoriesOK) IsCode added in v1.13.0

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

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

func (*GetSnapshotRepositoriesOK) IsRedirect added in v1.13.0

func (o *GetSnapshotRepositoriesOK) IsRedirect() bool

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

func (*GetSnapshotRepositoriesOK) IsServerError added in v1.13.0

func (o *GetSnapshotRepositoriesOK) IsServerError() bool

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

func (*GetSnapshotRepositoriesOK) IsSuccess added in v1.13.0

func (o *GetSnapshotRepositoriesOK) IsSuccess() bool

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

func (*GetSnapshotRepositoriesOK) String added in v1.13.0

func (o *GetSnapshotRepositoriesOK) String() string

type GetSnapshotRepositoriesParams

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

GetSnapshotRepositoriesParams contains all the parameters to send to the API endpoint

for the get snapshot repositories operation.

Typically these are written to a http.Request.

func NewGetSnapshotRepositoriesParams

func NewGetSnapshotRepositoriesParams() *GetSnapshotRepositoriesParams

NewGetSnapshotRepositoriesParams creates a new GetSnapshotRepositoriesParams 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 NewGetSnapshotRepositoriesParamsWithContext

func NewGetSnapshotRepositoriesParamsWithContext(ctx context.Context) *GetSnapshotRepositoriesParams

NewGetSnapshotRepositoriesParamsWithContext creates a new GetSnapshotRepositoriesParams object with the ability to set a context for a request.

func NewGetSnapshotRepositoriesParamsWithHTTPClient

func NewGetSnapshotRepositoriesParamsWithHTTPClient(client *http.Client) *GetSnapshotRepositoriesParams

NewGetSnapshotRepositoriesParamsWithHTTPClient creates a new GetSnapshotRepositoriesParams object with the ability to set a custom HTTPClient for a request.

func NewGetSnapshotRepositoriesParamsWithTimeout

func NewGetSnapshotRepositoriesParamsWithTimeout(timeout time.Duration) *GetSnapshotRepositoriesParams

NewGetSnapshotRepositoriesParamsWithTimeout creates a new GetSnapshotRepositoriesParams object with the ability to set a timeout on a request.

func (*GetSnapshotRepositoriesParams) SetContext

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

SetContext adds the context to the get snapshot repositories params

func (*GetSnapshotRepositoriesParams) SetDefaults added in v1.3.0

func (o *GetSnapshotRepositoriesParams) SetDefaults()

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

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

func (*GetSnapshotRepositoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get snapshot repositories params

func (*GetSnapshotRepositoriesParams) SetTimeout

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

SetTimeout adds the timeout to the get snapshot repositories params

func (*GetSnapshotRepositoriesParams) WithContext

WithContext adds the context to the get snapshot repositories params

func (*GetSnapshotRepositoriesParams) WithDefaults added in v1.3.0

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

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

func (*GetSnapshotRepositoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get snapshot repositories params

func (*GetSnapshotRepositoriesParams) WithTimeout

WithTimeout adds the timeout to the get snapshot repositories params

func (*GetSnapshotRepositoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSnapshotRepositoriesReader

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

GetSnapshotRepositoriesReader is a Reader for the GetSnapshotRepositories structure.

func (*GetSnapshotRepositoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSnapshotRepositoryOK

type GetSnapshotRepositoryOK struct {
	Payload *models.RepositoryConfig
}

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

Retrieve snapshot repository config

func NewGetSnapshotRepositoryOK

func NewGetSnapshotRepositoryOK() *GetSnapshotRepositoryOK

NewGetSnapshotRepositoryOK creates a GetSnapshotRepositoryOK with default headers values

func (*GetSnapshotRepositoryOK) Code added in v1.13.0

func (o *GetSnapshotRepositoryOK) Code() int

Code gets the status code for the get snapshot repository o k response

func (*GetSnapshotRepositoryOK) Error

func (o *GetSnapshotRepositoryOK) Error() string

func (*GetSnapshotRepositoryOK) GetPayload

func (*GetSnapshotRepositoryOK) IsClientError added in v1.13.0

func (o *GetSnapshotRepositoryOK) IsClientError() bool

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

func (*GetSnapshotRepositoryOK) IsCode added in v1.13.0

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

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

func (*GetSnapshotRepositoryOK) IsRedirect added in v1.13.0

func (o *GetSnapshotRepositoryOK) IsRedirect() bool

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

func (*GetSnapshotRepositoryOK) IsServerError added in v1.13.0

func (o *GetSnapshotRepositoryOK) IsServerError() bool

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

func (*GetSnapshotRepositoryOK) IsSuccess added in v1.13.0

func (o *GetSnapshotRepositoryOK) IsSuccess() bool

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

func (*GetSnapshotRepositoryOK) String added in v1.13.0

func (o *GetSnapshotRepositoryOK) String() string

type GetSnapshotRepositoryParams

type GetSnapshotRepositoryParams struct {

	/* RepositoryName.

	   The name of the snapshot repository configuration.
	*/
	RepositoryName string

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

GetSnapshotRepositoryParams contains all the parameters to send to the API endpoint

for the get snapshot repository operation.

Typically these are written to a http.Request.

func NewGetSnapshotRepositoryParams

func NewGetSnapshotRepositoryParams() *GetSnapshotRepositoryParams

NewGetSnapshotRepositoryParams creates a new GetSnapshotRepositoryParams 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 NewGetSnapshotRepositoryParamsWithContext

func NewGetSnapshotRepositoryParamsWithContext(ctx context.Context) *GetSnapshotRepositoryParams

NewGetSnapshotRepositoryParamsWithContext creates a new GetSnapshotRepositoryParams object with the ability to set a context for a request.

func NewGetSnapshotRepositoryParamsWithHTTPClient

func NewGetSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *GetSnapshotRepositoryParams

NewGetSnapshotRepositoryParamsWithHTTPClient creates a new GetSnapshotRepositoryParams object with the ability to set a custom HTTPClient for a request.

func NewGetSnapshotRepositoryParamsWithTimeout

func NewGetSnapshotRepositoryParamsWithTimeout(timeout time.Duration) *GetSnapshotRepositoryParams

NewGetSnapshotRepositoryParamsWithTimeout creates a new GetSnapshotRepositoryParams object with the ability to set a timeout on a request.

func (*GetSnapshotRepositoryParams) SetContext

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

SetContext adds the context to the get snapshot repository params

func (*GetSnapshotRepositoryParams) SetDefaults added in v1.3.0

func (o *GetSnapshotRepositoryParams) SetDefaults()

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

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

func (*GetSnapshotRepositoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get snapshot repository params

func (*GetSnapshotRepositoryParams) SetRepositoryName

func (o *GetSnapshotRepositoryParams) SetRepositoryName(repositoryName string)

SetRepositoryName adds the repositoryName to the get snapshot repository params

func (*GetSnapshotRepositoryParams) SetTimeout

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

SetTimeout adds the timeout to the get snapshot repository params

func (*GetSnapshotRepositoryParams) WithContext

WithContext adds the context to the get snapshot repository params

func (*GetSnapshotRepositoryParams) WithDefaults added in v1.3.0

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

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

func (*GetSnapshotRepositoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get snapshot repository params

func (*GetSnapshotRepositoryParams) WithRepositoryName

func (o *GetSnapshotRepositoryParams) WithRepositoryName(repositoryName string) *GetSnapshotRepositoryParams

WithRepositoryName adds the repositoryName to the get snapshot repository params

func (*GetSnapshotRepositoryParams) WithTimeout

WithTimeout adds the timeout to the get snapshot repository params

func (*GetSnapshotRepositoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSnapshotRepositoryReader

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

GetSnapshotRepositoryReader is a Reader for the GetSnapshotRepository structure.

func (*GetSnapshotRepositoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetSnapshotRepositoryOK

type SetSnapshotRepositoryOK struct {
	Payload *models.RepositoryConfig
}

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

New snapshot repository config

func NewSetSnapshotRepositoryOK

func NewSetSnapshotRepositoryOK() *SetSnapshotRepositoryOK

NewSetSnapshotRepositoryOK creates a SetSnapshotRepositoryOK with default headers values

func (*SetSnapshotRepositoryOK) Code added in v1.13.0

func (o *SetSnapshotRepositoryOK) Code() int

Code gets the status code for the set snapshot repository o k response

func (*SetSnapshotRepositoryOK) Error

func (o *SetSnapshotRepositoryOK) Error() string

func (*SetSnapshotRepositoryOK) GetPayload

func (*SetSnapshotRepositoryOK) IsClientError added in v1.13.0

func (o *SetSnapshotRepositoryOK) IsClientError() bool

IsClientError returns true when this set snapshot repository o k response has a 4xx status code

func (*SetSnapshotRepositoryOK) IsCode added in v1.13.0

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

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

func (*SetSnapshotRepositoryOK) IsRedirect added in v1.13.0

func (o *SetSnapshotRepositoryOK) IsRedirect() bool

IsRedirect returns true when this set snapshot repository o k response has a 3xx status code

func (*SetSnapshotRepositoryOK) IsServerError added in v1.13.0

func (o *SetSnapshotRepositoryOK) IsServerError() bool

IsServerError returns true when this set snapshot repository o k response has a 5xx status code

func (*SetSnapshotRepositoryOK) IsSuccess added in v1.13.0

func (o *SetSnapshotRepositoryOK) IsSuccess() bool

IsSuccess returns true when this set snapshot repository o k response has a 2xx status code

func (*SetSnapshotRepositoryOK) String added in v1.13.0

func (o *SetSnapshotRepositoryOK) String() string

type SetSnapshotRepositoryParams

type SetSnapshotRepositoryParams struct {

	/* Body.

	   The Elasticsearch snapshot repository configuration
	*/
	Body *models.SnapshotRepositoryConfiguration

	/* RepositoryName.

	   The name of the snapshot repository configuration.
	*/
	RepositoryName string

	/* Version.

	   Checks for conflicts against the metadata version, then returns the value in the `x-cloud-resource-version` header.
	*/
	Version *int64

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

SetSnapshotRepositoryParams contains all the parameters to send to the API endpoint

for the set snapshot repository operation.

Typically these are written to a http.Request.

func NewSetSnapshotRepositoryParams

func NewSetSnapshotRepositoryParams() *SetSnapshotRepositoryParams

NewSetSnapshotRepositoryParams creates a new SetSnapshotRepositoryParams 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 NewSetSnapshotRepositoryParamsWithContext

func NewSetSnapshotRepositoryParamsWithContext(ctx context.Context) *SetSnapshotRepositoryParams

NewSetSnapshotRepositoryParamsWithContext creates a new SetSnapshotRepositoryParams object with the ability to set a context for a request.

func NewSetSnapshotRepositoryParamsWithHTTPClient

func NewSetSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *SetSnapshotRepositoryParams

NewSetSnapshotRepositoryParamsWithHTTPClient creates a new SetSnapshotRepositoryParams object with the ability to set a custom HTTPClient for a request.

func NewSetSnapshotRepositoryParamsWithTimeout

func NewSetSnapshotRepositoryParamsWithTimeout(timeout time.Duration) *SetSnapshotRepositoryParams

NewSetSnapshotRepositoryParamsWithTimeout creates a new SetSnapshotRepositoryParams object with the ability to set a timeout on a request.

func (*SetSnapshotRepositoryParams) SetBody

SetBody adds the body to the set snapshot repository params

func (*SetSnapshotRepositoryParams) SetContext

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

SetContext adds the context to the set snapshot repository params

func (*SetSnapshotRepositoryParams) SetDefaults added in v1.3.0

func (o *SetSnapshotRepositoryParams) SetDefaults()

SetDefaults hydrates default values in the set snapshot repository params (not the query body).

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

func (*SetSnapshotRepositoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set snapshot repository params

func (*SetSnapshotRepositoryParams) SetRepositoryName

func (o *SetSnapshotRepositoryParams) SetRepositoryName(repositoryName string)

SetRepositoryName adds the repositoryName to the set snapshot repository params

func (*SetSnapshotRepositoryParams) SetTimeout

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

SetTimeout adds the timeout to the set snapshot repository params

func (*SetSnapshotRepositoryParams) SetVersion

func (o *SetSnapshotRepositoryParams) SetVersion(version *int64)

SetVersion adds the version to the set snapshot repository params

func (*SetSnapshotRepositoryParams) WithBody

WithBody adds the body to the set snapshot repository params

func (*SetSnapshotRepositoryParams) WithContext

WithContext adds the context to the set snapshot repository params

func (*SetSnapshotRepositoryParams) WithDefaults added in v1.3.0

WithDefaults hydrates default values in the set snapshot repository params (not the query body).

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

func (*SetSnapshotRepositoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set snapshot repository params

func (*SetSnapshotRepositoryParams) WithRepositoryName

func (o *SetSnapshotRepositoryParams) WithRepositoryName(repositoryName string) *SetSnapshotRepositoryParams

WithRepositoryName adds the repositoryName to the set snapshot repository params

func (*SetSnapshotRepositoryParams) WithTimeout

WithTimeout adds the timeout to the set snapshot repository params

func (*SetSnapshotRepositoryParams) WithVersion

WithVersion adds the version to the set snapshot repository params

func (*SetSnapshotRepositoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetSnapshotRepositoryReader

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

SetSnapshotRepositoryReader is a Reader for the SetSnapshotRepository structure.

func (*SetSnapshotRepositoryReader) ReadResponse

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