consul_service

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 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, opts ...ClientOption) (*CreateOK, error)

Create creates creates a new h c p consul cluster

func (*Client) CreateCustomerMasterACLToken

func (a *Client) CreateCustomerMasterACLToken(params *CreateCustomerMasterACLTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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, opts ...ClientOption) (*CreateSnapshotOK, error)

CreateSnapshot creates snapshot takes a new snapshot asynchronously

func (*Client) Delete

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

Delete deletes deletes the specified h c p consul cluster

func (*Client) DeleteSnapshot

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

DeleteSnapshot deletes snapshot removes the snapshot from storage asynchronously

func (*Client) Get

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

Get gets reads a single h c p consul cluster

func (*Client) GetClientConfig

func (a *Client) GetClientConfig(params *GetClientConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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) GetClusterTelemetry

func (a *Client) GetClusterTelemetry(params *GetClusterTelemetryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterTelemetryOK, error)

GetClusterTelemetry gets cluster telemetry retrieves a snapshot of a subset of consul cluster telemetry

func (*Client) GetSnapshot

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

GetSnapshot gets snapshot retrieves an existing snapshot

func (*Client) List

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

List lists lists all h c p consul clusters

func (*Client) ListSnapshots

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

ListSnapshots lists snapshots lists snapshots

func (*Client) ListUpgradeVersions

func (a *Client) ListUpgradeVersions(params *ListUpgradeVersionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*UpdateSnapshotOK, error)

UpdateSnapshot updates snapshot updates an existing snapshot

Right now only the name can be changed.

type ClientOption added in v0.23.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

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

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

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

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

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

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

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

	GetClusterTelemetry(params *GetClusterTelemetryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClusterTelemetryOK, error)

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

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

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

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

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

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

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

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

	UpdateSnapshot(params *UpdateSnapshotParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 describes a response with status code -1, 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

func (*CreateCustomerMasterACLTokenDefault) IsClientError added in v0.23.0

func (o *CreateCustomerMasterACLTokenDefault) IsClientError() bool

IsClientError returns true when this create customer master ACL token default response has a 4xx status code

func (*CreateCustomerMasterACLTokenDefault) IsCode added in v0.23.0

IsCode returns true when this create customer master ACL token default response a status code equal to that given

func (*CreateCustomerMasterACLTokenDefault) IsRedirect added in v0.23.0

func (o *CreateCustomerMasterACLTokenDefault) IsRedirect() bool

IsRedirect returns true when this create customer master ACL token default response has a 3xx status code

func (*CreateCustomerMasterACLTokenDefault) IsServerError added in v0.23.0

func (o *CreateCustomerMasterACLTokenDefault) IsServerError() bool

IsServerError returns true when this create customer master ACL token default response has a 5xx status code

func (*CreateCustomerMasterACLTokenDefault) IsSuccess added in v0.23.0

IsSuccess returns true when this create customer master ACL token default response has a 2xx status code

func (*CreateCustomerMasterACLTokenDefault) String added in v0.23.0

type CreateCustomerMasterACLTokenOK

type CreateCustomerMasterACLTokenOK struct {
	Payload *models.HashicorpCloudConsul20210204CreateCustomerMasterACLTokenResponse
}

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

A successful response.

func NewCreateCustomerMasterACLTokenOK

func NewCreateCustomerMasterACLTokenOK() *CreateCustomerMasterACLTokenOK

NewCreateCustomerMasterACLTokenOK creates a CreateCustomerMasterACLTokenOK with default headers values

func (*CreateCustomerMasterACLTokenOK) Error

func (*CreateCustomerMasterACLTokenOK) IsClientError added in v0.23.0

func (o *CreateCustomerMasterACLTokenOK) IsClientError() bool

IsClientError returns true when this create customer master Acl token o k response has a 4xx status code

func (*CreateCustomerMasterACLTokenOK) IsCode added in v0.23.0

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

IsCode returns true when this create customer master Acl token o k response a status code equal to that given

func (*CreateCustomerMasterACLTokenOK) IsRedirect added in v0.23.0

func (o *CreateCustomerMasterACLTokenOK) IsRedirect() bool

IsRedirect returns true when this create customer master Acl token o k response has a 3xx status code

func (*CreateCustomerMasterACLTokenOK) IsServerError added in v0.23.0

func (o *CreateCustomerMasterACLTokenOK) IsServerError() bool

IsServerError returns true when this create customer master Acl token o k response has a 5xx status code

func (*CreateCustomerMasterACLTokenOK) IsSuccess added in v0.23.0

func (o *CreateCustomerMasterACLTokenOK) IsSuccess() bool

IsSuccess returns true when this create customer master Acl token o k response has a 2xx status code

func (*CreateCustomerMasterACLTokenOK) String added in v0.23.0

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateCustomerMasterACLTokenParamsWithContext

func NewCreateCustomerMasterACLTokenParamsWithContext(ctx context.Context) *CreateCustomerMasterACLTokenParams

NewCreateCustomerMasterACLTokenParamsWithContext creates a new CreateCustomerMasterACLTokenParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *CreateCustomerMasterACLTokenParams) SetDefaults()

SetDefaults hydrates default values in the create customer master ACL token params (not the query body).

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

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) WithDefaults added in v0.23.0

WithDefaults hydrates default values in the create customer master ACL token params (not the query body).

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

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 describes a response with status code -1, 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

func (*CreateDefault) IsClientError added in v0.23.0

func (o *CreateDefault) IsClientError() bool

IsClientError returns true when this create default response has a 4xx status code

func (*CreateDefault) IsCode added in v0.23.0

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

IsCode returns true when this create default response a status code equal to that given

func (*CreateDefault) IsRedirect added in v0.23.0

func (o *CreateDefault) IsRedirect() bool

IsRedirect returns true when this create default response has a 3xx status code

func (*CreateDefault) IsServerError added in v0.23.0

func (o *CreateDefault) IsServerError() bool

IsServerError returns true when this create default response has a 5xx status code

func (*CreateDefault) IsSuccess added in v0.23.0

func (o *CreateDefault) IsSuccess() bool

IsSuccess returns true when this create default response has a 2xx status code

func (*CreateDefault) String added in v0.23.0

func (o *CreateDefault) String() string

type CreateOK

type CreateOK struct {
	Payload *models.HashicorpCloudConsul20210204CreateResponse
}

CreateOK describes a response with status code 200, 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

func (*CreateOK) IsClientError added in v0.23.0

func (o *CreateOK) IsClientError() bool

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

func (*CreateOK) IsCode added in v0.23.0

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

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

func (*CreateOK) IsRedirect added in v0.23.0

func (o *CreateOK) IsRedirect() bool

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

func (*CreateOK) IsServerError added in v0.23.0

func (o *CreateOK) IsServerError() bool

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

func (*CreateOK) IsSuccess added in v0.23.0

func (o *CreateOK) IsSuccess() bool

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

func (*CreateOK) String added in v0.23.0

func (o *CreateOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateParamsWithContext

func NewCreateParamsWithContext(ctx context.Context) *CreateParams

NewCreateParamsWithContext creates a new CreateParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *CreateParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *CreateParams) WithDefaults() *CreateParams

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

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

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 describes a response with status code -1, 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

func (*CreateSnapshotDefault) IsClientError added in v0.23.0

func (o *CreateSnapshotDefault) IsClientError() bool

IsClientError returns true when this create snapshot default response has a 4xx status code

func (*CreateSnapshotDefault) IsCode added in v0.23.0

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

IsCode returns true when this create snapshot default response a status code equal to that given

func (*CreateSnapshotDefault) IsRedirect added in v0.23.0

func (o *CreateSnapshotDefault) IsRedirect() bool

IsRedirect returns true when this create snapshot default response has a 3xx status code

func (*CreateSnapshotDefault) IsServerError added in v0.23.0

func (o *CreateSnapshotDefault) IsServerError() bool

IsServerError returns true when this create snapshot default response has a 5xx status code

func (*CreateSnapshotDefault) IsSuccess added in v0.23.0

func (o *CreateSnapshotDefault) IsSuccess() bool

IsSuccess returns true when this create snapshot default response has a 2xx status code

func (*CreateSnapshotDefault) String added in v0.23.0

func (o *CreateSnapshotDefault) String() string

type CreateSnapshotOK

type CreateSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204CreateSnapshotResponse
}

CreateSnapshotOK describes a response with status code 200, 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

func (*CreateSnapshotOK) IsClientError added in v0.23.0

func (o *CreateSnapshotOK) IsClientError() bool

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

func (*CreateSnapshotOK) IsCode added in v0.23.0

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

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

func (*CreateSnapshotOK) IsRedirect added in v0.23.0

func (o *CreateSnapshotOK) IsRedirect() bool

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

func (*CreateSnapshotOK) IsServerError added in v0.23.0

func (o *CreateSnapshotOK) IsServerError() bool

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

func (*CreateSnapshotOK) IsSuccess added in v0.23.0

func (o *CreateSnapshotOK) IsSuccess() bool

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

func (*CreateSnapshotOK) String added in v0.23.0

func (o *CreateSnapshotOK) String() 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateSnapshotParamsWithContext

func NewCreateSnapshotParamsWithContext(ctx context.Context) *CreateSnapshotParams

NewCreateSnapshotParamsWithContext creates a new CreateSnapshotParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *CreateSnapshotParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *CreateSnapshotParams) WithDefaults() *CreateSnapshotParams

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

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

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 describes a response with status code -1, 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

func (*DeleteDefault) IsClientError added in v0.23.0

func (o *DeleteDefault) IsClientError() bool

IsClientError returns true when this delete default response has a 4xx status code

func (*DeleteDefault) IsCode added in v0.23.0

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

IsCode returns true when this delete default response a status code equal to that given

func (*DeleteDefault) IsRedirect added in v0.23.0

func (o *DeleteDefault) IsRedirect() bool

IsRedirect returns true when this delete default response has a 3xx status code

func (*DeleteDefault) IsServerError added in v0.23.0

func (o *DeleteDefault) IsServerError() bool

IsServerError returns true when this delete default response has a 5xx status code

func (*DeleteDefault) IsSuccess added in v0.23.0

func (o *DeleteDefault) IsSuccess() bool

IsSuccess returns true when this delete default response has a 2xx status code

func (*DeleteDefault) String added in v0.23.0

func (o *DeleteDefault) String() string

type DeleteOK

type DeleteOK struct {
	Payload *models.HashicorpCloudConsul20210204DeleteResponse
}

DeleteOK describes a response with status code 200, 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

func (*DeleteOK) IsClientError added in v0.23.0

func (o *DeleteOK) IsClientError() bool

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

func (*DeleteOK) IsCode added in v0.23.0

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

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

func (*DeleteOK) IsRedirect added in v0.23.0

func (o *DeleteOK) IsRedirect() bool

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

func (*DeleteOK) IsServerError added in v0.23.0

func (o *DeleteOK) IsServerError() bool

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

func (*DeleteOK) IsSuccess added in v0.23.0

func (o *DeleteOK) IsSuccess() bool

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

func (*DeleteOK) String added in v0.23.0

func (o *DeleteOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteParamsWithContext

func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams

NewDeleteParamsWithContext creates a new DeleteParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *DeleteParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *DeleteParams) WithDefaults() *DeleteParams

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

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

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 describes a response with status code -1, 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

func (*DeleteSnapshotDefault) IsClientError added in v0.23.0

func (o *DeleteSnapshotDefault) IsClientError() bool

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

func (*DeleteSnapshotDefault) IsCode added in v0.23.0

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

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

func (*DeleteSnapshotDefault) IsRedirect added in v0.23.0

func (o *DeleteSnapshotDefault) IsRedirect() bool

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

func (*DeleteSnapshotDefault) IsServerError added in v0.23.0

func (o *DeleteSnapshotDefault) IsServerError() bool

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

func (*DeleteSnapshotDefault) IsSuccess added in v0.23.0

func (o *DeleteSnapshotDefault) IsSuccess() bool

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

func (*DeleteSnapshotDefault) String added in v0.23.0

func (o *DeleteSnapshotDefault) String() string

type DeleteSnapshotOK

type DeleteSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204DeleteSnapshotResponse
}

DeleteSnapshotOK describes a response with status code 200, 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

func (*DeleteSnapshotOK) IsClientError added in v0.23.0

func (o *DeleteSnapshotOK) IsClientError() bool

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

func (*DeleteSnapshotOK) IsCode added in v0.23.0

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

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

func (*DeleteSnapshotOK) IsRedirect added in v0.23.0

func (o *DeleteSnapshotOK) IsRedirect() bool

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

func (*DeleteSnapshotOK) IsServerError added in v0.23.0

func (o *DeleteSnapshotOK) IsServerError() bool

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

func (*DeleteSnapshotOK) IsSuccess added in v0.23.0

func (o *DeleteSnapshotOK) IsSuccess() bool

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

func (*DeleteSnapshotOK) String added in v0.23.0

func (o *DeleteSnapshotOK) String() 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteSnapshotParamsWithContext

func NewDeleteSnapshotParamsWithContext(ctx context.Context) *DeleteSnapshotParams

NewDeleteSnapshotParamsWithContext creates a new DeleteSnapshotParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *DeleteSnapshotParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *DeleteSnapshotParams) WithDefaults() *DeleteSnapshotParams

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

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

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 describes a response with status code -1, 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

func (*GetClientConfigDefault) IsClientError added in v0.23.0

func (o *GetClientConfigDefault) IsClientError() bool

IsClientError returns true when this get client config default response has a 4xx status code

func (*GetClientConfigDefault) IsCode added in v0.23.0

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

IsCode returns true when this get client config default response a status code equal to that given

func (*GetClientConfigDefault) IsRedirect added in v0.23.0

func (o *GetClientConfigDefault) IsRedirect() bool

IsRedirect returns true when this get client config default response has a 3xx status code

func (*GetClientConfigDefault) IsServerError added in v0.23.0

func (o *GetClientConfigDefault) IsServerError() bool

IsServerError returns true when this get client config default response has a 5xx status code

func (*GetClientConfigDefault) IsSuccess added in v0.23.0

func (o *GetClientConfigDefault) IsSuccess() bool

IsSuccess returns true when this get client config default response has a 2xx status code

func (*GetClientConfigDefault) String added in v0.23.0

func (o *GetClientConfigDefault) String() string

type GetClientConfigOK

type GetClientConfigOK struct {
	Payload *models.HashicorpCloudConsul20210204GetClientConfigResponse
}

GetClientConfigOK describes a response with status code 200, 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

func (*GetClientConfigOK) IsClientError added in v0.23.0

func (o *GetClientConfigOK) IsClientError() bool

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

func (*GetClientConfigOK) IsCode added in v0.23.0

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

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

func (*GetClientConfigOK) IsRedirect added in v0.23.0

func (o *GetClientConfigOK) IsRedirect() bool

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

func (*GetClientConfigOK) IsServerError added in v0.23.0

func (o *GetClientConfigOK) IsServerError() bool

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

func (*GetClientConfigOK) IsSuccess added in v0.23.0

func (o *GetClientConfigOK) IsSuccess() bool

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

func (*GetClientConfigOK) String added in v0.23.0

func (o *GetClientConfigOK) String() 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetClientConfigParamsWithContext

func NewGetClientConfigParamsWithContext(ctx context.Context) *GetClientConfigParams

NewGetClientConfigParamsWithContext creates a new GetClientConfigParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *GetClientConfigParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *GetClientConfigParams) WithDefaults() *GetClientConfigParams

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

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

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 GetClusterTelemetryDefault

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

GetClusterTelemetryDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetClusterTelemetryDefault

func NewGetClusterTelemetryDefault(code int) *GetClusterTelemetryDefault

NewGetClusterTelemetryDefault creates a GetClusterTelemetryDefault with default headers values

func (*GetClusterTelemetryDefault) Code

func (o *GetClusterTelemetryDefault) Code() int

Code gets the status code for the get cluster telemetry default response

func (*GetClusterTelemetryDefault) Error

func (*GetClusterTelemetryDefault) GetPayload

func (*GetClusterTelemetryDefault) IsClientError added in v0.23.0

func (o *GetClusterTelemetryDefault) IsClientError() bool

IsClientError returns true when this get cluster telemetry default response has a 4xx status code

func (*GetClusterTelemetryDefault) IsCode added in v0.23.0

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

IsCode returns true when this get cluster telemetry default response a status code equal to that given

func (*GetClusterTelemetryDefault) IsRedirect added in v0.23.0

func (o *GetClusterTelemetryDefault) IsRedirect() bool

IsRedirect returns true when this get cluster telemetry default response has a 3xx status code

func (*GetClusterTelemetryDefault) IsServerError added in v0.23.0

func (o *GetClusterTelemetryDefault) IsServerError() bool

IsServerError returns true when this get cluster telemetry default response has a 5xx status code

func (*GetClusterTelemetryDefault) IsSuccess added in v0.23.0

func (o *GetClusterTelemetryDefault) IsSuccess() bool

IsSuccess returns true when this get cluster telemetry default response has a 2xx status code

func (*GetClusterTelemetryDefault) String added in v0.23.0

func (o *GetClusterTelemetryDefault) String() string

type GetClusterTelemetryOK

type GetClusterTelemetryOK struct {
	Payload *models.HashicorpCloudConsul20210204GetClusterTelemetryResponse
}

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

A successful response.

func NewGetClusterTelemetryOK

func NewGetClusterTelemetryOK() *GetClusterTelemetryOK

NewGetClusterTelemetryOK creates a GetClusterTelemetryOK with default headers values

func (*GetClusterTelemetryOK) Error

func (o *GetClusterTelemetryOK) Error() string

func (*GetClusterTelemetryOK) IsClientError added in v0.23.0

func (o *GetClusterTelemetryOK) IsClientError() bool

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

func (*GetClusterTelemetryOK) IsCode added in v0.23.0

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

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

func (*GetClusterTelemetryOK) IsRedirect added in v0.23.0

func (o *GetClusterTelemetryOK) IsRedirect() bool

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

func (*GetClusterTelemetryOK) IsServerError added in v0.23.0

func (o *GetClusterTelemetryOK) IsServerError() bool

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

func (*GetClusterTelemetryOK) IsSuccess added in v0.23.0

func (o *GetClusterTelemetryOK) IsSuccess() bool

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

func (*GetClusterTelemetryOK) String added in v0.23.0

func (o *GetClusterTelemetryOK) String() string

type GetClusterTelemetryParams

type GetClusterTelemetryParams struct {

	/* ClusterID.

	   cluster_id represents the cluster to retrieve telemetry from
	*/
	ClusterID 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
}

GetClusterTelemetryParams contains all the parameters to send to the API endpoint

for the get cluster telemetry operation.

Typically these are written to a http.Request.

func NewGetClusterTelemetryParams

func NewGetClusterTelemetryParams() *GetClusterTelemetryParams

NewGetClusterTelemetryParams creates a new GetClusterTelemetryParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetClusterTelemetryParamsWithContext

func NewGetClusterTelemetryParamsWithContext(ctx context.Context) *GetClusterTelemetryParams

NewGetClusterTelemetryParamsWithContext creates a new GetClusterTelemetryParams object with the ability to set a context for a request.

func NewGetClusterTelemetryParamsWithHTTPClient

func NewGetClusterTelemetryParamsWithHTTPClient(client *http.Client) *GetClusterTelemetryParams

NewGetClusterTelemetryParamsWithHTTPClient creates a new GetClusterTelemetryParams object with the ability to set a custom HTTPClient for a request.

func NewGetClusterTelemetryParamsWithTimeout

func NewGetClusterTelemetryParamsWithTimeout(timeout time.Duration) *GetClusterTelemetryParams

NewGetClusterTelemetryParamsWithTimeout creates a new GetClusterTelemetryParams object with the ability to set a timeout on a request.

func (*GetClusterTelemetryParams) SetClusterID

func (o *GetClusterTelemetryParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get cluster telemetry params

func (*GetClusterTelemetryParams) SetContext

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

SetContext adds the context to the get cluster telemetry params

func (*GetClusterTelemetryParams) SetDefaults added in v0.23.0

func (o *GetClusterTelemetryParams) SetDefaults()

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

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

func (*GetClusterTelemetryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get cluster telemetry params

func (*GetClusterTelemetryParams) SetLocationOrganizationID

func (o *GetClusterTelemetryParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the get cluster telemetry params

func (*GetClusterTelemetryParams) SetLocationProjectID

func (o *GetClusterTelemetryParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the get cluster telemetry params

func (*GetClusterTelemetryParams) SetLocationRegionProvider

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

SetLocationRegionProvider adds the locationRegionProvider to the get cluster telemetry params

func (*GetClusterTelemetryParams) SetLocationRegionRegion

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

SetLocationRegionRegion adds the locationRegionRegion to the get cluster telemetry params

func (*GetClusterTelemetryParams) SetTimeout

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

SetTimeout adds the timeout to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithClusterID

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

WithClusterID adds the clusterID to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithContext

WithContext adds the context to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithDefaults added in v0.23.0

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

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

func (*GetClusterTelemetryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithLocationOrganizationID

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

WithLocationOrganizationID adds the locationOrganizationID to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithLocationProjectID

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

WithLocationProjectID adds the locationProjectID to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithLocationRegionProvider

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

WithLocationRegionProvider adds the locationRegionProvider to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithLocationRegionRegion

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

WithLocationRegionRegion adds the locationRegionRegion to the get cluster telemetry params

func (*GetClusterTelemetryParams) WithTimeout

WithTimeout adds the timeout to the get cluster telemetry params

func (*GetClusterTelemetryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetClusterTelemetryReader

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

GetClusterTelemetryReader is a Reader for the GetClusterTelemetry structure.

func (*GetClusterTelemetryReader) ReadResponse

func (o *GetClusterTelemetryReader) 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 describes a response with status code -1, 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

func (*GetDefault) IsClientError added in v0.23.0

func (o *GetDefault) IsClientError() bool

IsClientError returns true when this get default response has a 4xx status code

func (*GetDefault) IsCode added in v0.23.0

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

IsCode returns true when this get default response a status code equal to that given

func (*GetDefault) IsRedirect added in v0.23.0

func (o *GetDefault) IsRedirect() bool

IsRedirect returns true when this get default response has a 3xx status code

func (*GetDefault) IsServerError added in v0.23.0

func (o *GetDefault) IsServerError() bool

IsServerError returns true when this get default response has a 5xx status code

func (*GetDefault) IsSuccess added in v0.23.0

func (o *GetDefault) IsSuccess() bool

IsSuccess returns true when this get default response has a 2xx status code

func (*GetDefault) String added in v0.23.0

func (o *GetDefault) String() string

type GetOK

type GetOK struct {
	Payload *models.HashicorpCloudConsul20210204GetResponse
}

GetOK describes a response with status code 200, 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

func (*GetOK) IsClientError added in v0.23.0

func (o *GetOK) IsClientError() bool

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

func (*GetOK) IsCode added in v0.23.0

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

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

func (*GetOK) IsRedirect added in v0.23.0

func (o *GetOK) IsRedirect() bool

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

func (*GetOK) IsServerError added in v0.23.0

func (o *GetOK) IsServerError() bool

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

func (*GetOK) IsSuccess added in v0.23.0

func (o *GetOK) IsSuccess() bool

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

func (*GetOK) String added in v0.23.0

func (o *GetOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetParamsWithContext

func NewGetParamsWithContext(ctx context.Context) *GetParams

NewGetParamsWithContext creates a new GetParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *GetParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *GetParams) WithDefaults() *GetParams

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

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

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 describes a response with status code -1, 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

func (*GetSnapshotDefault) IsClientError added in v0.23.0

func (o *GetSnapshotDefault) IsClientError() bool

IsClientError returns true when this get snapshot default response has a 4xx status code

func (*GetSnapshotDefault) IsCode added in v0.23.0

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

IsCode returns true when this get snapshot default response a status code equal to that given

func (*GetSnapshotDefault) IsRedirect added in v0.23.0

func (o *GetSnapshotDefault) IsRedirect() bool

IsRedirect returns true when this get snapshot default response has a 3xx status code

func (*GetSnapshotDefault) IsServerError added in v0.23.0

func (o *GetSnapshotDefault) IsServerError() bool

IsServerError returns true when this get snapshot default response has a 5xx status code

func (*GetSnapshotDefault) IsSuccess added in v0.23.0

func (o *GetSnapshotDefault) IsSuccess() bool

IsSuccess returns true when this get snapshot default response has a 2xx status code

func (*GetSnapshotDefault) String added in v0.23.0

func (o *GetSnapshotDefault) String() string

type GetSnapshotOK

type GetSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204GetSnapshotResponse
}

GetSnapshotOK describes a response with status code 200, 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

func (*GetSnapshotOK) IsClientError added in v0.23.0

func (o *GetSnapshotOK) IsClientError() bool

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

func (*GetSnapshotOK) IsCode added in v0.23.0

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

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

func (*GetSnapshotOK) IsRedirect added in v0.23.0

func (o *GetSnapshotOK) IsRedirect() bool

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

func (*GetSnapshotOK) IsServerError added in v0.23.0

func (o *GetSnapshotOK) IsServerError() bool

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

func (*GetSnapshotOK) IsSuccess added in v0.23.0

func (o *GetSnapshotOK) IsSuccess() bool

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

func (*GetSnapshotOK) String added in v0.23.0

func (o *GetSnapshotOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetSnapshotParamsWithContext

func NewGetSnapshotParamsWithContext(ctx context.Context) *GetSnapshotParams

NewGetSnapshotParamsWithContext creates a new GetSnapshotParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *GetSnapshotParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *GetSnapshotParams) WithDefaults() *GetSnapshotParams

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

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

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 describes a response with status code -1, 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

func (*ListDefault) IsClientError added in v0.23.0

func (o *ListDefault) IsClientError() bool

IsClientError returns true when this list default response has a 4xx status code

func (*ListDefault) IsCode added in v0.23.0

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

IsCode returns true when this list default response a status code equal to that given

func (*ListDefault) IsRedirect added in v0.23.0

func (o *ListDefault) IsRedirect() bool

IsRedirect returns true when this list default response has a 3xx status code

func (*ListDefault) IsServerError added in v0.23.0

func (o *ListDefault) IsServerError() bool

IsServerError returns true when this list default response has a 5xx status code

func (*ListDefault) IsSuccess added in v0.23.0

func (o *ListDefault) IsSuccess() bool

IsSuccess returns true when this list default response has a 2xx status code

func (*ListDefault) String added in v0.23.0

func (o *ListDefault) String() string

type ListOK

type ListOK struct {
	Payload *models.HashicorpCloudConsul20210204ListResponse
}

ListOK describes a response with status code 200, 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

func (*ListOK) IsClientError added in v0.23.0

func (o *ListOK) IsClientError() bool

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

func (*ListOK) IsCode added in v0.23.0

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

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

func (*ListOK) IsRedirect added in v0.23.0

func (o *ListOK) IsRedirect() bool

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

func (*ListOK) IsServerError added in v0.23.0

func (o *ListOK) IsServerError() bool

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

func (*ListOK) IsSuccess added in v0.23.0

func (o *ListOK) IsSuccess() bool

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

func (*ListOK) String added in v0.23.0

func (o *ListOK) String() string

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.

	     Format: int64
	*/
	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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListParamsWithContext

func NewListParamsWithContext(ctx context.Context) *ListParams

NewListParamsWithContext creates a new ListParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *ListParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *ListParams) WithDefaults() *ListParams

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

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

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 describes a response with status code -1, 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

func (*ListSnapshotsDefault) IsClientError added in v0.23.0

func (o *ListSnapshotsDefault) IsClientError() bool

IsClientError returns true when this list snapshots default response has a 4xx status code

func (*ListSnapshotsDefault) IsCode added in v0.23.0

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

IsCode returns true when this list snapshots default response a status code equal to that given

func (*ListSnapshotsDefault) IsRedirect added in v0.23.0

func (o *ListSnapshotsDefault) IsRedirect() bool

IsRedirect returns true when this list snapshots default response has a 3xx status code

func (*ListSnapshotsDefault) IsServerError added in v0.23.0

func (o *ListSnapshotsDefault) IsServerError() bool

IsServerError returns true when this list snapshots default response has a 5xx status code

func (*ListSnapshotsDefault) IsSuccess added in v0.23.0

func (o *ListSnapshotsDefault) IsSuccess() bool

IsSuccess returns true when this list snapshots default response has a 2xx status code

func (*ListSnapshotsDefault) String added in v0.23.0

func (o *ListSnapshotsDefault) String() string

type ListSnapshotsOK

type ListSnapshotsOK struct {
	Payload *models.HashicorpCloudConsul20210204ListSnapshotsResponse
}

ListSnapshotsOK describes a response with status code 200, 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

func (*ListSnapshotsOK) IsClientError added in v0.23.0

func (o *ListSnapshotsOK) IsClientError() bool

IsClientError returns true when this list snapshots o k response has a 4xx status code

func (*ListSnapshotsOK) IsCode added in v0.23.0

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

IsCode returns true when this list snapshots o k response a status code equal to that given

func (*ListSnapshotsOK) IsRedirect added in v0.23.0

func (o *ListSnapshotsOK) IsRedirect() bool

IsRedirect returns true when this list snapshots o k response has a 3xx status code

func (*ListSnapshotsOK) IsServerError added in v0.23.0

func (o *ListSnapshotsOK) IsServerError() bool

IsServerError returns true when this list snapshots o k response has a 5xx status code

func (*ListSnapshotsOK) IsSuccess added in v0.23.0

func (o *ListSnapshotsOK) IsSuccess() bool

IsSuccess returns true when this list snapshots o k response has a 2xx status code

func (*ListSnapshotsOK) String added in v0.23.0

func (o *ListSnapshotsOK) String() 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.

	     Format: int64
	*/
	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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListSnapshotsParamsWithContext

func NewListSnapshotsParamsWithContext(ctx context.Context) *ListSnapshotsParams

NewListSnapshotsParamsWithContext creates a new ListSnapshotsParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *ListSnapshotsParams) SetDefaults()

SetDefaults hydrates default values in the list snapshots params (not the query body).

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

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) WithDefaults added in v0.23.0

func (o *ListSnapshotsParams) WithDefaults() *ListSnapshotsParams

WithDefaults hydrates default values in the list snapshots params (not the query body).

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

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 describes a response with status code -1, 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

func (*ListUpgradeVersionsDefault) IsClientError added in v0.23.0

func (o *ListUpgradeVersionsDefault) IsClientError() bool

IsClientError returns true when this list upgrade versions default response has a 4xx status code

func (*ListUpgradeVersionsDefault) IsCode added in v0.23.0

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

IsCode returns true when this list upgrade versions default response a status code equal to that given

func (*ListUpgradeVersionsDefault) IsRedirect added in v0.23.0

func (o *ListUpgradeVersionsDefault) IsRedirect() bool

IsRedirect returns true when this list upgrade versions default response has a 3xx status code

func (*ListUpgradeVersionsDefault) IsServerError added in v0.23.0

func (o *ListUpgradeVersionsDefault) IsServerError() bool

IsServerError returns true when this list upgrade versions default response has a 5xx status code

func (*ListUpgradeVersionsDefault) IsSuccess added in v0.23.0

func (o *ListUpgradeVersionsDefault) IsSuccess() bool

IsSuccess returns true when this list upgrade versions default response has a 2xx status code

func (*ListUpgradeVersionsDefault) String added in v0.23.0

func (o *ListUpgradeVersionsDefault) String() string

type ListUpgradeVersionsOK

type ListUpgradeVersionsOK struct {
	Payload *models.HashicorpCloudConsul20210204ListUpgradeVersionsResponse
}

ListUpgradeVersionsOK describes a response with status code 200, 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

func (*ListUpgradeVersionsOK) IsClientError added in v0.23.0

func (o *ListUpgradeVersionsOK) IsClientError() bool

IsClientError returns true when this list upgrade versions o k response has a 4xx status code

func (*ListUpgradeVersionsOK) IsCode added in v0.23.0

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

IsCode returns true when this list upgrade versions o k response a status code equal to that given

func (*ListUpgradeVersionsOK) IsRedirect added in v0.23.0

func (o *ListUpgradeVersionsOK) IsRedirect() bool

IsRedirect returns true when this list upgrade versions o k response has a 3xx status code

func (*ListUpgradeVersionsOK) IsServerError added in v0.23.0

func (o *ListUpgradeVersionsOK) IsServerError() bool

IsServerError returns true when this list upgrade versions o k response has a 5xx status code

func (*ListUpgradeVersionsOK) IsSuccess added in v0.23.0

func (o *ListUpgradeVersionsOK) IsSuccess() bool

IsSuccess returns true when this list upgrade versions o k response has a 2xx status code

func (*ListUpgradeVersionsOK) String added in v0.23.0

func (o *ListUpgradeVersionsOK) String() 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListUpgradeVersionsParamsWithContext

func NewListUpgradeVersionsParamsWithContext(ctx context.Context) *ListUpgradeVersionsParams

NewListUpgradeVersionsParamsWithContext creates a new ListUpgradeVersionsParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *ListUpgradeVersionsParams) SetDefaults()

SetDefaults hydrates default values in the list upgrade versions params (not the query body).

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

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) WithDefaults added in v0.23.0

WithDefaults hydrates default values in the list upgrade versions params (not the query body).

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

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 describes a response with status code -1, 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

func (*ListVersions2Default) IsClientError added in v0.23.0

func (o *ListVersions2Default) IsClientError() bool

IsClientError returns true when this list versions2 default response has a 4xx status code

func (*ListVersions2Default) IsCode added in v0.23.0

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

IsCode returns true when this list versions2 default response a status code equal to that given

func (*ListVersions2Default) IsRedirect added in v0.23.0

func (o *ListVersions2Default) IsRedirect() bool

IsRedirect returns true when this list versions2 default response has a 3xx status code

func (*ListVersions2Default) IsServerError added in v0.23.0

func (o *ListVersions2Default) IsServerError() bool

IsServerError returns true when this list versions2 default response has a 5xx status code

func (*ListVersions2Default) IsSuccess added in v0.23.0

func (o *ListVersions2Default) IsSuccess() bool

IsSuccess returns true when this list versions2 default response has a 2xx status code

func (*ListVersions2Default) String added in v0.23.0

func (o *ListVersions2Default) String() string

type ListVersions2OK

type ListVersions2OK struct {
	Payload *models.HashicorpCloudConsul20210204ListVersionsResponse
}

ListVersions2OK describes a response with status code 200, 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

func (*ListVersions2OK) IsClientError added in v0.23.0

func (o *ListVersions2OK) IsClientError() bool

IsClientError returns true when this list versions2 o k response has a 4xx status code

func (*ListVersions2OK) IsCode added in v0.23.0

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

IsCode returns true when this list versions2 o k response a status code equal to that given

func (*ListVersions2OK) IsRedirect added in v0.23.0

func (o *ListVersions2OK) IsRedirect() bool

IsRedirect returns true when this list versions2 o k response has a 3xx status code

func (*ListVersions2OK) IsServerError added in v0.23.0

func (o *ListVersions2OK) IsServerError() bool

IsServerError returns true when this list versions2 o k response has a 5xx status code

func (*ListVersions2OK) IsSuccess added in v0.23.0

func (o *ListVersions2OK) IsSuccess() bool

IsSuccess returns true when this list versions2 o k response has a 2xx status code

func (*ListVersions2OK) String added in v0.23.0

func (o *ListVersions2OK) String() string

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.

	     Default: "NOTSET"
	*/
	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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListVersions2ParamsWithContext

func NewListVersions2ParamsWithContext(ctx context.Context) *ListVersions2Params

NewListVersions2ParamsWithContext creates a new ListVersions2Params object with 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 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 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) SetDefaults added in v0.23.0

func (o *ListVersions2Params) SetDefaults()

SetDefaults hydrates default values in the list versions2 params (not the query body).

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

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

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) WithDefaults added in v0.23.0

func (o *ListVersions2Params) WithDefaults() *ListVersions2Params

WithDefaults hydrates default values in the list versions2 params (not the query body).

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

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

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 describes a response with status code -1, 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

func (*ListVersionsDefault) IsClientError added in v0.23.0

func (o *ListVersionsDefault) IsClientError() bool

IsClientError returns true when this list versions default response has a 4xx status code

func (*ListVersionsDefault) IsCode added in v0.23.0

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

IsCode returns true when this list versions default response a status code equal to that given

func (*ListVersionsDefault) IsRedirect added in v0.23.0

func (o *ListVersionsDefault) IsRedirect() bool

IsRedirect returns true when this list versions default response has a 3xx status code

func (*ListVersionsDefault) IsServerError added in v0.23.0

func (o *ListVersionsDefault) IsServerError() bool

IsServerError returns true when this list versions default response has a 5xx status code

func (*ListVersionsDefault) IsSuccess added in v0.23.0

func (o *ListVersionsDefault) IsSuccess() bool

IsSuccess returns true when this list versions default response has a 2xx status code

func (*ListVersionsDefault) String added in v0.23.0

func (o *ListVersionsDefault) String() string

type ListVersionsOK

type ListVersionsOK struct {
	Payload *models.HashicorpCloudConsul20210204ListVersionsResponse
}

ListVersionsOK describes a response with status code 200, 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

func (*ListVersionsOK) IsClientError added in v0.23.0

func (o *ListVersionsOK) IsClientError() bool

IsClientError returns true when this list versions o k response has a 4xx status code

func (*ListVersionsOK) IsCode added in v0.23.0

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

IsCode returns true when this list versions o k response a status code equal to that given

func (*ListVersionsOK) IsRedirect added in v0.23.0

func (o *ListVersionsOK) IsRedirect() bool

IsRedirect returns true when this list versions o k response has a 3xx status code

func (*ListVersionsOK) IsServerError added in v0.23.0

func (o *ListVersionsOK) IsServerError() bool

IsServerError returns true when this list versions o k response has a 5xx status code

func (*ListVersionsOK) IsSuccess added in v0.23.0

func (o *ListVersionsOK) IsSuccess() bool

IsSuccess returns true when this list versions o k response has a 2xx status code

func (*ListVersionsOK) String added in v0.23.0

func (o *ListVersionsOK) String() 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.

	     Default: "NOTSET"
	*/
	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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListVersionsParamsWithContext

func NewListVersionsParamsWithContext(ctx context.Context) *ListVersionsParams

NewListVersionsParamsWithContext creates a new ListVersionsParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *ListVersionsParams) SetDefaults()

SetDefaults hydrates default values in the list versions params (not the query body).

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

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

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) WithDefaults added in v0.23.0

func (o *ListVersionsParams) WithDefaults() *ListVersionsParams

WithDefaults hydrates default values in the list versions params (not the query body).

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

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

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 describes a response with status code -1, 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

func (*RestoreSnapshotDefault) IsClientError added in v0.23.0

func (o *RestoreSnapshotDefault) IsClientError() bool

IsClientError returns true when this restore snapshot default response has a 4xx status code

func (*RestoreSnapshotDefault) IsCode added in v0.23.0

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

IsCode returns true when this restore snapshot default response a status code equal to that given

func (*RestoreSnapshotDefault) IsRedirect added in v0.23.0

func (o *RestoreSnapshotDefault) IsRedirect() bool

IsRedirect returns true when this restore snapshot default response has a 3xx status code

func (*RestoreSnapshotDefault) IsServerError added in v0.23.0

func (o *RestoreSnapshotDefault) IsServerError() bool

IsServerError returns true when this restore snapshot default response has a 5xx status code

func (*RestoreSnapshotDefault) IsSuccess added in v0.23.0

func (o *RestoreSnapshotDefault) IsSuccess() bool

IsSuccess returns true when this restore snapshot default response has a 2xx status code

func (*RestoreSnapshotDefault) String added in v0.23.0

func (o *RestoreSnapshotDefault) String() string

type RestoreSnapshotOK

type RestoreSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204RestoreSnapshotResponse
}

RestoreSnapshotOK describes a response with status code 200, 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

func (*RestoreSnapshotOK) IsClientError added in v0.23.0

func (o *RestoreSnapshotOK) IsClientError() bool

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

func (*RestoreSnapshotOK) IsCode added in v0.23.0

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

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

func (*RestoreSnapshotOK) IsRedirect added in v0.23.0

func (o *RestoreSnapshotOK) IsRedirect() bool

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

func (*RestoreSnapshotOK) IsServerError added in v0.23.0

func (o *RestoreSnapshotOK) IsServerError() bool

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

func (*RestoreSnapshotOK) IsSuccess added in v0.23.0

func (o *RestoreSnapshotOK) IsSuccess() bool

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

func (*RestoreSnapshotOK) String added in v0.23.0

func (o *RestoreSnapshotOK) String() 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRestoreSnapshotParamsWithContext

func NewRestoreSnapshotParamsWithContext(ctx context.Context) *RestoreSnapshotParams

NewRestoreSnapshotParamsWithContext creates a new RestoreSnapshotParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *RestoreSnapshotParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *RestoreSnapshotParams) WithDefaults() *RestoreSnapshotParams

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

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

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 describes a response with status code -1, 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

func (*UpdateDefault) IsClientError added in v0.23.0

func (o *UpdateDefault) IsClientError() bool

IsClientError returns true when this update default response has a 4xx status code

func (*UpdateDefault) IsCode added in v0.23.0

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

IsCode returns true when this update default response a status code equal to that given

func (*UpdateDefault) IsRedirect added in v0.23.0

func (o *UpdateDefault) IsRedirect() bool

IsRedirect returns true when this update default response has a 3xx status code

func (*UpdateDefault) IsServerError added in v0.23.0

func (o *UpdateDefault) IsServerError() bool

IsServerError returns true when this update default response has a 5xx status code

func (*UpdateDefault) IsSuccess added in v0.23.0

func (o *UpdateDefault) IsSuccess() bool

IsSuccess returns true when this update default response has a 2xx status code

func (*UpdateDefault) String added in v0.23.0

func (o *UpdateDefault) String() string

type UpdateOK

type UpdateOK struct {
	Payload *models.HashicorpCloudConsul20210204UpdateResponse
}

UpdateOK describes a response with status code 200, 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

func (*UpdateOK) IsClientError added in v0.23.0

func (o *UpdateOK) IsClientError() bool

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

func (*UpdateOK) IsCode added in v0.23.0

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

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

func (*UpdateOK) IsRedirect added in v0.23.0

func (o *UpdateOK) IsRedirect() bool

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

func (*UpdateOK) IsServerError added in v0.23.0

func (o *UpdateOK) IsServerError() bool

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

func (*UpdateOK) IsSuccess added in v0.23.0

func (o *UpdateOK) IsSuccess() bool

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

func (*UpdateOK) String added in v0.23.0

func (o *UpdateOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateParamsWithContext

func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams

NewUpdateParamsWithContext creates a new UpdateParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *UpdateParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *UpdateParams) WithDefaults() *UpdateParams

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

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

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 describes a response with status code -1, 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

func (*UpdateSnapshotDefault) IsClientError added in v0.23.0

func (o *UpdateSnapshotDefault) IsClientError() bool

IsClientError returns true when this update snapshot default response has a 4xx status code

func (*UpdateSnapshotDefault) IsCode added in v0.23.0

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

IsCode returns true when this update snapshot default response a status code equal to that given

func (*UpdateSnapshotDefault) IsRedirect added in v0.23.0

func (o *UpdateSnapshotDefault) IsRedirect() bool

IsRedirect returns true when this update snapshot default response has a 3xx status code

func (*UpdateSnapshotDefault) IsServerError added in v0.23.0

func (o *UpdateSnapshotDefault) IsServerError() bool

IsServerError returns true when this update snapshot default response has a 5xx status code

func (*UpdateSnapshotDefault) IsSuccess added in v0.23.0

func (o *UpdateSnapshotDefault) IsSuccess() bool

IsSuccess returns true when this update snapshot default response has a 2xx status code

func (*UpdateSnapshotDefault) String added in v0.23.0

func (o *UpdateSnapshotDefault) String() string

type UpdateSnapshotOK

type UpdateSnapshotOK struct {
	Payload *models.HashicorpCloudConsul20210204UpdateSnapshotResponse
}

UpdateSnapshotOK describes a response with status code 200, 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

func (*UpdateSnapshotOK) IsClientError added in v0.23.0

func (o *UpdateSnapshotOK) IsClientError() bool

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

func (*UpdateSnapshotOK) IsCode added in v0.23.0

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

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

func (*UpdateSnapshotOK) IsRedirect added in v0.23.0

func (o *UpdateSnapshotOK) IsRedirect() bool

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

func (*UpdateSnapshotOK) IsServerError added in v0.23.0

func (o *UpdateSnapshotOK) IsServerError() bool

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

func (*UpdateSnapshotOK) IsSuccess added in v0.23.0

func (o *UpdateSnapshotOK) IsSuccess() bool

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

func (*UpdateSnapshotOK) String added in v0.23.0

func (o *UpdateSnapshotOK) String() 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateSnapshotParamsWithContext

func NewUpdateSnapshotParamsWithContext(ctx context.Context) *UpdateSnapshotParams

NewUpdateSnapshotParamsWithContext creates a new UpdateSnapshotParams object with 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 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 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) SetDefaults added in v0.23.0

func (o *UpdateSnapshotParams) SetDefaults()

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

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

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) WithDefaults added in v0.23.0

func (o *UpdateSnapshotParams) WithDefaults() *UpdateSnapshotParams

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

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

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