platform_configuration_snapshots

package
v1.0.0-bc14 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 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 New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new platform configuration snapshots API client.

func (*Client) DeleteSnapshotRepository

DeleteSnapshotRepository deletes snapshot repository

Deletes the snapshot repository configuration.

func (*Client) GetSnapshotRepositories

func (a *Client) GetSnapshotRepositories(params *GetSnapshotRepositoriesParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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) (*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 DeleteSnapshotRepositoryAccepted

type DeleteSnapshotRepositoryAccepted struct {
	Payload models.EmptyResponse
}

DeleteSnapshotRepositoryAccepted handles this case with default header values.

Delete snapshot repository config

func NewDeleteSnapshotRepositoryAccepted

func NewDeleteSnapshotRepositoryAccepted() *DeleteSnapshotRepositoryAccepted

NewDeleteSnapshotRepositoryAccepted creates a DeleteSnapshotRepositoryAccepted with default headers values

func (*DeleteSnapshotRepositoryAccepted) Error

type DeleteSnapshotRepositoryOK

type DeleteSnapshotRepositoryOK struct {
	Payload models.EmptyResponse
}

DeleteSnapshotRepositoryOK handles this case with default header values.

successful operation

func NewDeleteSnapshotRepositoryOK

func NewDeleteSnapshotRepositoryOK() *DeleteSnapshotRepositoryOK

NewDeleteSnapshotRepositoryOK creates a DeleteSnapshotRepositoryOK with default headers values

func (*DeleteSnapshotRepositoryOK) Error

type DeleteSnapshotRepositoryParams

type DeleteSnapshotRepositoryParams struct {

	/*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 values initialized.

func NewDeleteSnapshotRepositoryParamsWithContext

func NewDeleteSnapshotRepositoryParamsWithContext(ctx context.Context) *DeleteSnapshotRepositoryParams

NewDeleteSnapshotRepositoryParamsWithContext creates a new DeleteSnapshotRepositoryParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*DeleteSnapshotRepositoryParams) SetContext

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

SetContext adds the context to the delete snapshot repository params

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) WithContext

WithContext adds the context to the delete snapshot repository params

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 DeleteSnapshotRepositoryRetryWith

type DeleteSnapshotRepositoryRetryWith struct {
	Payload *models.BasicFailedReply
}

DeleteSnapshotRepositoryRetryWith handles this case with default header values.

elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"')

func NewDeleteSnapshotRepositoryRetryWith

func NewDeleteSnapshotRepositoryRetryWith() *DeleteSnapshotRepositoryRetryWith

NewDeleteSnapshotRepositoryRetryWith creates a DeleteSnapshotRepositoryRetryWith with default headers values

func (*DeleteSnapshotRepositoryRetryWith) Error

type GetSnapshotRepositoriesOK

type GetSnapshotRepositoriesOK struct {
	Payload *models.RepositoryConfigs
}

GetSnapshotRepositoriesOK handles this case with default header values.

List of snapshot repository configs

func NewGetSnapshotRepositoriesOK

func NewGetSnapshotRepositoriesOK() *GetSnapshotRepositoriesOK

NewGetSnapshotRepositoriesOK creates a GetSnapshotRepositoriesOK with default headers values

func (*GetSnapshotRepositoriesOK) Error

func (o *GetSnapshotRepositoriesOK) Error() 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 values initialized.

func NewGetSnapshotRepositoriesParamsWithContext

func NewGetSnapshotRepositoriesParamsWithContext(ctx context.Context) *GetSnapshotRepositoriesParams

NewGetSnapshotRepositoriesParamsWithContext creates a new GetSnapshotRepositoriesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

Retrieve snapshot repository config

func NewGetSnapshotRepositoryOK

func NewGetSnapshotRepositoryOK() *GetSnapshotRepositoryOK

NewGetSnapshotRepositoryOK creates a GetSnapshotRepositoryOK with default headers values

func (*GetSnapshotRepositoryOK) Error

func (o *GetSnapshotRepositoryOK) Error() 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 values initialized.

func NewGetSnapshotRepositoryParamsWithContext

func NewGetSnapshotRepositoryParamsWithContext(ctx context.Context) *GetSnapshotRepositoryParams

NewGetSnapshotRepositoryParamsWithContext creates a new GetSnapshotRepositoryParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

New snapshot repository config

func NewSetSnapshotRepositoryOK

func NewSetSnapshotRepositoryOK() *SetSnapshotRepositoryOK

NewSetSnapshotRepositoryOK creates a SetSnapshotRepositoryOK with default headers values

func (*SetSnapshotRepositoryOK) Error

func (o *SetSnapshotRepositoryOK) Error() 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 values initialized.

func NewSetSnapshotRepositoryParamsWithContext

func NewSetSnapshotRepositoryParamsWithContext(ctx context.Context) *SetSnapshotRepositoryParams

NewSetSnapshotRepositoryParamsWithContext creates a new SetSnapshotRepositoryParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.

type SetSnapshotRepositoryRetryWith

type SetSnapshotRepositoryRetryWith struct {
	Payload *models.BasicFailedReply
}

SetSnapshotRepositoryRetryWith handles this case with default header values.

elevated permissions are required. (code: '"root.unauthorized.rbac.elevated_permissions_required"')

func NewSetSnapshotRepositoryRetryWith

func NewSetSnapshotRepositoryRetryWith() *SetSnapshotRepositoryRetryWith

NewSetSnapshotRepositoryRetryWith creates a SetSnapshotRepositoryRetryWith with default headers values

func (*SetSnapshotRepositoryRetryWith) Error

Jump to

Keyboard shortcuts

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