Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteSnapshotRepository(params *DeleteSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSnapshotRepositoryOK, *DeleteSnapshotRepositoryAccepted, error)
- func (a *Client) GetSnapshotRepositories(params *GetSnapshotRepositoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSnapshotRepositoriesOK, error)
- func (a *Client) GetSnapshotRepository(params *GetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*GetSnapshotRepositoryOK, error)
- func (a *Client) SetSnapshotRepository(params *SetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*SetSnapshotRepositoryOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteSnapshotRepositoryAccepted
- type DeleteSnapshotRepositoryInternalServerError
- type DeleteSnapshotRepositoryOK
- type DeleteSnapshotRepositoryParams
- func NewDeleteSnapshotRepositoryParams() *DeleteSnapshotRepositoryParams
- func NewDeleteSnapshotRepositoryParamsWithContext(ctx context.Context) *DeleteSnapshotRepositoryParams
- func NewDeleteSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *DeleteSnapshotRepositoryParams
- func NewDeleteSnapshotRepositoryParamsWithTimeout(timeout time.Duration) *DeleteSnapshotRepositoryParams
- func (o *DeleteSnapshotRepositoryParams) SetCleanupDeployments(cleanupDeployments *bool)
- func (o *DeleteSnapshotRepositoryParams) SetContext(ctx context.Context)
- func (o *DeleteSnapshotRepositoryParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSnapshotRepositoryParams) SetRepositoryName(repositoryName string)
- func (o *DeleteSnapshotRepositoryParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSnapshotRepositoryParams) WithCleanupDeployments(cleanupDeployments *bool) *DeleteSnapshotRepositoryParams
- func (o *DeleteSnapshotRepositoryParams) WithContext(ctx context.Context) *DeleteSnapshotRepositoryParams
- func (o *DeleteSnapshotRepositoryParams) WithHTTPClient(client *http.Client) *DeleteSnapshotRepositoryParams
- func (o *DeleteSnapshotRepositoryParams) WithRepositoryName(repositoryName string) *DeleteSnapshotRepositoryParams
- func (o *DeleteSnapshotRepositoryParams) WithTimeout(timeout time.Duration) *DeleteSnapshotRepositoryParams
- func (o *DeleteSnapshotRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSnapshotRepositoryReader
- type DeleteSnapshotRepositoryRetryWith
- type GetSnapshotRepositoriesOK
- type GetSnapshotRepositoriesParams
- func NewGetSnapshotRepositoriesParams() *GetSnapshotRepositoriesParams
- func NewGetSnapshotRepositoriesParamsWithContext(ctx context.Context) *GetSnapshotRepositoriesParams
- func NewGetSnapshotRepositoriesParamsWithHTTPClient(client *http.Client) *GetSnapshotRepositoriesParams
- func NewGetSnapshotRepositoriesParamsWithTimeout(timeout time.Duration) *GetSnapshotRepositoriesParams
- func (o *GetSnapshotRepositoriesParams) SetContext(ctx context.Context)
- func (o *GetSnapshotRepositoriesParams) SetHTTPClient(client *http.Client)
- func (o *GetSnapshotRepositoriesParams) SetTimeout(timeout time.Duration)
- func (o *GetSnapshotRepositoriesParams) WithContext(ctx context.Context) *GetSnapshotRepositoriesParams
- func (o *GetSnapshotRepositoriesParams) WithHTTPClient(client *http.Client) *GetSnapshotRepositoriesParams
- func (o *GetSnapshotRepositoriesParams) WithTimeout(timeout time.Duration) *GetSnapshotRepositoriesParams
- func (o *GetSnapshotRepositoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSnapshotRepositoriesReader
- type GetSnapshotRepositoryOK
- type GetSnapshotRepositoryParams
- func NewGetSnapshotRepositoryParams() *GetSnapshotRepositoryParams
- func NewGetSnapshotRepositoryParamsWithContext(ctx context.Context) *GetSnapshotRepositoryParams
- func NewGetSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *GetSnapshotRepositoryParams
- func NewGetSnapshotRepositoryParamsWithTimeout(timeout time.Duration) *GetSnapshotRepositoryParams
- func (o *GetSnapshotRepositoryParams) SetContext(ctx context.Context)
- func (o *GetSnapshotRepositoryParams) SetHTTPClient(client *http.Client)
- func (o *GetSnapshotRepositoryParams) SetRepositoryName(repositoryName string)
- func (o *GetSnapshotRepositoryParams) SetTimeout(timeout time.Duration)
- func (o *GetSnapshotRepositoryParams) WithContext(ctx context.Context) *GetSnapshotRepositoryParams
- func (o *GetSnapshotRepositoryParams) WithHTTPClient(client *http.Client) *GetSnapshotRepositoryParams
- func (o *GetSnapshotRepositoryParams) WithRepositoryName(repositoryName string) *GetSnapshotRepositoryParams
- func (o *GetSnapshotRepositoryParams) WithTimeout(timeout time.Duration) *GetSnapshotRepositoryParams
- func (o *GetSnapshotRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSnapshotRepositoryReader
- type SetSnapshotRepositoryOK
- type SetSnapshotRepositoryParams
- func NewSetSnapshotRepositoryParams() *SetSnapshotRepositoryParams
- func NewSetSnapshotRepositoryParamsWithContext(ctx context.Context) *SetSnapshotRepositoryParams
- func NewSetSnapshotRepositoryParamsWithHTTPClient(client *http.Client) *SetSnapshotRepositoryParams
- func NewSetSnapshotRepositoryParamsWithTimeout(timeout time.Duration) *SetSnapshotRepositoryParams
- func (o *SetSnapshotRepositoryParams) SetBody(body *models.SnapshotRepositoryConfiguration)
- func (o *SetSnapshotRepositoryParams) SetContext(ctx context.Context)
- func (o *SetSnapshotRepositoryParams) SetHTTPClient(client *http.Client)
- func (o *SetSnapshotRepositoryParams) SetRepositoryName(repositoryName string)
- func (o *SetSnapshotRepositoryParams) SetTimeout(timeout time.Duration)
- func (o *SetSnapshotRepositoryParams) SetVersion(version *int64)
- func (o *SetSnapshotRepositoryParams) WithBody(body *models.SnapshotRepositoryConfiguration) *SetSnapshotRepositoryParams
- func (o *SetSnapshotRepositoryParams) WithContext(ctx context.Context) *SetSnapshotRepositoryParams
- func (o *SetSnapshotRepositoryParams) WithHTTPClient(client *http.Client) *SetSnapshotRepositoryParams
- func (o *SetSnapshotRepositoryParams) WithRepositoryName(repositoryName string) *SetSnapshotRepositoryParams
- func (o *SetSnapshotRepositoryParams) WithTimeout(timeout time.Duration) *SetSnapshotRepositoryParams
- func (o *SetSnapshotRepositoryParams) WithVersion(version *int64) *SetSnapshotRepositoryParams
- func (o *SetSnapshotRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetSnapshotRepositoryReader
- type SetSnapshotRepositoryRetryWith
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 ¶
func (a *Client) DeleteSnapshotRepository(params *DeleteSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSnapshotRepositoryOK, *DeleteSnapshotRepositoryAccepted, error)
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 ClientService ¶
type ClientService interface { DeleteSnapshotRepository(params *DeleteSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSnapshotRepositoryOK, *DeleteSnapshotRepositoryAccepted, error) GetSnapshotRepositories(params *GetSnapshotRepositoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSnapshotRepositoriesOK, error) GetSnapshotRepository(params *GetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*GetSnapshotRepositoryOK, error) SetSnapshotRepository(params *SetSnapshotRepositoryParams, authInfo runtime.ClientAuthInfoWriter) (*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 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 ¶
func (o *DeleteSnapshotRepositoryAccepted) Error() string
func (*DeleteSnapshotRepositoryAccepted) GetPayload ¶
func (o *DeleteSnapshotRepositoryAccepted) GetPayload() models.EmptyResponse
type DeleteSnapshotRepositoryInternalServerError ¶
type DeleteSnapshotRepositoryInternalServerError struct {
Payload *models.BasicFailedReply
}
DeleteSnapshotRepositoryInternalServerError handles this case 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) Error ¶
func (o *DeleteSnapshotRepositoryInternalServerError) Error() string
func (*DeleteSnapshotRepositoryInternalServerError) GetPayload ¶
func (o *DeleteSnapshotRepositoryInternalServerError) GetPayload() *models.BasicFailedReply
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 ¶
func (o *DeleteSnapshotRepositoryOK) Error() string
func (*DeleteSnapshotRepositoryOK) GetPayload ¶
func (o *DeleteSnapshotRepositoryOK) GetPayload() models.EmptyResponse
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 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) 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) 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 ¶
func (o *DeleteSnapshotRepositoryParams) WithContext(ctx context.Context) *DeleteSnapshotRepositoryParams
WithContext adds the context to the delete snapshot repository params
func (*DeleteSnapshotRepositoryParams) WithHTTPClient ¶
func (o *DeleteSnapshotRepositoryParams) WithHTTPClient(client *http.Client) *DeleteSnapshotRepositoryParams
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 ¶
func (o *DeleteSnapshotRepositoryParams) WithTimeout(timeout time.Duration) *DeleteSnapshotRepositoryParams
WithTimeout adds the timeout to the delete snapshot repository params
func (*DeleteSnapshotRepositoryParams) WriteToRequest ¶
func (o *DeleteSnapshotRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteSnapshotRepositoryRetryWith) Error() string
func (*DeleteSnapshotRepositoryRetryWith) GetPayload ¶
func (o *DeleteSnapshotRepositoryRetryWith) GetPayload() *models.BasicFailedReply
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
func (*GetSnapshotRepositoriesOK) GetPayload ¶
func (o *GetSnapshotRepositoriesOK) GetPayload() *models.RepositoryConfigs
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 ¶
func (o *GetSnapshotRepositoriesParams) WithContext(ctx context.Context) *GetSnapshotRepositoriesParams
WithContext adds the context to the get snapshot repositories params
func (*GetSnapshotRepositoriesParams) WithHTTPClient ¶
func (o *GetSnapshotRepositoriesParams) WithHTTPClient(client *http.Client) *GetSnapshotRepositoriesParams
WithHTTPClient adds the HTTPClient to the get snapshot repositories params
func (*GetSnapshotRepositoriesParams) WithTimeout ¶
func (o *GetSnapshotRepositoriesParams) WithTimeout(timeout time.Duration) *GetSnapshotRepositoriesParams
WithTimeout adds the timeout to the get snapshot repositories params
func (*GetSnapshotRepositoriesParams) WriteToRequest ¶
func (o *GetSnapshotRepositoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (*GetSnapshotRepositoryOK) GetPayload ¶
func (o *GetSnapshotRepositoryOK) GetPayload() *models.RepositoryConfig
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 ¶
func (o *GetSnapshotRepositoryParams) WithContext(ctx context.Context) *GetSnapshotRepositoryParams
WithContext adds the context to the get snapshot repository params
func (*GetSnapshotRepositoryParams) WithHTTPClient ¶
func (o *GetSnapshotRepositoryParams) WithHTTPClient(client *http.Client) *GetSnapshotRepositoryParams
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 ¶
func (o *GetSnapshotRepositoryParams) WithTimeout(timeout time.Duration) *GetSnapshotRepositoryParams
WithTimeout adds the timeout to the get snapshot repository params
func (*GetSnapshotRepositoryParams) WriteToRequest ¶
func (o *GetSnapshotRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (*SetSnapshotRepositoryOK) GetPayload ¶
func (o *SetSnapshotRepositoryOK) GetPayload() *models.RepositoryConfig
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 ¶
func (o *SetSnapshotRepositoryParams) SetBody(body *models.SnapshotRepositoryConfiguration)
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 ¶
func (o *SetSnapshotRepositoryParams) WithBody(body *models.SnapshotRepositoryConfiguration) *SetSnapshotRepositoryParams
WithBody adds the body to the set snapshot repository params
func (*SetSnapshotRepositoryParams) WithContext ¶
func (o *SetSnapshotRepositoryParams) WithContext(ctx context.Context) *SetSnapshotRepositoryParams
WithContext adds the context to the set snapshot repository params
func (*SetSnapshotRepositoryParams) WithHTTPClient ¶
func (o *SetSnapshotRepositoryParams) WithHTTPClient(client *http.Client) *SetSnapshotRepositoryParams
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 ¶
func (o *SetSnapshotRepositoryParams) WithTimeout(timeout time.Duration) *SetSnapshotRepositoryParams
WithTimeout adds the timeout to the set snapshot repository params
func (*SetSnapshotRepositoryParams) WithVersion ¶
func (o *SetSnapshotRepositoryParams) WithVersion(version *int64) *SetSnapshotRepositoryParams
WithVersion adds the version to the set snapshot repository params
func (*SetSnapshotRepositoryParams) WriteToRequest ¶
func (o *SetSnapshotRepositoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SetSnapshotRepositoryRetryWith) Error() string
func (*SetSnapshotRepositoryRetryWith) GetPayload ¶
func (o *SetSnapshotRepositoryRetryWith) GetPayload() *models.BasicFailedReply
Source Files ¶
- delete_snapshot_repository_parameters.go
- delete_snapshot_repository_responses.go
- get_snapshot_repositories_parameters.go
- get_snapshot_repositories_responses.go
- get_snapshot_repository_parameters.go
- get_snapshot_repository_responses.go
- platform_configuration_snapshots_client.go
- set_snapshot_repository_parameters.go
- set_snapshot_repository_responses.go