consul_service

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MPL-2.0 Imports: 12 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 consul service API

func (*Client) Create

func (a *Client) Create(params *CreateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateOK, error)

Create creates creates a new h c p consul cluster

func (*Client) CreateCustomerMasterACLToken

func (a *Client) CreateCustomerMasterACLToken(params *CreateCustomerMasterACLTokenParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCustomerMasterACLTokenOK, error)

CreateCustomerMasterACLToken creates customer master ACL token creates a new master ACL token for the customer on the specified cluster external clients will invoke this endpoint to re generate new master tokens

func (*Client) CreateSnapshot

func (a *Client) CreateSnapshot(params *CreateSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSnapshotOK, error)

CreateSnapshot creates snapshot takes a new snapshot asynchronously

func (*Client) Delete

func (a *Client) Delete(params *DeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteOK, error)

Delete deletes deletes the specified h c p consul cluster

func (*Client) DeleteSnapshot

func (a *Client) DeleteSnapshot(params *DeleteSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSnapshotOK, error)

DeleteSnapshot deletes snapshot removes the snapshot from storage asynchronously

func (*Client) Get

func (a *Client) Get(params *GetParams, authInfo runtime.ClientAuthInfoWriter) (*GetOK, error)

Get gets reads a single h c p consul cluster

func (*Client) GetClientConfig

func (a *Client) GetClientConfig(params *GetClientConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetClientConfigOK, error)

GetClientConfig gets client config files returns the config files for a consul agent running in client mode the files are base64 encoded

func (*Client) GetSnapshot

func (a *Client) GetSnapshot(params *GetSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*GetSnapshotOK, error)

GetSnapshot gets snapshot retrieves an existing snapshot

func (*Client) List

func (a *Client) List(params *ListParams, authInfo runtime.ClientAuthInfoWriter) (*ListOK, error)

List lists lists all h c p consul clusters

func (*Client) ListSnapshots

func (a *Client) ListSnapshots(params *ListSnapshotsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSnapshotsOK, error)

ListSnapshots lists snapshots lists snapshots

func (*Client) ListUpgradeVersions

func (a *Client) ListUpgradeVersions(params *ListUpgradeVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListUpgradeVersionsOK, error)

ListUpgradeVersions lists upgrade versions returns the versions available for this consul cluster to upgrade to

func (*Client) ListVersions

func (a *Client) ListVersions(params *ListVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListVersionsOK, error)

ListVersions lists versions returns the versions available for this org and project

func (*Client) ListVersions2

func (a *Client) ListVersions2(params *ListVersions2Params, authInfo runtime.ClientAuthInfoWriter) (*ListVersions2OK, error)

ListVersions2 lists versions returns the versions available for this org and project

func (*Client) RestoreSnapshot

func (a *Client) RestoreSnapshot(params *RestoreSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*RestoreSnapshotOK, error)

RestoreSnapshot restores snapshot restores a snapshot on a given cluster asynchronously

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Update

func (a *Client) Update(params *UpdateParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateOK, error)

Update updates updates the properties of an existing h c p consul cluster

func (*Client) UpdateSnapshot

func (a *Client) UpdateSnapshot(params *UpdateSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSnapshotOK, error)

UpdateSnapshot updates snapshot updates an existing snapshot

Right now only the name can be changed.

type ClientService

type ClientService interface {
	Create(params *CreateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateOK, error)

	CreateCustomerMasterACLToken(params *CreateCustomerMasterACLTokenParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCustomerMasterACLTokenOK, error)

	CreateSnapshot(params *CreateSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSnapshotOK, error)

	Delete(params *DeleteParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteOK, error)

	DeleteSnapshot(params *DeleteSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSnapshotOK, error)

	Get(params *GetParams, authInfo runtime.ClientAuthInfoWriter) (*GetOK, error)

	GetClientConfig(params *GetClientConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetClientConfigOK, error)

	GetSnapshot(params *GetSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*GetSnapshotOK, error)

	List(params *ListParams, authInfo runtime.ClientAuthInfoWriter) (*ListOK, error)

	ListSnapshots(params *ListSnapshotsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSnapshotsOK, error)

	ListUpgradeVersions(params *ListUpgradeVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListUpgradeVersionsOK, error)

	ListVersions(params *ListVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListVersionsOK, error)

	ListVersions2(params *ListVersions2Params, authInfo runtime.ClientAuthInfoWriter) (*ListVersions2OK, error)

	RestoreSnapshot(params *RestoreSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*RestoreSnapshotOK, error)

	Update(params *UpdateParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateOK, error)

	UpdateSnapshot(params *UpdateSnapshotParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSnapshotOK, 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 consul service API client.

type CreateCustomerMasterACLTokenDefault

type CreateCustomerMasterACLTokenDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

CreateCustomerMasterACLTokenDefault handles this case with default header values.

An unexpected error response.

func NewCreateCustomerMasterACLTokenDefault

func NewCreateCustomerMasterACLTokenDefault(code int) *CreateCustomerMasterACLTokenDefault

NewCreateCustomerMasterACLTokenDefault creates a CreateCustomerMasterACLTokenDefault with default headers values

func (*CreateCustomerMasterACLTokenDefault) Code

Code gets the status code for the create customer master ACL token default response

func (*CreateCustomerMasterACLTokenDefault) Error

func (*CreateCustomerMasterACLTokenDefault) GetPayload

type CreateCustomerMasterACLTokenOK

type CreateCustomerMasterACLTokenOK struct {
	Payload *models.HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse
}

CreateCustomerMasterACLTokenOK handles this case with default header values.

A successful response.

func NewCreateCustomerMasterACLTokenOK

func NewCreateCustomerMasterACLTokenOK() *CreateCustomerMasterACLTokenOK

NewCreateCustomerMasterACLTokenOK creates a CreateCustomerMasterACLTokenOK with default headers values

func (*CreateCustomerMasterACLTokenOK) Error

type CreateCustomerMasterACLTokenParams

type CreateCustomerMasterACLTokenParams struct {

	/*Body*/
	Body *models.HashicorpCloudConsul20210204CreateCustomerMasterACLTokenRequest
	/*ID
	  id is the ID of the cluster to create a token on.

	*/
	ID string
	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string

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

CreateCustomerMasterACLTokenParams contains all the parameters to send to the API endpoint for the create customer master ACL token operation typically these are written to a http.Request

func NewCreateCustomerMasterACLTokenParams

func NewCreateCustomerMasterACLTokenParams() *CreateCustomerMasterACLTokenParams

NewCreateCustomerMasterACLTokenParams creates a new CreateCustomerMasterACLTokenParams object with the default values initialized.

func NewCreateCustomerMasterACLTokenParamsWithContext

func NewCreateCustomerMasterACLTokenParamsWithContext(ctx context.Context) *CreateCustomerMasterACLTokenParams

NewCreateCustomerMasterACLTokenParamsWithContext creates a new CreateCustomerMasterACLTokenParams object with the default values initialized, and the ability to set a context for a request

func NewCreateCustomerMasterACLTokenParamsWithHTTPClient

func NewCreateCustomerMasterACLTokenParamsWithHTTPClient(client *http.Client) *CreateCustomerMasterACLTokenParams

NewCreateCustomerMasterACLTokenParamsWithHTTPClient creates a new CreateCustomerMasterACLTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateCustomerMasterACLTokenParamsWithTimeout

func NewCreateCustomerMasterACLTokenParamsWithTimeout(timeout time.Duration) *CreateCustomerMasterACLTokenParams

NewCreateCustomerMasterACLTokenParamsWithTimeout creates a new CreateCustomerMasterACLTokenParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateCustomerMasterACLTokenParams) SetBody

SetBody adds the body to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) SetContext

SetContext adds the context to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) SetID

SetID adds the id to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) SetLocationOrganizationID

func (o *CreateCustomerMasterACLTokenParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) SetLocationProjectID

func (o *CreateCustomerMasterACLTokenParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) SetTimeout

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

SetTimeout adds the timeout to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WithBody

WithBody adds the body to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WithContext

WithContext adds the context to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WithID

WithID adds the id to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WithLocationOrganizationID

func (o *CreateCustomerMasterACLTokenParams) WithLocationOrganizationID(locationOrganizationID string) *CreateCustomerMasterACLTokenParams

WithLocationOrganizationID adds the locationOrganizationID to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WithLocationProjectID

func (o *CreateCustomerMasterACLTokenParams) WithLocationProjectID(locationProjectID string) *CreateCustomerMasterACLTokenParams

WithLocationProjectID adds the locationProjectID to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WithTimeout

WithTimeout adds the timeout to the create customer master ACL token params

func (*CreateCustomerMasterACLTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateCustomerMasterACLTokenReader

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

CreateCustomerMasterACLTokenReader is a Reader for the CreateCustomerMasterACLToken structure.

func (*CreateCustomerMasterACLTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDefault

type CreateDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

CreateDefault handles this case with default header values.

An unexpected error response.

func NewCreateDefault

func NewCreateDefault(code int) *CreateDefault

NewCreateDefault creates a CreateDefault with default headers values

func (*CreateDefault) Code

func (o *CreateDefault) Code() int

Code gets the status code for the create default response

func (*CreateDefault) Error

func (o *CreateDefault) Error() string

func (*CreateDefault) GetPayload

func (o *CreateDefault) GetPayload() *cloud.GrpcGatewayRuntimeError

type CreateOK

type CreateOK struct {
	Payload *models.HashicorpCloudConsul20210204CreateResponse
}

CreateOK handles this case with default header values.

A successful response.

func NewCreateOK

func NewCreateOK() *CreateOK

NewCreateOK creates a CreateOK with default headers values

func (*CreateOK) Error

func (o *CreateOK) Error() string

func (*CreateOK) GetPayload

type CreateParams

type CreateParams struct {

	/*Body*/
	Body *models.HashicorpCloudConsul20210204CreateRequest
	/*ClusterLocationOrganizationID
	  organization_id is the id of the organization.

	*/
	ClusterLocationOrganizationID string
	/*ClusterLocationProjectID
	  project_id is the projects id.

	*/
	ClusterLocationProjectID string

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

CreateParams contains all the parameters to send to the API endpoint for the create operation typically these are written to a http.Request

func NewCreateParams

func NewCreateParams() *CreateParams

NewCreateParams creates a new CreateParams object with the default values initialized.

func NewCreateParamsWithContext

func NewCreateParamsWithContext(ctx context.Context) *CreateParams

NewCreateParamsWithContext creates a new CreateParams object with the default values initialized, and the ability to set a context for a request

func NewCreateParamsWithHTTPClient

func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams

NewCreateParamsWithHTTPClient creates a new CreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateParamsWithTimeout

func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams

NewCreateParamsWithTimeout creates a new CreateParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateParams) SetBody

SetBody adds the body to the create params

func (*CreateParams) SetClusterLocationOrganizationID

func (o *CreateParams) SetClusterLocationOrganizationID(clusterLocationOrganizationID string)

SetClusterLocationOrganizationID adds the clusterLocationOrganizationId to the create params

func (*CreateParams) SetClusterLocationProjectID

func (o *CreateParams) SetClusterLocationProjectID(clusterLocationProjectID string)

SetClusterLocationProjectID adds the clusterLocationProjectId to the create params

func (*CreateParams) SetContext

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

SetContext adds the context to the create params

func (*CreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create params

func (*CreateParams) SetTimeout

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

SetTimeout adds the timeout to the create params

func (*CreateParams) WithBody

WithBody adds the body to the create params

func (*CreateParams) WithClusterLocationOrganizationID

func (o *CreateParams) WithClusterLocationOrganizationID(clusterLocationOrganizationID string) *CreateParams

WithClusterLocationOrganizationID adds the clusterLocationOrganizationID to the create params

func (*CreateParams) WithClusterLocationProjectID

func (o *CreateParams) WithClusterLocationProjectID(clusterLocationProjectID string) *CreateParams

WithClusterLocationProjectID adds the clusterLocationProjectID to the create params

func (*CreateParams) WithContext

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

WithContext adds the context to the create params

func (*CreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create params

func (*CreateParams) WithTimeout

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

WithTimeout adds the timeout to the create params

func (*CreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateReader

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

CreateReader is a Reader for the Create structure.

func (*CreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateSnapshotDefault

type CreateSnapshotDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

CreateSnapshotDefault handles this case with default header values.

An unexpected error response.

func NewCreateSnapshotDefault

func NewCreateSnapshotDefault(code int) *CreateSnapshotDefault

NewCreateSnapshotDefault creates a CreateSnapshotDefault with default headers values

func (*CreateSnapshotDefault) Code

func (o *CreateSnapshotDefault) Code() int

Code gets the status code for the create snapshot default response

func (*CreateSnapshotDefault) Error

func (o *CreateSnapshotDefault) Error() string

func (*CreateSnapshotDefault) GetPayload

type CreateSnapshotOK

type CreateSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204CreateSnapshotResponse
}

CreateSnapshotOK handles this case with default header values.

A successful response.

func NewCreateSnapshotOK

func NewCreateSnapshotOK() *CreateSnapshotOK

NewCreateSnapshotOK creates a CreateSnapshotOK with default headers values

func (*CreateSnapshotOK) Error

func (o *CreateSnapshotOK) Error() string

type CreateSnapshotParams

type CreateSnapshotParams struct {

	/*Body*/
	Body *models.HashicorpCloudConsul20210204CreateSnapshotRequest
	/*ResourceLocationOrganizationID
	  organization_id is the id of the organization.

	*/
	ResourceLocationOrganizationID string
	/*ResourceLocationProjectID
	  project_id is the projects id.

	*/
	ResourceLocationProjectID string

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

CreateSnapshotParams contains all the parameters to send to the API endpoint for the create snapshot operation typically these are written to a http.Request

func NewCreateSnapshotParams

func NewCreateSnapshotParams() *CreateSnapshotParams

NewCreateSnapshotParams creates a new CreateSnapshotParams object with the default values initialized.

func NewCreateSnapshotParamsWithContext

func NewCreateSnapshotParamsWithContext(ctx context.Context) *CreateSnapshotParams

NewCreateSnapshotParamsWithContext creates a new CreateSnapshotParams object with the default values initialized, and the ability to set a context for a request

func NewCreateSnapshotParamsWithHTTPClient

func NewCreateSnapshotParamsWithHTTPClient(client *http.Client) *CreateSnapshotParams

NewCreateSnapshotParamsWithHTTPClient creates a new CreateSnapshotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateSnapshotParamsWithTimeout

func NewCreateSnapshotParamsWithTimeout(timeout time.Duration) *CreateSnapshotParams

NewCreateSnapshotParamsWithTimeout creates a new CreateSnapshotParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateSnapshotParams) SetBody

SetBody adds the body to the create snapshot params

func (*CreateSnapshotParams) SetContext

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

SetContext adds the context to the create snapshot params

func (*CreateSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create snapshot params

func (*CreateSnapshotParams) SetResourceLocationOrganizationID

func (o *CreateSnapshotParams) SetResourceLocationOrganizationID(resourceLocationOrganizationID string)

SetResourceLocationOrganizationID adds the resourceLocationOrganizationId to the create snapshot params

func (*CreateSnapshotParams) SetResourceLocationProjectID

func (o *CreateSnapshotParams) SetResourceLocationProjectID(resourceLocationProjectID string)

SetResourceLocationProjectID adds the resourceLocationProjectId to the create snapshot params

func (*CreateSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the create snapshot params

func (*CreateSnapshotParams) WithBody

WithBody adds the body to the create snapshot params

func (*CreateSnapshotParams) WithContext

WithContext adds the context to the create snapshot params

func (*CreateSnapshotParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create snapshot params

func (*CreateSnapshotParams) WithResourceLocationOrganizationID

func (o *CreateSnapshotParams) WithResourceLocationOrganizationID(resourceLocationOrganizationID string) *CreateSnapshotParams

WithResourceLocationOrganizationID adds the resourceLocationOrganizationID to the create snapshot params

func (*CreateSnapshotParams) WithResourceLocationProjectID

func (o *CreateSnapshotParams) WithResourceLocationProjectID(resourceLocationProjectID string) *CreateSnapshotParams

WithResourceLocationProjectID adds the resourceLocationProjectID to the create snapshot params

func (*CreateSnapshotParams) WithTimeout

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

WithTimeout adds the timeout to the create snapshot params

func (*CreateSnapshotParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateSnapshotReader

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

CreateSnapshotReader is a Reader for the CreateSnapshot structure.

func (*CreateSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDefault

type DeleteDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

DeleteDefault handles this case with default header values.

An unexpected error response.

func NewDeleteDefault

func NewDeleteDefault(code int) *DeleteDefault

NewDeleteDefault creates a DeleteDefault with default headers values

func (*DeleteDefault) Code

func (o *DeleteDefault) Code() int

Code gets the status code for the delete default response

func (*DeleteDefault) Error

func (o *DeleteDefault) Error() string

func (*DeleteDefault) GetPayload

func (o *DeleteDefault) GetPayload() *cloud.GrpcGatewayRuntimeError

type DeleteOK

type DeleteOK struct {
	Payload *models.HashicorpCloudConsul20210204DeleteResponse
}

DeleteOK handles this case with default header values.

A successful response.

func NewDeleteOK

func NewDeleteOK() *DeleteOK

NewDeleteOK creates a DeleteOK with default headers values

func (*DeleteOK) Error

func (o *DeleteOK) Error() string

func (*DeleteOK) GetPayload

type DeleteParams

type DeleteParams struct {

	/*ID
	  id is the unique ID of the HCC cluster to get

	*/
	ID string
	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string

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

DeleteParams contains all the parameters to send to the API endpoint for the delete operation typically these are written to a http.Request

func NewDeleteParams

func NewDeleteParams() *DeleteParams

NewDeleteParams creates a new DeleteParams object with the default values initialized.

func NewDeleteParamsWithContext

func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams

NewDeleteParamsWithContext creates a new DeleteParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteParamsWithHTTPClient

func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams

NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteParamsWithTimeout

func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams

NewDeleteParamsWithTimeout creates a new DeleteParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteParams) SetContext

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

SetContext adds the context to the delete params

func (*DeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) SetID

func (o *DeleteParams) SetID(id string)

SetID adds the id to the delete params

func (*DeleteParams) SetLocationOrganizationID

func (o *DeleteParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the delete params

func (*DeleteParams) SetLocationProjectID

func (o *DeleteParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the delete params

func (*DeleteParams) SetLocationRegionProvider

func (o *DeleteParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the delete params

func (*DeleteParams) SetLocationRegionRegion

func (o *DeleteParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the delete params

func (*DeleteParams) SetTimeout

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

SetTimeout adds the timeout to the delete params

func (*DeleteParams) WithContext

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

WithContext adds the context to the delete params

func (*DeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) WithID

func (o *DeleteParams) WithID(id string) *DeleteParams

WithID adds the id to the delete params

func (*DeleteParams) WithLocationOrganizationID

func (o *DeleteParams) WithLocationOrganizationID(locationOrganizationID string) *DeleteParams

WithLocationOrganizationID adds the locationOrganizationID to the delete params

func (*DeleteParams) WithLocationProjectID

func (o *DeleteParams) WithLocationProjectID(locationProjectID string) *DeleteParams

WithLocationProjectID adds the locationProjectID to the delete params

func (*DeleteParams) WithLocationRegionProvider

func (o *DeleteParams) WithLocationRegionProvider(locationRegionProvider *string) *DeleteParams

WithLocationRegionProvider adds the locationRegionProvider to the delete params

func (*DeleteParams) WithLocationRegionRegion

func (o *DeleteParams) WithLocationRegionRegion(locationRegionRegion *string) *DeleteParams

WithLocationRegionRegion adds the locationRegionRegion to the delete params

func (*DeleteParams) WithTimeout

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

WithTimeout adds the timeout to the delete params

func (*DeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteReader

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

DeleteReader is a Reader for the Delete structure.

func (*DeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSnapshotDefault

type DeleteSnapshotDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

DeleteSnapshotDefault handles this case with default header values.

An unexpected error response.

func NewDeleteSnapshotDefault

func NewDeleteSnapshotDefault(code int) *DeleteSnapshotDefault

NewDeleteSnapshotDefault creates a DeleteSnapshotDefault with default headers values

func (*DeleteSnapshotDefault) Code

func (o *DeleteSnapshotDefault) Code() int

Code gets the status code for the delete snapshot default response

func (*DeleteSnapshotDefault) Error

func (o *DeleteSnapshotDefault) Error() string

func (*DeleteSnapshotDefault) GetPayload

type DeleteSnapshotOK

type DeleteSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204DeleteSnapshotResponse
}

DeleteSnapshotOK handles this case with default header values.

A successful response.

func NewDeleteSnapshotOK

func NewDeleteSnapshotOK() *DeleteSnapshotOK

NewDeleteSnapshotOK creates a DeleteSnapshotOK with default headers values

func (*DeleteSnapshotOK) Error

func (o *DeleteSnapshotOK) Error() string

type DeleteSnapshotParams

type DeleteSnapshotParams struct {

	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string
	/*SnapshotID
	  snapshot_id represents the snapshot to delete.

	*/
	SnapshotID string

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

DeleteSnapshotParams contains all the parameters to send to the API endpoint for the delete snapshot operation typically these are written to a http.Request

func NewDeleteSnapshotParams

func NewDeleteSnapshotParams() *DeleteSnapshotParams

NewDeleteSnapshotParams creates a new DeleteSnapshotParams object with the default values initialized.

func NewDeleteSnapshotParamsWithContext

func NewDeleteSnapshotParamsWithContext(ctx context.Context) *DeleteSnapshotParams

NewDeleteSnapshotParamsWithContext creates a new DeleteSnapshotParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteSnapshotParamsWithHTTPClient

func NewDeleteSnapshotParamsWithHTTPClient(client *http.Client) *DeleteSnapshotParams

NewDeleteSnapshotParamsWithHTTPClient creates a new DeleteSnapshotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteSnapshotParamsWithTimeout

func NewDeleteSnapshotParamsWithTimeout(timeout time.Duration) *DeleteSnapshotParams

NewDeleteSnapshotParamsWithTimeout creates a new DeleteSnapshotParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteSnapshotParams) SetContext

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

SetContext adds the context to the delete snapshot params

func (*DeleteSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete snapshot params

func (*DeleteSnapshotParams) SetLocationOrganizationID

func (o *DeleteSnapshotParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the delete snapshot params

func (*DeleteSnapshotParams) SetLocationProjectID

func (o *DeleteSnapshotParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the delete snapshot params

func (*DeleteSnapshotParams) SetLocationRegionProvider

func (o *DeleteSnapshotParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the delete snapshot params

func (*DeleteSnapshotParams) SetLocationRegionRegion

func (o *DeleteSnapshotParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the delete snapshot params

func (*DeleteSnapshotParams) SetSnapshotID

func (o *DeleteSnapshotParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the delete snapshot params

func (*DeleteSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the delete snapshot params

func (*DeleteSnapshotParams) WithContext

WithContext adds the context to the delete snapshot params

func (*DeleteSnapshotParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete snapshot params

func (*DeleteSnapshotParams) WithLocationOrganizationID

func (o *DeleteSnapshotParams) WithLocationOrganizationID(locationOrganizationID string) *DeleteSnapshotParams

WithLocationOrganizationID adds the locationOrganizationID to the delete snapshot params

func (*DeleteSnapshotParams) WithLocationProjectID

func (o *DeleteSnapshotParams) WithLocationProjectID(locationProjectID string) *DeleteSnapshotParams

WithLocationProjectID adds the locationProjectID to the delete snapshot params

func (*DeleteSnapshotParams) WithLocationRegionProvider

func (o *DeleteSnapshotParams) WithLocationRegionProvider(locationRegionProvider *string) *DeleteSnapshotParams

WithLocationRegionProvider adds the locationRegionProvider to the delete snapshot params

func (*DeleteSnapshotParams) WithLocationRegionRegion

func (o *DeleteSnapshotParams) WithLocationRegionRegion(locationRegionRegion *string) *DeleteSnapshotParams

WithLocationRegionRegion adds the locationRegionRegion to the delete snapshot params

func (*DeleteSnapshotParams) WithSnapshotID

func (o *DeleteSnapshotParams) WithSnapshotID(snapshotID string) *DeleteSnapshotParams

WithSnapshotID adds the snapshotID to the delete snapshot params

func (*DeleteSnapshotParams) WithTimeout

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

WithTimeout adds the timeout to the delete snapshot params

func (*DeleteSnapshotParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteSnapshotReader

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

DeleteSnapshotReader is a Reader for the DeleteSnapshot structure.

func (*DeleteSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetClientConfigDefault

type GetClientConfigDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

GetClientConfigDefault handles this case with default header values.

An unexpected error response.

func NewGetClientConfigDefault

func NewGetClientConfigDefault(code int) *GetClientConfigDefault

NewGetClientConfigDefault creates a GetClientConfigDefault with default headers values

func (*GetClientConfigDefault) Code

func (o *GetClientConfigDefault) Code() int

Code gets the status code for the get client config default response

func (*GetClientConfigDefault) Error

func (o *GetClientConfigDefault) Error() string

func (*GetClientConfigDefault) GetPayload

type GetClientConfigOK

type GetClientConfigOK struct {
	Payload *models.HashicorpCloudConsul20210204GetClientConfigResponse
}

GetClientConfigOK handles this case with default header values.

A successful response.

func NewGetClientConfigOK

func NewGetClientConfigOK() *GetClientConfigOK

NewGetClientConfigOK creates a GetClientConfigOK with default headers values

func (*GetClientConfigOK) Error

func (o *GetClientConfigOK) Error() string

type GetClientConfigParams

type GetClientConfigParams struct {

	/*Bundle
	  bundle asks the service to respond with a file bundle as a zip archive.

	*/
	Bundle *bool
	/*ID
	  id is the unique ID of the HCP Consul cluster to get

	*/
	ID string
	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string

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

GetClientConfigParams contains all the parameters to send to the API endpoint for the get client config operation typically these are written to a http.Request

func NewGetClientConfigParams

func NewGetClientConfigParams() *GetClientConfigParams

NewGetClientConfigParams creates a new GetClientConfigParams object with the default values initialized.

func NewGetClientConfigParamsWithContext

func NewGetClientConfigParamsWithContext(ctx context.Context) *GetClientConfigParams

NewGetClientConfigParamsWithContext creates a new GetClientConfigParams object with the default values initialized, and the ability to set a context for a request

func NewGetClientConfigParamsWithHTTPClient

func NewGetClientConfigParamsWithHTTPClient(client *http.Client) *GetClientConfigParams

NewGetClientConfigParamsWithHTTPClient creates a new GetClientConfigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetClientConfigParamsWithTimeout

func NewGetClientConfigParamsWithTimeout(timeout time.Duration) *GetClientConfigParams

NewGetClientConfigParamsWithTimeout creates a new GetClientConfigParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetClientConfigParams) SetBundle

func (o *GetClientConfigParams) SetBundle(bundle *bool)

SetBundle adds the bundle to the get client config params

func (*GetClientConfigParams) SetContext

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

SetContext adds the context to the get client config params

func (*GetClientConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get client config params

func (*GetClientConfigParams) SetID

func (o *GetClientConfigParams) SetID(id string)

SetID adds the id to the get client config params

func (*GetClientConfigParams) SetLocationOrganizationID

func (o *GetClientConfigParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the get client config params

func (*GetClientConfigParams) SetLocationProjectID

func (o *GetClientConfigParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the get client config params

func (*GetClientConfigParams) SetLocationRegionProvider

func (o *GetClientConfigParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the get client config params

func (*GetClientConfigParams) SetLocationRegionRegion

func (o *GetClientConfigParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the get client config params

func (*GetClientConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get client config params

func (*GetClientConfigParams) WithBundle

func (o *GetClientConfigParams) WithBundle(bundle *bool) *GetClientConfigParams

WithBundle adds the bundle to the get client config params

func (*GetClientConfigParams) WithContext

WithContext adds the context to the get client config params

func (*GetClientConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get client config params

func (*GetClientConfigParams) WithID

WithID adds the id to the get client config params

func (*GetClientConfigParams) WithLocationOrganizationID

func (o *GetClientConfigParams) WithLocationOrganizationID(locationOrganizationID string) *GetClientConfigParams

WithLocationOrganizationID adds the locationOrganizationID to the get client config params

func (*GetClientConfigParams) WithLocationProjectID

func (o *GetClientConfigParams) WithLocationProjectID(locationProjectID string) *GetClientConfigParams

WithLocationProjectID adds the locationProjectID to the get client config params

func (*GetClientConfigParams) WithLocationRegionProvider

func (o *GetClientConfigParams) WithLocationRegionProvider(locationRegionProvider *string) *GetClientConfigParams

WithLocationRegionProvider adds the locationRegionProvider to the get client config params

func (*GetClientConfigParams) WithLocationRegionRegion

func (o *GetClientConfigParams) WithLocationRegionRegion(locationRegionRegion *string) *GetClientConfigParams

WithLocationRegionRegion adds the locationRegionRegion to the get client config params

func (*GetClientConfigParams) WithTimeout

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

WithTimeout adds the timeout to the get client config params

func (*GetClientConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetClientConfigReader

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

GetClientConfigReader is a Reader for the GetClientConfig structure.

func (*GetClientConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDefault

type GetDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

GetDefault handles this case with default header values.

An unexpected error response.

func NewGetDefault

func NewGetDefault(code int) *GetDefault

NewGetDefault creates a GetDefault with default headers values

func (*GetDefault) Code

func (o *GetDefault) Code() int

Code gets the status code for the get default response

func (*GetDefault) Error

func (o *GetDefault) Error() string

func (*GetDefault) GetPayload

func (o *GetDefault) GetPayload() *cloud.GrpcGatewayRuntimeError

type GetOK

type GetOK struct {
	Payload *models.HashicorpCloudConsul20210204GetResponse
}

GetOK handles this case with default header values.

A successful response.

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates a GetOK with default headers values

func (*GetOK) Error

func (o *GetOK) Error() string

func (*GetOK) GetPayload

type GetParams

type GetParams struct {

	/*ID
	  id is the unique ID of the HCC cluster to get

	*/
	ID string
	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string

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

GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request

func NewGetParams

func NewGetParams() *GetParams

NewGetParams creates a new GetParams object with the default values initialized.

func NewGetParamsWithContext

func NewGetParamsWithContext(ctx context.Context) *GetParams

NewGetParamsWithContext creates a new GetParams object with the default values initialized, and the ability to set a context for a request

func NewGetParamsWithHTTPClient

func NewGetParamsWithHTTPClient(client *http.Client) *GetParams

NewGetParamsWithHTTPClient creates a new GetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetParamsWithTimeout

func NewGetParamsWithTimeout(timeout time.Duration) *GetParams

NewGetParamsWithTimeout creates a new GetParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetParams) SetContext

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

SetContext adds the context to the get params

func (*GetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get params

func (*GetParams) SetID

func (o *GetParams) SetID(id string)

SetID adds the id to the get params

func (*GetParams) SetLocationOrganizationID

func (o *GetParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the get params

func (*GetParams) SetLocationProjectID

func (o *GetParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the get params

func (*GetParams) SetLocationRegionProvider

func (o *GetParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the get params

func (*GetParams) SetLocationRegionRegion

func (o *GetParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the get params

func (*GetParams) SetTimeout

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

SetTimeout adds the timeout to the get params

func (*GetParams) WithContext

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

WithContext adds the context to the get params

func (*GetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get params

func (*GetParams) WithID

func (o *GetParams) WithID(id string) *GetParams

WithID adds the id to the get params

func (*GetParams) WithLocationOrganizationID

func (o *GetParams) WithLocationOrganizationID(locationOrganizationID string) *GetParams

WithLocationOrganizationID adds the locationOrganizationID to the get params

func (*GetParams) WithLocationProjectID

func (o *GetParams) WithLocationProjectID(locationProjectID string) *GetParams

WithLocationProjectID adds the locationProjectID to the get params

func (*GetParams) WithLocationRegionProvider

func (o *GetParams) WithLocationRegionProvider(locationRegionProvider *string) *GetParams

WithLocationRegionProvider adds the locationRegionProvider to the get params

func (*GetParams) WithLocationRegionRegion

func (o *GetParams) WithLocationRegionRegion(locationRegionRegion *string) *GetParams

WithLocationRegionRegion adds the locationRegionRegion to the get params

func (*GetParams) WithTimeout

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

WithTimeout adds the timeout to the get params

func (*GetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReader

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

GetReader is a Reader for the Get structure.

func (*GetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSnapshotDefault

type GetSnapshotDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

GetSnapshotDefault handles this case with default header values.

An unexpected error response.

func NewGetSnapshotDefault

func NewGetSnapshotDefault(code int) *GetSnapshotDefault

NewGetSnapshotDefault creates a GetSnapshotDefault with default headers values

func (*GetSnapshotDefault) Code

func (o *GetSnapshotDefault) Code() int

Code gets the status code for the get snapshot default response

func (*GetSnapshotDefault) Error

func (o *GetSnapshotDefault) Error() string

func (*GetSnapshotDefault) GetPayload

type GetSnapshotOK

type GetSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204GetSnapshotResponse
}

GetSnapshotOK handles this case with default header values.

A successful response.

func NewGetSnapshotOK

func NewGetSnapshotOK() *GetSnapshotOK

NewGetSnapshotOK creates a GetSnapshotOK with default headers values

func (*GetSnapshotOK) Error

func (o *GetSnapshotOK) Error() string

func (*GetSnapshotOK) GetPayload

type GetSnapshotParams

type GetSnapshotParams struct {

	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string
	/*SnapshotID
	  snapshot_id represents the snapshot to get.

	*/
	SnapshotID string

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

GetSnapshotParams contains all the parameters to send to the API endpoint for the get snapshot operation typically these are written to a http.Request

func NewGetSnapshotParams

func NewGetSnapshotParams() *GetSnapshotParams

NewGetSnapshotParams creates a new GetSnapshotParams object with the default values initialized.

func NewGetSnapshotParamsWithContext

func NewGetSnapshotParamsWithContext(ctx context.Context) *GetSnapshotParams

NewGetSnapshotParamsWithContext creates a new GetSnapshotParams object with the default values initialized, and the ability to set a context for a request

func NewGetSnapshotParamsWithHTTPClient

func NewGetSnapshotParamsWithHTTPClient(client *http.Client) *GetSnapshotParams

NewGetSnapshotParamsWithHTTPClient creates a new GetSnapshotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSnapshotParamsWithTimeout

func NewGetSnapshotParamsWithTimeout(timeout time.Duration) *GetSnapshotParams

NewGetSnapshotParamsWithTimeout creates a new GetSnapshotParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSnapshotParams) SetContext

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

SetContext adds the context to the get snapshot params

func (*GetSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get snapshot params

func (*GetSnapshotParams) SetLocationOrganizationID

func (o *GetSnapshotParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the get snapshot params

func (*GetSnapshotParams) SetLocationProjectID

func (o *GetSnapshotParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the get snapshot params

func (*GetSnapshotParams) SetLocationRegionProvider

func (o *GetSnapshotParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the get snapshot params

func (*GetSnapshotParams) SetLocationRegionRegion

func (o *GetSnapshotParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the get snapshot params

func (*GetSnapshotParams) SetSnapshotID

func (o *GetSnapshotParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the get snapshot params

func (*GetSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the get snapshot params

func (*GetSnapshotParams) WithContext

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

WithContext adds the context to the get snapshot params

func (*GetSnapshotParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get snapshot params

func (*GetSnapshotParams) WithLocationOrganizationID

func (o *GetSnapshotParams) WithLocationOrganizationID(locationOrganizationID string) *GetSnapshotParams

WithLocationOrganizationID adds the locationOrganizationID to the get snapshot params

func (*GetSnapshotParams) WithLocationProjectID

func (o *GetSnapshotParams) WithLocationProjectID(locationProjectID string) *GetSnapshotParams

WithLocationProjectID adds the locationProjectID to the get snapshot params

func (*GetSnapshotParams) WithLocationRegionProvider

func (o *GetSnapshotParams) WithLocationRegionProvider(locationRegionProvider *string) *GetSnapshotParams

WithLocationRegionProvider adds the locationRegionProvider to the get snapshot params

func (*GetSnapshotParams) WithLocationRegionRegion

func (o *GetSnapshotParams) WithLocationRegionRegion(locationRegionRegion *string) *GetSnapshotParams

WithLocationRegionRegion adds the locationRegionRegion to the get snapshot params

func (*GetSnapshotParams) WithSnapshotID

func (o *GetSnapshotParams) WithSnapshotID(snapshotID string) *GetSnapshotParams

WithSnapshotID adds the snapshotID to the get snapshot params

func (*GetSnapshotParams) WithTimeout

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

WithTimeout adds the timeout to the get snapshot params

func (*GetSnapshotParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSnapshotReader

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

GetSnapshotReader is a Reader for the GetSnapshot structure.

func (*GetSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDefault

type ListDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

ListDefault handles this case with default header values.

An unexpected error response.

func NewListDefault

func NewListDefault(code int) *ListDefault

NewListDefault creates a ListDefault with default headers values

func (*ListDefault) Code

func (o *ListDefault) Code() int

Code gets the status code for the list default response

func (*ListDefault) Error

func (o *ListDefault) Error() string

func (*ListDefault) GetPayload

func (o *ListDefault) GetPayload() *cloud.GrpcGatewayRuntimeError

type ListOK

type ListOK struct {
	Payload *models.HashicorpCloudConsul20210204ListResponse
}

ListOK handles this case with default header values.

A successful response.

func NewListOK

func NewListOK() *ListOK

NewListOK creates a ListOK with default headers values

func (*ListOK) Error

func (o *ListOK) Error() string

func (*ListOK) GetPayload

type ListParams

type ListParams struct {

	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string
	/*PaginationNextPageToken
	  Specifies a page token to use to retrieve the next page. Set this to the
	`next_page_token` returned by previous list requests to get the next page of
	results. If set, `previous_page_token` must not be set.

	*/
	PaginationNextPageToken *string
	/*PaginationPageSize
	  The max number of results per page that should be returned. If the number
	of available results is larger than `page_size`, a `next_page_token` is
	returned which can be used to get the next page of results in subsequent
	requests. A value of zero will cause `page_size` to be defaulted.

	*/
	PaginationPageSize *int64
	/*PaginationPreviousPageToken
	  Specifies a page token to use to retrieve the previous page. Set this to
	the `previous_page_token` returned by previous list requests to get the
	previous page of results. If set, `next_page_token` must not be set.

	*/
	PaginationPreviousPageToken *string

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

ListParams contains all the parameters to send to the API endpoint for the list operation typically these are written to a http.Request

func NewListParams

func NewListParams() *ListParams

NewListParams creates a new ListParams object with the default values initialized.

func NewListParamsWithContext

func NewListParamsWithContext(ctx context.Context) *ListParams

NewListParamsWithContext creates a new ListParams object with the default values initialized, and the ability to set a context for a request

func NewListParamsWithHTTPClient

func NewListParamsWithHTTPClient(client *http.Client) *ListParams

NewListParamsWithHTTPClient creates a new ListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListParamsWithTimeout

func NewListParamsWithTimeout(timeout time.Duration) *ListParams

NewListParamsWithTimeout creates a new ListParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListParams) SetContext

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

SetContext adds the context to the list params

func (*ListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list params

func (*ListParams) SetLocationOrganizationID

func (o *ListParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the list params

func (*ListParams) SetLocationProjectID

func (o *ListParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the list params

func (*ListParams) SetLocationRegionProvider

func (o *ListParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the list params

func (*ListParams) SetLocationRegionRegion

func (o *ListParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the list params

func (*ListParams) SetPaginationNextPageToken

func (o *ListParams) SetPaginationNextPageToken(paginationNextPageToken *string)

SetPaginationNextPageToken adds the paginationNextPageToken to the list params

func (*ListParams) SetPaginationPageSize

func (o *ListParams) SetPaginationPageSize(paginationPageSize *int64)

SetPaginationPageSize adds the paginationPageSize to the list params

func (*ListParams) SetPaginationPreviousPageToken

func (o *ListParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string)

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list params

func (*ListParams) SetTimeout

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

SetTimeout adds the timeout to the list params

func (*ListParams) WithContext

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

WithContext adds the context to the list params

func (*ListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list params

func (*ListParams) WithLocationOrganizationID

func (o *ListParams) WithLocationOrganizationID(locationOrganizationID string) *ListParams

WithLocationOrganizationID adds the locationOrganizationID to the list params

func (*ListParams) WithLocationProjectID

func (o *ListParams) WithLocationProjectID(locationProjectID string) *ListParams

WithLocationProjectID adds the locationProjectID to the list params

func (*ListParams) WithLocationRegionProvider

func (o *ListParams) WithLocationRegionProvider(locationRegionProvider *string) *ListParams

WithLocationRegionProvider adds the locationRegionProvider to the list params

func (*ListParams) WithLocationRegionRegion

func (o *ListParams) WithLocationRegionRegion(locationRegionRegion *string) *ListParams

WithLocationRegionRegion adds the locationRegionRegion to the list params

func (*ListParams) WithPaginationNextPageToken

func (o *ListParams) WithPaginationNextPageToken(paginationNextPageToken *string) *ListParams

WithPaginationNextPageToken adds the paginationNextPageToken to the list params

func (*ListParams) WithPaginationPageSize

func (o *ListParams) WithPaginationPageSize(paginationPageSize *int64) *ListParams

WithPaginationPageSize adds the paginationPageSize to the list params

func (*ListParams) WithPaginationPreviousPageToken

func (o *ListParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *ListParams

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list params

func (*ListParams) WithTimeout

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

WithTimeout adds the timeout to the list params

func (*ListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListReader

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

ListReader is a Reader for the List structure.

func (*ListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSnapshotsDefault

type ListSnapshotsDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

ListSnapshotsDefault handles this case with default header values.

An unexpected error response.

func NewListSnapshotsDefault

func NewListSnapshotsDefault(code int) *ListSnapshotsDefault

NewListSnapshotsDefault creates a ListSnapshotsDefault with default headers values

func (*ListSnapshotsDefault) Code

func (o *ListSnapshotsDefault) Code() int

Code gets the status code for the list snapshots default response

func (*ListSnapshotsDefault) Error

func (o *ListSnapshotsDefault) Error() string

func (*ListSnapshotsDefault) GetPayload

type ListSnapshotsOK

type ListSnapshotsOK struct {
	Payload *models.HashicorpCloudConsul20210204ListSnapshotsResponse
}

ListSnapshotsOK handles this case with default header values.

A successful response.

func NewListSnapshotsOK

func NewListSnapshotsOK() *ListSnapshotsOK

NewListSnapshotsOK creates a ListSnapshotsOK with default headers values

func (*ListSnapshotsOK) Error

func (o *ListSnapshotsOK) Error() string

type ListSnapshotsParams

type ListSnapshotsParams struct {

	/*PaginationNextPageToken
	  Specifies a page token to use to retrieve the next page. Set this to the
	`next_page_token` returned by previous list requests to get the next page of
	results. If set, `previous_page_token` must not be set.

	*/
	PaginationNextPageToken *string
	/*PaginationPageSize
	  The max number of results per page that should be returned. If the number
	of available results is larger than `page_size`, a `next_page_token` is
	returned which can be used to get the next page of results in subsequent
	requests. A value of zero will cause `page_size` to be defaulted.

	*/
	PaginationPageSize *int64
	/*PaginationPreviousPageToken
	  Specifies a page token to use to retrieve the previous page. Set this to
	the `previous_page_token` returned by previous list requests to get the
	previous page of results. If set, `next_page_token` must not be set.

	*/
	PaginationPreviousPageToken *string
	/*ResourceDescription
	  description is a human-friendly description for this link. This is
	used primarily for informational purposes such as error messages.

	*/
	ResourceDescription *string
	/*ResourceID
	  id is the identifier for this resource.

	*/
	ResourceID *string
	/*ResourceLocationOrganizationID
	  organization_id is the id of the organization.

	*/
	ResourceLocationOrganizationID string
	/*ResourceLocationProjectID
	  project_id is the projects id.

	*/
	ResourceLocationProjectID string
	/*ResourceLocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	ResourceLocationRegionProvider *string
	/*ResourceLocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	ResourceLocationRegionRegion *string
	/*ResourceType
	  type is the unique type of the resource. Each service publishes a
	unique set of types. The type value is recommended to be formatted
	in "<org>.<type>" such as "hashicorp.hvn". This is to prevent conflicts
	in the future, but any string value will work.

	*/
	ResourceType *string
	/*ResourceUUID
	  uuid is the unique UUID for this resource.

	*/
	ResourceUUID *string

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

ListSnapshotsParams contains all the parameters to send to the API endpoint for the list snapshots operation typically these are written to a http.Request

func NewListSnapshotsParams

func NewListSnapshotsParams() *ListSnapshotsParams

NewListSnapshotsParams creates a new ListSnapshotsParams object with the default values initialized.

func NewListSnapshotsParamsWithContext

func NewListSnapshotsParamsWithContext(ctx context.Context) *ListSnapshotsParams

NewListSnapshotsParamsWithContext creates a new ListSnapshotsParams object with the default values initialized, and the ability to set a context for a request

func NewListSnapshotsParamsWithHTTPClient

func NewListSnapshotsParamsWithHTTPClient(client *http.Client) *ListSnapshotsParams

NewListSnapshotsParamsWithHTTPClient creates a new ListSnapshotsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListSnapshotsParamsWithTimeout

func NewListSnapshotsParamsWithTimeout(timeout time.Duration) *ListSnapshotsParams

NewListSnapshotsParamsWithTimeout creates a new ListSnapshotsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListSnapshotsParams) SetContext

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

SetContext adds the context to the list snapshots params

func (*ListSnapshotsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list snapshots params

func (*ListSnapshotsParams) SetPaginationNextPageToken

func (o *ListSnapshotsParams) SetPaginationNextPageToken(paginationNextPageToken *string)

SetPaginationNextPageToken adds the paginationNextPageToken to the list snapshots params

func (*ListSnapshotsParams) SetPaginationPageSize

func (o *ListSnapshotsParams) SetPaginationPageSize(paginationPageSize *int64)

SetPaginationPageSize adds the paginationPageSize to the list snapshots params

func (*ListSnapshotsParams) SetPaginationPreviousPageToken

func (o *ListSnapshotsParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string)

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list snapshots params

func (*ListSnapshotsParams) SetResourceDescription

func (o *ListSnapshotsParams) SetResourceDescription(resourceDescription *string)

SetResourceDescription adds the resourceDescription to the list snapshots params

func (*ListSnapshotsParams) SetResourceID

func (o *ListSnapshotsParams) SetResourceID(resourceID *string)

SetResourceID adds the resourceId to the list snapshots params

func (*ListSnapshotsParams) SetResourceLocationOrganizationID

func (o *ListSnapshotsParams) SetResourceLocationOrganizationID(resourceLocationOrganizationID string)

SetResourceLocationOrganizationID adds the resourceLocationOrganizationId to the list snapshots params

func (*ListSnapshotsParams) SetResourceLocationProjectID

func (o *ListSnapshotsParams) SetResourceLocationProjectID(resourceLocationProjectID string)

SetResourceLocationProjectID adds the resourceLocationProjectId to the list snapshots params

func (*ListSnapshotsParams) SetResourceLocationRegionProvider

func (o *ListSnapshotsParams) SetResourceLocationRegionProvider(resourceLocationRegionProvider *string)

SetResourceLocationRegionProvider adds the resourceLocationRegionProvider to the list snapshots params

func (*ListSnapshotsParams) SetResourceLocationRegionRegion

func (o *ListSnapshotsParams) SetResourceLocationRegionRegion(resourceLocationRegionRegion *string)

SetResourceLocationRegionRegion adds the resourceLocationRegionRegion to the list snapshots params

func (*ListSnapshotsParams) SetResourceType

func (o *ListSnapshotsParams) SetResourceType(resourceType *string)

SetResourceType adds the resourceType to the list snapshots params

func (*ListSnapshotsParams) SetResourceUUID

func (o *ListSnapshotsParams) SetResourceUUID(resourceUUID *string)

SetResourceUUID adds the resourceUuid to the list snapshots params

func (*ListSnapshotsParams) SetTimeout

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

SetTimeout adds the timeout to the list snapshots params

func (*ListSnapshotsParams) WithContext

WithContext adds the context to the list snapshots params

func (*ListSnapshotsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list snapshots params

func (*ListSnapshotsParams) WithPaginationNextPageToken

func (o *ListSnapshotsParams) WithPaginationNextPageToken(paginationNextPageToken *string) *ListSnapshotsParams

WithPaginationNextPageToken adds the paginationNextPageToken to the list snapshots params

func (*ListSnapshotsParams) WithPaginationPageSize

func (o *ListSnapshotsParams) WithPaginationPageSize(paginationPageSize *int64) *ListSnapshotsParams

WithPaginationPageSize adds the paginationPageSize to the list snapshots params

func (*ListSnapshotsParams) WithPaginationPreviousPageToken

func (o *ListSnapshotsParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *ListSnapshotsParams

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list snapshots params

func (*ListSnapshotsParams) WithResourceDescription

func (o *ListSnapshotsParams) WithResourceDescription(resourceDescription *string) *ListSnapshotsParams

WithResourceDescription adds the resourceDescription to the list snapshots params

func (*ListSnapshotsParams) WithResourceID

func (o *ListSnapshotsParams) WithResourceID(resourceID *string) *ListSnapshotsParams

WithResourceID adds the resourceID to the list snapshots params

func (*ListSnapshotsParams) WithResourceLocationOrganizationID

func (o *ListSnapshotsParams) WithResourceLocationOrganizationID(resourceLocationOrganizationID string) *ListSnapshotsParams

WithResourceLocationOrganizationID adds the resourceLocationOrganizationID to the list snapshots params

func (*ListSnapshotsParams) WithResourceLocationProjectID

func (o *ListSnapshotsParams) WithResourceLocationProjectID(resourceLocationProjectID string) *ListSnapshotsParams

WithResourceLocationProjectID adds the resourceLocationProjectID to the list snapshots params

func (*ListSnapshotsParams) WithResourceLocationRegionProvider

func (o *ListSnapshotsParams) WithResourceLocationRegionProvider(resourceLocationRegionProvider *string) *ListSnapshotsParams

WithResourceLocationRegionProvider adds the resourceLocationRegionProvider to the list snapshots params

func (*ListSnapshotsParams) WithResourceLocationRegionRegion

func (o *ListSnapshotsParams) WithResourceLocationRegionRegion(resourceLocationRegionRegion *string) *ListSnapshotsParams

WithResourceLocationRegionRegion adds the resourceLocationRegionRegion to the list snapshots params

func (*ListSnapshotsParams) WithResourceType

func (o *ListSnapshotsParams) WithResourceType(resourceType *string) *ListSnapshotsParams

WithResourceType adds the resourceType to the list snapshots params

func (*ListSnapshotsParams) WithResourceUUID

func (o *ListSnapshotsParams) WithResourceUUID(resourceUUID *string) *ListSnapshotsParams

WithResourceUUID adds the resourceUUID to the list snapshots params

func (*ListSnapshotsParams) WithTimeout

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

WithTimeout adds the timeout to the list snapshots params

func (*ListSnapshotsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListSnapshotsReader

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

ListSnapshotsReader is a Reader for the ListSnapshots structure.

func (*ListSnapshotsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUpgradeVersionsDefault

type ListUpgradeVersionsDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

ListUpgradeVersionsDefault handles this case with default header values.

An unexpected error response.

func NewListUpgradeVersionsDefault

func NewListUpgradeVersionsDefault(code int) *ListUpgradeVersionsDefault

NewListUpgradeVersionsDefault creates a ListUpgradeVersionsDefault with default headers values

func (*ListUpgradeVersionsDefault) Code

func (o *ListUpgradeVersionsDefault) Code() int

Code gets the status code for the list upgrade versions default response

func (*ListUpgradeVersionsDefault) Error

func (*ListUpgradeVersionsDefault) GetPayload

type ListUpgradeVersionsOK

type ListUpgradeVersionsOK struct {
	Payload *models.HashicorpCloudConsul20210204ListUpgradeVersionsResponse
}

ListUpgradeVersionsOK handles this case with default header values.

A successful response.

func NewListUpgradeVersionsOK

func NewListUpgradeVersionsOK() *ListUpgradeVersionsOK

NewListUpgradeVersionsOK creates a ListUpgradeVersionsOK with default headers values

func (*ListUpgradeVersionsOK) Error

func (o *ListUpgradeVersionsOK) Error() string

type ListUpgradeVersionsParams

type ListUpgradeVersionsParams struct {

	/*ID
	  id of the Consul cluster to list versions for.

	*/
	ID string
	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string

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

ListUpgradeVersionsParams contains all the parameters to send to the API endpoint for the list upgrade versions operation typically these are written to a http.Request

func NewListUpgradeVersionsParams

func NewListUpgradeVersionsParams() *ListUpgradeVersionsParams

NewListUpgradeVersionsParams creates a new ListUpgradeVersionsParams object with the default values initialized.

func NewListUpgradeVersionsParamsWithContext

func NewListUpgradeVersionsParamsWithContext(ctx context.Context) *ListUpgradeVersionsParams

NewListUpgradeVersionsParamsWithContext creates a new ListUpgradeVersionsParams object with the default values initialized, and the ability to set a context for a request

func NewListUpgradeVersionsParamsWithHTTPClient

func NewListUpgradeVersionsParamsWithHTTPClient(client *http.Client) *ListUpgradeVersionsParams

NewListUpgradeVersionsParamsWithHTTPClient creates a new ListUpgradeVersionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListUpgradeVersionsParamsWithTimeout

func NewListUpgradeVersionsParamsWithTimeout(timeout time.Duration) *ListUpgradeVersionsParams

NewListUpgradeVersionsParamsWithTimeout creates a new ListUpgradeVersionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListUpgradeVersionsParams) SetContext

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

SetContext adds the context to the list upgrade versions params

func (*ListUpgradeVersionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list upgrade versions params

func (*ListUpgradeVersionsParams) SetID

func (o *ListUpgradeVersionsParams) SetID(id string)

SetID adds the id to the list upgrade versions params

func (*ListUpgradeVersionsParams) SetLocationOrganizationID

func (o *ListUpgradeVersionsParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the list upgrade versions params

func (*ListUpgradeVersionsParams) SetLocationProjectID

func (o *ListUpgradeVersionsParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the list upgrade versions params

func (*ListUpgradeVersionsParams) SetLocationRegionProvider

func (o *ListUpgradeVersionsParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the list upgrade versions params

func (*ListUpgradeVersionsParams) SetLocationRegionRegion

func (o *ListUpgradeVersionsParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the list upgrade versions params

func (*ListUpgradeVersionsParams) SetTimeout

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

SetTimeout adds the timeout to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithContext

WithContext adds the context to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithID

WithID adds the id to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithLocationOrganizationID

func (o *ListUpgradeVersionsParams) WithLocationOrganizationID(locationOrganizationID string) *ListUpgradeVersionsParams

WithLocationOrganizationID adds the locationOrganizationID to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithLocationProjectID

func (o *ListUpgradeVersionsParams) WithLocationProjectID(locationProjectID string) *ListUpgradeVersionsParams

WithLocationProjectID adds the locationProjectID to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithLocationRegionProvider

func (o *ListUpgradeVersionsParams) WithLocationRegionProvider(locationRegionProvider *string) *ListUpgradeVersionsParams

WithLocationRegionProvider adds the locationRegionProvider to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithLocationRegionRegion

func (o *ListUpgradeVersionsParams) WithLocationRegionRegion(locationRegionRegion *string) *ListUpgradeVersionsParams

WithLocationRegionRegion adds the locationRegionRegion to the list upgrade versions params

func (*ListUpgradeVersionsParams) WithTimeout

WithTimeout adds the timeout to the list upgrade versions params

func (*ListUpgradeVersionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListUpgradeVersionsReader

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

ListUpgradeVersionsReader is a Reader for the ListUpgradeVersions structure.

func (*ListUpgradeVersionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListVersions2Default

type ListVersions2Default struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

ListVersions2Default handles this case with default header values.

An unexpected error response.

func NewListVersions2Default

func NewListVersions2Default(code int) *ListVersions2Default

NewListVersions2Default creates a ListVersions2Default with default headers values

func (*ListVersions2Default) Code

func (o *ListVersions2Default) Code() int

Code gets the status code for the list versions2 default response

func (*ListVersions2Default) Error

func (o *ListVersions2Default) Error() string

func (*ListVersions2Default) GetPayload

type ListVersions2OK

type ListVersions2OK struct {
	Payload *models.HashicorpCloudConsul20210204ListVersionsResponse
}

ListVersions2OK handles this case with default header values.

A successful response.

func NewListVersions2OK

func NewListVersions2OK() *ListVersions2OK

NewListVersions2OK creates a ListVersions2OK with default headers values

func (*ListVersions2OK) Error

func (o *ListVersions2OK) Error() string

func (*ListVersions2OK) GetPayload

type ListVersions2Params

type ListVersions2Params struct {

	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID *string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID *string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string
	/*PlatformType
	  PlatformType is an optional field specifying the platform (HCS, HCP or NOTSET)
	NOTSET, the default, will return the list of versions available for HCP.

	*/
	PlatformType *string

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

ListVersions2Params contains all the parameters to send to the API endpoint for the list versions2 operation typically these are written to a http.Request

func NewListVersions2Params

func NewListVersions2Params() *ListVersions2Params

NewListVersions2Params creates a new ListVersions2Params object with the default values initialized.

func NewListVersions2ParamsWithContext

func NewListVersions2ParamsWithContext(ctx context.Context) *ListVersions2Params

NewListVersions2ParamsWithContext creates a new ListVersions2Params object with the default values initialized, and the ability to set a context for a request

func NewListVersions2ParamsWithHTTPClient

func NewListVersions2ParamsWithHTTPClient(client *http.Client) *ListVersions2Params

NewListVersions2ParamsWithHTTPClient creates a new ListVersions2Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListVersions2ParamsWithTimeout

func NewListVersions2ParamsWithTimeout(timeout time.Duration) *ListVersions2Params

NewListVersions2ParamsWithTimeout creates a new ListVersions2Params object with the default values initialized, and the ability to set a timeout on a request

func (*ListVersions2Params) SetContext

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

SetContext adds the context to the list versions2 params

func (*ListVersions2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list versions2 params

func (*ListVersions2Params) SetLocationOrganizationID

func (o *ListVersions2Params) SetLocationOrganizationID(locationOrganizationID *string)

SetLocationOrganizationID adds the locationOrganizationId to the list versions2 params

func (*ListVersions2Params) SetLocationProjectID

func (o *ListVersions2Params) SetLocationProjectID(locationProjectID *string)

SetLocationProjectID adds the locationProjectId to the list versions2 params

func (*ListVersions2Params) SetLocationRegionProvider

func (o *ListVersions2Params) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the list versions2 params

func (*ListVersions2Params) SetLocationRegionRegion

func (o *ListVersions2Params) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the list versions2 params

func (*ListVersions2Params) SetPlatformType added in v0.13.0

func (o *ListVersions2Params) SetPlatformType(platformType *string)

SetPlatformType adds the platformType to the list versions2 params

func (*ListVersions2Params) SetTimeout

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

SetTimeout adds the timeout to the list versions2 params

func (*ListVersions2Params) WithContext

WithContext adds the context to the list versions2 params

func (*ListVersions2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list versions2 params

func (*ListVersions2Params) WithLocationOrganizationID

func (o *ListVersions2Params) WithLocationOrganizationID(locationOrganizationID *string) *ListVersions2Params

WithLocationOrganizationID adds the locationOrganizationID to the list versions2 params

func (*ListVersions2Params) WithLocationProjectID

func (o *ListVersions2Params) WithLocationProjectID(locationProjectID *string) *ListVersions2Params

WithLocationProjectID adds the locationProjectID to the list versions2 params

func (*ListVersions2Params) WithLocationRegionProvider

func (o *ListVersions2Params) WithLocationRegionProvider(locationRegionProvider *string) *ListVersions2Params

WithLocationRegionProvider adds the locationRegionProvider to the list versions2 params

func (*ListVersions2Params) WithLocationRegionRegion

func (o *ListVersions2Params) WithLocationRegionRegion(locationRegionRegion *string) *ListVersions2Params

WithLocationRegionRegion adds the locationRegionRegion to the list versions2 params

func (*ListVersions2Params) WithPlatformType added in v0.13.0

func (o *ListVersions2Params) WithPlatformType(platformType *string) *ListVersions2Params

WithPlatformType adds the platformType to the list versions2 params

func (*ListVersions2Params) WithTimeout

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

WithTimeout adds the timeout to the list versions2 params

func (*ListVersions2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListVersions2Reader

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

ListVersions2Reader is a Reader for the ListVersions2 structure.

func (*ListVersions2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListVersionsDefault

type ListVersionsDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

ListVersionsDefault handles this case with default header values.

An unexpected error response.

func NewListVersionsDefault

func NewListVersionsDefault(code int) *ListVersionsDefault

NewListVersionsDefault creates a ListVersionsDefault with default headers values

func (*ListVersionsDefault) Code

func (o *ListVersionsDefault) Code() int

Code gets the status code for the list versions default response

func (*ListVersionsDefault) Error

func (o *ListVersionsDefault) Error() string

func (*ListVersionsDefault) GetPayload

type ListVersionsOK

type ListVersionsOK struct {
	Payload *models.HashicorpCloudConsul20210204ListVersionsResponse
}

ListVersionsOK handles this case with default header values.

A successful response.

func NewListVersionsOK

func NewListVersionsOK() *ListVersionsOK

NewListVersionsOK creates a ListVersionsOK with default headers values

func (*ListVersionsOK) Error

func (o *ListVersionsOK) Error() string

type ListVersionsParams

type ListVersionsParams struct {

	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string
	/*LocationRegionProvider
	  provider is the named cloud provider ("aws", "gcp", "azure").

	*/
	LocationRegionProvider *string
	/*LocationRegionRegion
	  region is the cloud region ("us-west1", "us-east1").

	*/
	LocationRegionRegion *string
	/*PlatformType
	  PlatformType is an optional field specifying the platform (HCS, HCP or NOTSET)
	NOTSET, the default, will return the list of versions available for HCP.

	*/
	PlatformType *string

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

ListVersionsParams contains all the parameters to send to the API endpoint for the list versions operation typically these are written to a http.Request

func NewListVersionsParams

func NewListVersionsParams() *ListVersionsParams

NewListVersionsParams creates a new ListVersionsParams object with the default values initialized.

func NewListVersionsParamsWithContext

func NewListVersionsParamsWithContext(ctx context.Context) *ListVersionsParams

NewListVersionsParamsWithContext creates a new ListVersionsParams object with the default values initialized, and the ability to set a context for a request

func NewListVersionsParamsWithHTTPClient

func NewListVersionsParamsWithHTTPClient(client *http.Client) *ListVersionsParams

NewListVersionsParamsWithHTTPClient creates a new ListVersionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListVersionsParamsWithTimeout

func NewListVersionsParamsWithTimeout(timeout time.Duration) *ListVersionsParams

NewListVersionsParamsWithTimeout creates a new ListVersionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListVersionsParams) SetContext

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

SetContext adds the context to the list versions params

func (*ListVersionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list versions params

func (*ListVersionsParams) SetLocationOrganizationID

func (o *ListVersionsParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the list versions params

func (*ListVersionsParams) SetLocationProjectID

func (o *ListVersionsParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the list versions params

func (*ListVersionsParams) SetLocationRegionProvider

func (o *ListVersionsParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the list versions params

func (*ListVersionsParams) SetLocationRegionRegion

func (o *ListVersionsParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the list versions params

func (*ListVersionsParams) SetPlatformType added in v0.13.0

func (o *ListVersionsParams) SetPlatformType(platformType *string)

SetPlatformType adds the platformType to the list versions params

func (*ListVersionsParams) SetTimeout

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

SetTimeout adds the timeout to the list versions params

func (*ListVersionsParams) WithContext

WithContext adds the context to the list versions params

func (*ListVersionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list versions params

func (*ListVersionsParams) WithLocationOrganizationID

func (o *ListVersionsParams) WithLocationOrganizationID(locationOrganizationID string) *ListVersionsParams

WithLocationOrganizationID adds the locationOrganizationID to the list versions params

func (*ListVersionsParams) WithLocationProjectID

func (o *ListVersionsParams) WithLocationProjectID(locationProjectID string) *ListVersionsParams

WithLocationProjectID adds the locationProjectID to the list versions params

func (*ListVersionsParams) WithLocationRegionProvider

func (o *ListVersionsParams) WithLocationRegionProvider(locationRegionProvider *string) *ListVersionsParams

WithLocationRegionProvider adds the locationRegionProvider to the list versions params

func (*ListVersionsParams) WithLocationRegionRegion

func (o *ListVersionsParams) WithLocationRegionRegion(locationRegionRegion *string) *ListVersionsParams

WithLocationRegionRegion adds the locationRegionRegion to the list versions params

func (*ListVersionsParams) WithPlatformType added in v0.13.0

func (o *ListVersionsParams) WithPlatformType(platformType *string) *ListVersionsParams

WithPlatformType adds the platformType to the list versions params

func (*ListVersionsParams) WithTimeout

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

WithTimeout adds the timeout to the list versions params

func (*ListVersionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListVersionsReader

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

ListVersionsReader is a Reader for the ListVersions structure.

func (*ListVersionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RestoreSnapshotDefault

type RestoreSnapshotDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

RestoreSnapshotDefault handles this case with default header values.

An unexpected error response.

func NewRestoreSnapshotDefault

func NewRestoreSnapshotDefault(code int) *RestoreSnapshotDefault

NewRestoreSnapshotDefault creates a RestoreSnapshotDefault with default headers values

func (*RestoreSnapshotDefault) Code

func (o *RestoreSnapshotDefault) Code() int

Code gets the status code for the restore snapshot default response

func (*RestoreSnapshotDefault) Error

func (o *RestoreSnapshotDefault) Error() string

func (*RestoreSnapshotDefault) GetPayload

type RestoreSnapshotOK

type RestoreSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204RestoreSnapshotResponse
}

RestoreSnapshotOK handles this case with default header values.

A successful response.

func NewRestoreSnapshotOK

func NewRestoreSnapshotOK() *RestoreSnapshotOK

NewRestoreSnapshotOK creates a RestoreSnapshotOK with default headers values

func (*RestoreSnapshotOK) Error

func (o *RestoreSnapshotOK) Error() string

type RestoreSnapshotParams

type RestoreSnapshotParams struct {

	/*Body*/
	Body *models.HashicorpCloudConsul20210204RestoreSnapshotRequest
	/*ClusterID
	  cluster_id represents the cluster to restore to.

	*/
	ClusterID string
	/*LocationOrganizationID
	  organization_id is the id of the organization.

	*/
	LocationOrganizationID string
	/*LocationProjectID
	  project_id is the projects id.

	*/
	LocationProjectID string

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

RestoreSnapshotParams contains all the parameters to send to the API endpoint for the restore snapshot operation typically these are written to a http.Request

func NewRestoreSnapshotParams

func NewRestoreSnapshotParams() *RestoreSnapshotParams

NewRestoreSnapshotParams creates a new RestoreSnapshotParams object with the default values initialized.

func NewRestoreSnapshotParamsWithContext

func NewRestoreSnapshotParamsWithContext(ctx context.Context) *RestoreSnapshotParams

NewRestoreSnapshotParamsWithContext creates a new RestoreSnapshotParams object with the default values initialized, and the ability to set a context for a request

func NewRestoreSnapshotParamsWithHTTPClient

func NewRestoreSnapshotParamsWithHTTPClient(client *http.Client) *RestoreSnapshotParams

NewRestoreSnapshotParamsWithHTTPClient creates a new RestoreSnapshotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRestoreSnapshotParamsWithTimeout

func NewRestoreSnapshotParamsWithTimeout(timeout time.Duration) *RestoreSnapshotParams

NewRestoreSnapshotParamsWithTimeout creates a new RestoreSnapshotParams object with the default values initialized, and the ability to set a timeout on a request

func (*RestoreSnapshotParams) SetBody

SetBody adds the body to the restore snapshot params

func (*RestoreSnapshotParams) SetClusterID

func (o *RestoreSnapshotParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the restore snapshot params

func (*RestoreSnapshotParams) SetContext

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

SetContext adds the context to the restore snapshot params

func (*RestoreSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the restore snapshot params

func (*RestoreSnapshotParams) SetLocationOrganizationID

func (o *RestoreSnapshotParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the restore snapshot params

func (*RestoreSnapshotParams) SetLocationProjectID

func (o *RestoreSnapshotParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the restore snapshot params

func (*RestoreSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the restore snapshot params

func (*RestoreSnapshotParams) WithBody

WithBody adds the body to the restore snapshot params

func (*RestoreSnapshotParams) WithClusterID

func (o *RestoreSnapshotParams) WithClusterID(clusterID string) *RestoreSnapshotParams

WithClusterID adds the clusterID to the restore snapshot params

func (*RestoreSnapshotParams) WithContext

WithContext adds the context to the restore snapshot params

func (*RestoreSnapshotParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the restore snapshot params

func (*RestoreSnapshotParams) WithLocationOrganizationID

func (o *RestoreSnapshotParams) WithLocationOrganizationID(locationOrganizationID string) *RestoreSnapshotParams

WithLocationOrganizationID adds the locationOrganizationID to the restore snapshot params

func (*RestoreSnapshotParams) WithLocationProjectID

func (o *RestoreSnapshotParams) WithLocationProjectID(locationProjectID string) *RestoreSnapshotParams

WithLocationProjectID adds the locationProjectID to the restore snapshot params

func (*RestoreSnapshotParams) WithTimeout

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

WithTimeout adds the timeout to the restore snapshot params

func (*RestoreSnapshotParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RestoreSnapshotReader

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

RestoreSnapshotReader is a Reader for the RestoreSnapshot structure.

func (*RestoreSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDefault

type UpdateDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

UpdateDefault handles this case with default header values.

An unexpected error response.

func NewUpdateDefault

func NewUpdateDefault(code int) *UpdateDefault

NewUpdateDefault creates a UpdateDefault with default headers values

func (*UpdateDefault) Code

func (o *UpdateDefault) Code() int

Code gets the status code for the update default response

func (*UpdateDefault) Error

func (o *UpdateDefault) Error() string

func (*UpdateDefault) GetPayload

func (o *UpdateDefault) GetPayload() *cloud.GrpcGatewayRuntimeError

type UpdateOK

type UpdateOK struct {
	Payload *models.HashicorpCloudConsul20210204UpdateResponse
}

UpdateOK handles this case with default header values.

A successful response.

func NewUpdateOK

func NewUpdateOK() *UpdateOK

NewUpdateOK creates a UpdateOK with default headers values

func (*UpdateOK) Error

func (o *UpdateOK) Error() string

func (*UpdateOK) GetPayload

type UpdateParams

type UpdateParams struct {

	/*Body
	  cluster is the complete cluster resource to be updated.

	*/
	Body *models.HashicorpCloudConsul20210204Cluster
	/*ClusterID
	  id is ID of the Consul cluster.

	*/
	ClusterID string
	/*ClusterLocationOrganizationID
	  organization_id is the id of the organization.

	*/
	ClusterLocationOrganizationID string
	/*ClusterLocationProjectID
	  project_id is the projects id.

	*/
	ClusterLocationProjectID string
	/*UpdateMaskPaths
	  The set of field mask paths.

	*/
	UpdateMaskPaths []string

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

UpdateParams contains all the parameters to send to the API endpoint for the update operation typically these are written to a http.Request

func NewUpdateParams

func NewUpdateParams() *UpdateParams

NewUpdateParams creates a new UpdateParams object with the default values initialized.

func NewUpdateParamsWithContext

func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams

NewUpdateParamsWithContext creates a new UpdateParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateParamsWithHTTPClient

func NewUpdateParamsWithHTTPClient(client *http.Client) *UpdateParams

NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateParamsWithTimeout

func NewUpdateParamsWithTimeout(timeout time.Duration) *UpdateParams

NewUpdateParamsWithTimeout creates a new UpdateParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateParams) SetBody

SetBody adds the body to the update params

func (*UpdateParams) SetClusterID

func (o *UpdateParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the update params

func (*UpdateParams) SetClusterLocationOrganizationID

func (o *UpdateParams) SetClusterLocationOrganizationID(clusterLocationOrganizationID string)

SetClusterLocationOrganizationID adds the clusterLocationOrganizationId to the update params

func (*UpdateParams) SetClusterLocationProjectID

func (o *UpdateParams) SetClusterLocationProjectID(clusterLocationProjectID string)

SetClusterLocationProjectID adds the clusterLocationProjectId to the update params

func (*UpdateParams) SetContext

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

SetContext adds the context to the update params

func (*UpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update params

func (*UpdateParams) SetTimeout

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

SetTimeout adds the timeout to the update params

func (*UpdateParams) SetUpdateMaskPaths

func (o *UpdateParams) SetUpdateMaskPaths(updateMaskPaths []string)

SetUpdateMaskPaths adds the updateMaskPaths to the update params

func (*UpdateParams) WithBody

WithBody adds the body to the update params

func (*UpdateParams) WithClusterID

func (o *UpdateParams) WithClusterID(clusterID string) *UpdateParams

WithClusterID adds the clusterID to the update params

func (*UpdateParams) WithClusterLocationOrganizationID

func (o *UpdateParams) WithClusterLocationOrganizationID(clusterLocationOrganizationID string) *UpdateParams

WithClusterLocationOrganizationID adds the clusterLocationOrganizationID to the update params

func (*UpdateParams) WithClusterLocationProjectID

func (o *UpdateParams) WithClusterLocationProjectID(clusterLocationProjectID string) *UpdateParams

WithClusterLocationProjectID adds the clusterLocationProjectID to the update params

func (*UpdateParams) WithContext

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

WithContext adds the context to the update params

func (*UpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update params

func (*UpdateParams) WithTimeout

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

WithTimeout adds the timeout to the update params

func (*UpdateParams) WithUpdateMaskPaths

func (o *UpdateParams) WithUpdateMaskPaths(updateMaskPaths []string) *UpdateParams

WithUpdateMaskPaths adds the updateMaskPaths to the update params

func (*UpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateReader

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

UpdateReader is a Reader for the Update structure.

func (*UpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateSnapshotDefault

type UpdateSnapshotDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// contains filtered or unexported fields
}

UpdateSnapshotDefault handles this case with default header values.

An unexpected error response.

func NewUpdateSnapshotDefault

func NewUpdateSnapshotDefault(code int) *UpdateSnapshotDefault

NewUpdateSnapshotDefault creates a UpdateSnapshotDefault with default headers values

func (*UpdateSnapshotDefault) Code

func (o *UpdateSnapshotDefault) Code() int

Code gets the status code for the update snapshot default response

func (*UpdateSnapshotDefault) Error

func (o *UpdateSnapshotDefault) Error() string

func (*UpdateSnapshotDefault) GetPayload

type UpdateSnapshotOK

type UpdateSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204UpdateSnapshotResponse
}

UpdateSnapshotOK handles this case with default header values.

A successful response.

func NewUpdateSnapshotOK

func NewUpdateSnapshotOK() *UpdateSnapshotOK

NewUpdateSnapshotOK creates a UpdateSnapshotOK with default headers values

func (*UpdateSnapshotOK) Error

func (o *UpdateSnapshotOK) Error() string

type UpdateSnapshotParams

type UpdateSnapshotParams struct {

	/*Body
	  snapshot contains the fields to update.

	Supported fields: name

	*/
	Body *models.HashicorpCloudConsul20210204Snapshot
	/*MaskPaths
	  The set of field mask paths.

	*/
	MaskPaths []string
	/*SnapshotID
	  id is the snapshot’s ID.

	*/
	SnapshotID string
	/*SnapshotLocationOrganizationID
	  organization_id is the id of the organization.

	*/
	SnapshotLocationOrganizationID string
	/*SnapshotLocationProjectID
	  project_id is the projects id.

	*/
	SnapshotLocationProjectID string

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

UpdateSnapshotParams contains all the parameters to send to the API endpoint for the update snapshot operation typically these are written to a http.Request

func NewUpdateSnapshotParams

func NewUpdateSnapshotParams() *UpdateSnapshotParams

NewUpdateSnapshotParams creates a new UpdateSnapshotParams object with the default values initialized.

func NewUpdateSnapshotParamsWithContext

func NewUpdateSnapshotParamsWithContext(ctx context.Context) *UpdateSnapshotParams

NewUpdateSnapshotParamsWithContext creates a new UpdateSnapshotParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateSnapshotParamsWithHTTPClient

func NewUpdateSnapshotParamsWithHTTPClient(client *http.Client) *UpdateSnapshotParams

NewUpdateSnapshotParamsWithHTTPClient creates a new UpdateSnapshotParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateSnapshotParamsWithTimeout

func NewUpdateSnapshotParamsWithTimeout(timeout time.Duration) *UpdateSnapshotParams

NewUpdateSnapshotParamsWithTimeout creates a new UpdateSnapshotParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateSnapshotParams) SetBody

SetBody adds the body to the update snapshot params

func (*UpdateSnapshotParams) SetContext

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

SetContext adds the context to the update snapshot params

func (*UpdateSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update snapshot params

func (*UpdateSnapshotParams) SetMaskPaths

func (o *UpdateSnapshotParams) SetMaskPaths(maskPaths []string)

SetMaskPaths adds the maskPaths to the update snapshot params

func (*UpdateSnapshotParams) SetSnapshotID

func (o *UpdateSnapshotParams) SetSnapshotID(snapshotID string)

SetSnapshotID adds the snapshotId to the update snapshot params

func (*UpdateSnapshotParams) SetSnapshotLocationOrganizationID

func (o *UpdateSnapshotParams) SetSnapshotLocationOrganizationID(snapshotLocationOrganizationID string)

SetSnapshotLocationOrganizationID adds the snapshotLocationOrganizationId to the update snapshot params

func (*UpdateSnapshotParams) SetSnapshotLocationProjectID

func (o *UpdateSnapshotParams) SetSnapshotLocationProjectID(snapshotLocationProjectID string)

SetSnapshotLocationProjectID adds the snapshotLocationProjectId to the update snapshot params

func (*UpdateSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the update snapshot params

func (*UpdateSnapshotParams) WithBody

WithBody adds the body to the update snapshot params

func (*UpdateSnapshotParams) WithContext

WithContext adds the context to the update snapshot params

func (*UpdateSnapshotParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update snapshot params

func (*UpdateSnapshotParams) WithMaskPaths

func (o *UpdateSnapshotParams) WithMaskPaths(maskPaths []string) *UpdateSnapshotParams

WithMaskPaths adds the maskPaths to the update snapshot params

func (*UpdateSnapshotParams) WithSnapshotID

func (o *UpdateSnapshotParams) WithSnapshotID(snapshotID string) *UpdateSnapshotParams

WithSnapshotID adds the snapshotID to the update snapshot params

func (*UpdateSnapshotParams) WithSnapshotLocationOrganizationID

func (o *UpdateSnapshotParams) WithSnapshotLocationOrganizationID(snapshotLocationOrganizationID string) *UpdateSnapshotParams

WithSnapshotLocationOrganizationID adds the snapshotLocationOrganizationID to the update snapshot params

func (*UpdateSnapshotParams) WithSnapshotLocationProjectID

func (o *UpdateSnapshotParams) WithSnapshotLocationProjectID(snapshotLocationProjectID string) *UpdateSnapshotParams

WithSnapshotLocationProjectID adds the snapshotLocationProjectID to the update snapshot params

func (*UpdateSnapshotParams) WithTimeout

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

WithTimeout adds the timeout to the update snapshot params

func (*UpdateSnapshotParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateSnapshotReader

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

UpdateSnapshotReader is a Reader for the UpdateSnapshot structure.

func (*UpdateSnapshotReader) ReadResponse

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