boundary_service

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 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 boundary 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 boundary cluster

func (*Client) Delete

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

Delete deletes deletes the specified h c p boundary cluster

func (*Client) Get

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

Get gets returns a single existing h c p boundary cluster

func (*Client) List

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

List lists returns all existing h c p boundary clusters

func (*Client) MaintenanceWindowGet

func (a *Client) MaintenanceWindowGet(params *MaintenanceWindowGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MaintenanceWindowGetOK, error)

MaintenanceWindowGet maintenances window get is used to fetch the type of maintenance for the given cluster maintenance can either be automatic or scheduled if scheduled the response returns the window set by the user

func (*Client) MaintenanceWindowUpdate

func (a *Client) MaintenanceWindowUpdate(params *MaintenanceWindowUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MaintenanceWindowUpdateOK, error)

MaintenanceWindowUpdate maintenances window update sets maintenance window for update version

func (*Client) Sessions

func (a *Client) Sessions(params *SessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SessionsOK, error)

Sessions sessions returns all session information for existing h c p boundary cluster

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 triggers checks if update for the specific cluster is needed and forces an update

type ClientOption

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)

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

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

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

	MaintenanceWindowGet(params *MaintenanceWindowGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MaintenanceWindowGetOK, error)

	MaintenanceWindowUpdate(params *MaintenanceWindowUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*MaintenanceWindowUpdateOK, error)

	Sessions(params *SessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SessionsOK, error)

	Update(params *UpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOK, 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 boundary service API client.

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

func (o *CreateDefault) IsClientError() bool

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

func (*CreateDefault) IsCode

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

func (o *CreateDefault) IsRedirect() bool

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

func (*CreateDefault) IsServerError

func (o *CreateDefault) IsServerError() bool

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

func (*CreateDefault) IsSuccess

func (o *CreateDefault) IsSuccess() bool

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

func (*CreateDefault) String

func (o *CreateDefault) String() string

type CreateOK

type CreateOK struct {
	Payload *models.HashicorpCloudBoundary20211221CreateResponse
}

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

func (o *CreateOK) IsClientError() bool

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

func (*CreateOK) IsCode

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

func (o *CreateOK) IsRedirect() bool

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

func (*CreateOK) IsServerError

func (o *CreateOK) IsServerError() bool

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

func (*CreateOK) IsSuccess

func (o *CreateOK) IsSuccess() bool

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

func (*CreateOK) String

func (o *CreateOK) String() string

type CreateParams

type CreateParams struct {

	// Body.
	Body *models.HashicorpCloudBoundary20211221CreateRequest

	/* 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
}

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

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

SetContext adds the context to the create params

func (*CreateParams) SetDefaults

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

func (o *CreateParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the create params

func (*CreateParams) SetLocationProjectID

func (o *CreateParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId 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) WithContext

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

WithContext adds the context to the create params

func (*CreateParams) WithDefaults

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

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

WithLocationOrganizationID adds the locationOrganizationID to the create params

func (*CreateParams) WithLocationProjectID

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

WithLocationProjectID adds the locationProjectID 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 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

func (o *DeleteDefault) IsClientError() bool

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

func (*DeleteDefault) IsCode

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

func (o *DeleteDefault) IsRedirect() bool

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

func (*DeleteDefault) IsServerError

func (o *DeleteDefault) IsServerError() bool

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

func (*DeleteDefault) IsSuccess

func (o *DeleteDefault) IsSuccess() bool

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

func (*DeleteDefault) String

func (o *DeleteDefault) String() string

type DeleteOK

type DeleteOK struct {
	Payload *models.HashicorpCloudBoundary20211221DeleteResponse
}

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

func (o *DeleteOK) IsClientError() bool

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

func (*DeleteOK) IsCode

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

func (o *DeleteOK) IsRedirect() bool

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

func (*DeleteOK) IsServerError

func (o *DeleteOK) IsServerError() bool

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

func (*DeleteOK) IsSuccess

func (o *DeleteOK) IsSuccess() bool

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

func (*DeleteOK) String

func (o *DeleteOK) String() string

type DeleteParams

type DeleteParams struct {

	/* ClusterID.

	   cluster_id is the id of the cluster set by user on creation.
	*/
	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
}

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

func (o *DeleteParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete params

func (*DeleteParams) SetContext

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

SetContext adds the context to the delete params

func (*DeleteParams) SetDefaults

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

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

WithClusterID adds the clusterID 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

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

func (o *GetDefault) IsClientError() bool

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

func (*GetDefault) IsCode

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

func (o *GetDefault) IsRedirect() bool

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

func (*GetDefault) IsServerError

func (o *GetDefault) IsServerError() bool

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

func (*GetDefault) IsSuccess

func (o *GetDefault) IsSuccess() bool

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

func (*GetDefault) String

func (o *GetDefault) String() string

type GetOK

type GetOK struct {
	Payload *models.HashicorpCloudBoundary20211221GetResponse
}

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

func (o *GetOK) IsClientError() bool

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

func (*GetOK) IsCode

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

func (o *GetOK) IsRedirect() bool

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

func (*GetOK) IsServerError

func (o *GetOK) IsServerError() bool

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

func (*GetOK) IsSuccess

func (o *GetOK) IsSuccess() bool

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

func (*GetOK) String

func (o *GetOK) String() string

type GetParams

type GetParams struct {

	/* ClusterID.

	   cluster_id is the id of the cluster set by user on creation.
	*/
	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
}

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

func (o *GetParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get params

func (*GetParams) SetContext

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

SetContext adds the context to the get params

func (*GetParams) SetDefaults

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

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

WithClusterID adds the clusterID 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

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

func (o *ListDefault) IsClientError() bool

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

func (*ListDefault) IsCode

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

func (o *ListDefault) IsRedirect() bool

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

func (*ListDefault) IsServerError

func (o *ListDefault) IsServerError() bool

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

func (*ListDefault) IsSuccess

func (o *ListDefault) IsSuccess() bool

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

func (*ListDefault) String

func (o *ListDefault) String() string

type ListOK

type ListOK struct {
	Payload *models.HashicorpCloudBoundary20211221ListResponse
}

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

func (o *ListOK) IsClientError() bool

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

func (*ListOK) IsCode

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

func (o *ListOK) IsRedirect() bool

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

func (*ListOK) IsServerError

func (o *ListOK) IsServerError() bool

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

func (*ListOK) IsSuccess

func (o *ListOK) IsSuccess() bool

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

func (*ListOK) String

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

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

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 MaintenanceWindowGetDefault

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

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

An unexpected error response.

func NewMaintenanceWindowGetDefault

func NewMaintenanceWindowGetDefault(code int) *MaintenanceWindowGetDefault

NewMaintenanceWindowGetDefault creates a MaintenanceWindowGetDefault with default headers values

func (*MaintenanceWindowGetDefault) Code

func (o *MaintenanceWindowGetDefault) Code() int

Code gets the status code for the maintenance window get default response

func (*MaintenanceWindowGetDefault) Error

func (*MaintenanceWindowGetDefault) GetPayload

func (*MaintenanceWindowGetDefault) IsClientError

func (o *MaintenanceWindowGetDefault) IsClientError() bool

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

func (*MaintenanceWindowGetDefault) IsCode

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

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

func (*MaintenanceWindowGetDefault) IsRedirect

func (o *MaintenanceWindowGetDefault) IsRedirect() bool

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

func (*MaintenanceWindowGetDefault) IsServerError

func (o *MaintenanceWindowGetDefault) IsServerError() bool

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

func (*MaintenanceWindowGetDefault) IsSuccess

func (o *MaintenanceWindowGetDefault) IsSuccess() bool

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

func (*MaintenanceWindowGetDefault) String

func (o *MaintenanceWindowGetDefault) String() string

type MaintenanceWindowGetOK

type MaintenanceWindowGetOK struct {
	Payload *models.HashicorpCloudBoundary20211221MaintenanceWindowGetResponse
}

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

A successful response.

func NewMaintenanceWindowGetOK

func NewMaintenanceWindowGetOK() *MaintenanceWindowGetOK

NewMaintenanceWindowGetOK creates a MaintenanceWindowGetOK with default headers values

func (*MaintenanceWindowGetOK) Error

func (o *MaintenanceWindowGetOK) Error() string

func (*MaintenanceWindowGetOK) IsClientError

func (o *MaintenanceWindowGetOK) IsClientError() bool

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

func (*MaintenanceWindowGetOK) IsCode

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

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

func (*MaintenanceWindowGetOK) IsRedirect

func (o *MaintenanceWindowGetOK) IsRedirect() bool

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

func (*MaintenanceWindowGetOK) IsServerError

func (o *MaintenanceWindowGetOK) IsServerError() bool

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

func (*MaintenanceWindowGetOK) IsSuccess

func (o *MaintenanceWindowGetOK) IsSuccess() bool

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

func (*MaintenanceWindowGetOK) String

func (o *MaintenanceWindowGetOK) String() string

type MaintenanceWindowGetParams

type MaintenanceWindowGetParams struct {

	/* ClusterID.

	   cluster_id is the id of the cluster set by user on creation.
	*/
	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
}

MaintenanceWindowGetParams contains all the parameters to send to the API endpoint

for the maintenance window get operation.

Typically these are written to a http.Request.

func NewMaintenanceWindowGetParams

func NewMaintenanceWindowGetParams() *MaintenanceWindowGetParams

NewMaintenanceWindowGetParams creates a new MaintenanceWindowGetParams 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 NewMaintenanceWindowGetParamsWithContext

func NewMaintenanceWindowGetParamsWithContext(ctx context.Context) *MaintenanceWindowGetParams

NewMaintenanceWindowGetParamsWithContext creates a new MaintenanceWindowGetParams object with the ability to set a context for a request.

func NewMaintenanceWindowGetParamsWithHTTPClient

func NewMaintenanceWindowGetParamsWithHTTPClient(client *http.Client) *MaintenanceWindowGetParams

NewMaintenanceWindowGetParamsWithHTTPClient creates a new MaintenanceWindowGetParams object with the ability to set a custom HTTPClient for a request.

func NewMaintenanceWindowGetParamsWithTimeout

func NewMaintenanceWindowGetParamsWithTimeout(timeout time.Duration) *MaintenanceWindowGetParams

NewMaintenanceWindowGetParamsWithTimeout creates a new MaintenanceWindowGetParams object with the ability to set a timeout on a request.

func (*MaintenanceWindowGetParams) SetClusterID

func (o *MaintenanceWindowGetParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the maintenance window get params

func (*MaintenanceWindowGetParams) SetContext

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

SetContext adds the context to the maintenance window get params

func (*MaintenanceWindowGetParams) SetDefaults

func (o *MaintenanceWindowGetParams) SetDefaults()

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

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

func (*MaintenanceWindowGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the maintenance window get params

func (*MaintenanceWindowGetParams) SetLocationOrganizationID

func (o *MaintenanceWindowGetParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the maintenance window get params

func (*MaintenanceWindowGetParams) SetLocationProjectID

func (o *MaintenanceWindowGetParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the maintenance window get params

func (*MaintenanceWindowGetParams) SetLocationRegionProvider

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

SetLocationRegionProvider adds the locationRegionProvider to the maintenance window get params

func (*MaintenanceWindowGetParams) SetLocationRegionRegion

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

SetLocationRegionRegion adds the locationRegionRegion to the maintenance window get params

func (*MaintenanceWindowGetParams) SetTimeout

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

SetTimeout adds the timeout to the maintenance window get params

func (*MaintenanceWindowGetParams) WithClusterID

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

WithClusterID adds the clusterID to the maintenance window get params

func (*MaintenanceWindowGetParams) WithContext

WithContext adds the context to the maintenance window get params

func (*MaintenanceWindowGetParams) WithDefaults

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

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

func (*MaintenanceWindowGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the maintenance window get params

func (*MaintenanceWindowGetParams) WithLocationOrganizationID

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

WithLocationOrganizationID adds the locationOrganizationID to the maintenance window get params

func (*MaintenanceWindowGetParams) WithLocationProjectID

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

WithLocationProjectID adds the locationProjectID to the maintenance window get params

func (*MaintenanceWindowGetParams) WithLocationRegionProvider

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

WithLocationRegionProvider adds the locationRegionProvider to the maintenance window get params

func (*MaintenanceWindowGetParams) WithLocationRegionRegion

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

WithLocationRegionRegion adds the locationRegionRegion to the maintenance window get params

func (*MaintenanceWindowGetParams) WithTimeout

WithTimeout adds the timeout to the maintenance window get params

func (*MaintenanceWindowGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type MaintenanceWindowGetReader

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

MaintenanceWindowGetReader is a Reader for the MaintenanceWindowGet structure.

func (*MaintenanceWindowGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MaintenanceWindowUpdateDefault

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

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

An unexpected error response.

func NewMaintenanceWindowUpdateDefault

func NewMaintenanceWindowUpdateDefault(code int) *MaintenanceWindowUpdateDefault

NewMaintenanceWindowUpdateDefault creates a MaintenanceWindowUpdateDefault with default headers values

func (*MaintenanceWindowUpdateDefault) Code

Code gets the status code for the maintenance window update default response

func (*MaintenanceWindowUpdateDefault) Error

func (*MaintenanceWindowUpdateDefault) GetPayload

func (*MaintenanceWindowUpdateDefault) IsClientError

func (o *MaintenanceWindowUpdateDefault) IsClientError() bool

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

func (*MaintenanceWindowUpdateDefault) IsCode

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

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

func (*MaintenanceWindowUpdateDefault) IsRedirect

func (o *MaintenanceWindowUpdateDefault) IsRedirect() bool

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

func (*MaintenanceWindowUpdateDefault) IsServerError

func (o *MaintenanceWindowUpdateDefault) IsServerError() bool

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

func (*MaintenanceWindowUpdateDefault) IsSuccess

func (o *MaintenanceWindowUpdateDefault) IsSuccess() bool

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

func (*MaintenanceWindowUpdateDefault) String

type MaintenanceWindowUpdateOK

type MaintenanceWindowUpdateOK struct {
	Payload *models.HashicorpCloudBoundary20211221MaintenanceWindowUpdateResponse
}

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

A successful response.

func NewMaintenanceWindowUpdateOK

func NewMaintenanceWindowUpdateOK() *MaintenanceWindowUpdateOK

NewMaintenanceWindowUpdateOK creates a MaintenanceWindowUpdateOK with default headers values

func (*MaintenanceWindowUpdateOK) Error

func (o *MaintenanceWindowUpdateOK) Error() string

func (*MaintenanceWindowUpdateOK) IsClientError

func (o *MaintenanceWindowUpdateOK) IsClientError() bool

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

func (*MaintenanceWindowUpdateOK) IsCode

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

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

func (*MaintenanceWindowUpdateOK) IsRedirect

func (o *MaintenanceWindowUpdateOK) IsRedirect() bool

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

func (*MaintenanceWindowUpdateOK) IsServerError

func (o *MaintenanceWindowUpdateOK) IsServerError() bool

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

func (*MaintenanceWindowUpdateOK) IsSuccess

func (o *MaintenanceWindowUpdateOK) IsSuccess() bool

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

func (*MaintenanceWindowUpdateOK) String

func (o *MaintenanceWindowUpdateOK) String() string

type MaintenanceWindowUpdateParams

type MaintenanceWindowUpdateParams struct {

	// Body.
	Body *models.HashicorpCloudBoundary20211221MaintenanceWindowUpdateRequest

	/* ClusterID.

	   cluster_id is the ID of the cluster to set the maintenance window for.
	*/
	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
}

MaintenanceWindowUpdateParams contains all the parameters to send to the API endpoint

for the maintenance window update operation.

Typically these are written to a http.Request.

func NewMaintenanceWindowUpdateParams

func NewMaintenanceWindowUpdateParams() *MaintenanceWindowUpdateParams

NewMaintenanceWindowUpdateParams creates a new MaintenanceWindowUpdateParams 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 NewMaintenanceWindowUpdateParamsWithContext

func NewMaintenanceWindowUpdateParamsWithContext(ctx context.Context) *MaintenanceWindowUpdateParams

NewMaintenanceWindowUpdateParamsWithContext creates a new MaintenanceWindowUpdateParams object with the ability to set a context for a request.

func NewMaintenanceWindowUpdateParamsWithHTTPClient

func NewMaintenanceWindowUpdateParamsWithHTTPClient(client *http.Client) *MaintenanceWindowUpdateParams

NewMaintenanceWindowUpdateParamsWithHTTPClient creates a new MaintenanceWindowUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewMaintenanceWindowUpdateParamsWithTimeout

func NewMaintenanceWindowUpdateParamsWithTimeout(timeout time.Duration) *MaintenanceWindowUpdateParams

NewMaintenanceWindowUpdateParamsWithTimeout creates a new MaintenanceWindowUpdateParams object with the ability to set a timeout on a request.

func (*MaintenanceWindowUpdateParams) SetBody

SetBody adds the body to the maintenance window update params

func (*MaintenanceWindowUpdateParams) SetClusterID

func (o *MaintenanceWindowUpdateParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the maintenance window update params

func (*MaintenanceWindowUpdateParams) SetContext

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

SetContext adds the context to the maintenance window update params

func (*MaintenanceWindowUpdateParams) SetDefaults

func (o *MaintenanceWindowUpdateParams) SetDefaults()

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

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

func (*MaintenanceWindowUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the maintenance window update params

func (*MaintenanceWindowUpdateParams) SetLocationOrganizationID

func (o *MaintenanceWindowUpdateParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the maintenance window update params

func (*MaintenanceWindowUpdateParams) SetLocationProjectID

func (o *MaintenanceWindowUpdateParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the maintenance window update params

func (*MaintenanceWindowUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WithBody

WithBody adds the body to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WithClusterID

WithClusterID adds the clusterID to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WithContext

WithContext adds the context to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WithDefaults

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

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

func (*MaintenanceWindowUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WithLocationOrganizationID

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

WithLocationOrganizationID adds the locationOrganizationID to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WithLocationProjectID

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

WithLocationProjectID adds the locationProjectID to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WithTimeout

WithTimeout adds the timeout to the maintenance window update params

func (*MaintenanceWindowUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type MaintenanceWindowUpdateReader

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

MaintenanceWindowUpdateReader is a Reader for the MaintenanceWindowUpdate structure.

func (*MaintenanceWindowUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SessionsDefault

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

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

An unexpected error response.

func NewSessionsDefault

func NewSessionsDefault(code int) *SessionsDefault

NewSessionsDefault creates a SessionsDefault with default headers values

func (*SessionsDefault) Code

func (o *SessionsDefault) Code() int

Code gets the status code for the sessions default response

func (*SessionsDefault) Error

func (o *SessionsDefault) Error() string

func (*SessionsDefault) GetPayload

func (*SessionsDefault) IsClientError

func (o *SessionsDefault) IsClientError() bool

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

func (*SessionsDefault) IsCode

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

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

func (*SessionsDefault) IsRedirect

func (o *SessionsDefault) IsRedirect() bool

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

func (*SessionsDefault) IsServerError

func (o *SessionsDefault) IsServerError() bool

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

func (*SessionsDefault) IsSuccess

func (o *SessionsDefault) IsSuccess() bool

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

func (*SessionsDefault) String

func (o *SessionsDefault) String() string

type SessionsOK

type SessionsOK struct {
	Payload *models.HashicorpCloudBoundary20211221SessionsResponse
}

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

A successful response.

func NewSessionsOK

func NewSessionsOK() *SessionsOK

NewSessionsOK creates a SessionsOK with default headers values

func (*SessionsOK) Error

func (o *SessionsOK) Error() string

func (*SessionsOK) IsClientError

func (o *SessionsOK) IsClientError() bool

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

func (*SessionsOK) IsCode

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

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

func (*SessionsOK) IsRedirect

func (o *SessionsOK) IsRedirect() bool

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

func (*SessionsOK) IsServerError

func (o *SessionsOK) IsServerError() bool

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

func (*SessionsOK) IsSuccess

func (o *SessionsOK) IsSuccess() bool

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

func (*SessionsOK) String

func (o *SessionsOK) String() string

type SessionsParams

type SessionsParams struct {

	/* ClusterID.

	   cluster_id is the id of the cluster set by user on creation.
	*/
	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
}

SessionsParams contains all the parameters to send to the API endpoint

for the sessions operation.

Typically these are written to a http.Request.

func NewSessionsParams

func NewSessionsParams() *SessionsParams

NewSessionsParams creates a new SessionsParams 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 NewSessionsParamsWithContext

func NewSessionsParamsWithContext(ctx context.Context) *SessionsParams

NewSessionsParamsWithContext creates a new SessionsParams object with the ability to set a context for a request.

func NewSessionsParamsWithHTTPClient

func NewSessionsParamsWithHTTPClient(client *http.Client) *SessionsParams

NewSessionsParamsWithHTTPClient creates a new SessionsParams object with the ability to set a custom HTTPClient for a request.

func NewSessionsParamsWithTimeout

func NewSessionsParamsWithTimeout(timeout time.Duration) *SessionsParams

NewSessionsParamsWithTimeout creates a new SessionsParams object with the ability to set a timeout on a request.

func (*SessionsParams) SetClusterID

func (o *SessionsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the sessions params

func (*SessionsParams) SetContext

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

SetContext adds the context to the sessions params

func (*SessionsParams) SetDefaults

func (o *SessionsParams) SetDefaults()

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

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

func (*SessionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the sessions params

func (*SessionsParams) SetLocationOrganizationID

func (o *SessionsParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the sessions params

func (*SessionsParams) SetLocationProjectID

func (o *SessionsParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the sessions params

func (*SessionsParams) SetLocationRegionProvider

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

SetLocationRegionProvider adds the locationRegionProvider to the sessions params

func (*SessionsParams) SetLocationRegionRegion

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

SetLocationRegionRegion adds the locationRegionRegion to the sessions params

func (*SessionsParams) SetTimeout

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

SetTimeout adds the timeout to the sessions params

func (*SessionsParams) WithClusterID

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

WithClusterID adds the clusterID to the sessions params

func (*SessionsParams) WithContext

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

WithContext adds the context to the sessions params

func (*SessionsParams) WithDefaults

func (o *SessionsParams) WithDefaults() *SessionsParams

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

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

func (*SessionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the sessions params

func (*SessionsParams) WithLocationOrganizationID

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

WithLocationOrganizationID adds the locationOrganizationID to the sessions params

func (*SessionsParams) WithLocationProjectID

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

WithLocationProjectID adds the locationProjectID to the sessions params

func (*SessionsParams) WithLocationRegionProvider

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

WithLocationRegionProvider adds the locationRegionProvider to the sessions params

func (*SessionsParams) WithLocationRegionRegion

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

WithLocationRegionRegion adds the locationRegionRegion to the sessions params

func (*SessionsParams) WithTimeout

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

WithTimeout adds the timeout to the sessions params

func (*SessionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SessionsReader

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

SessionsReader is a Reader for the Sessions structure.

func (*SessionsReader) ReadResponse

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

func (o *UpdateDefault) IsClientError() bool

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

func (*UpdateDefault) IsCode

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

func (o *UpdateDefault) IsRedirect() bool

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

func (*UpdateDefault) IsServerError

func (o *UpdateDefault) IsServerError() bool

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

func (*UpdateDefault) IsSuccess

func (o *UpdateDefault) IsSuccess() bool

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

func (*UpdateDefault) String

func (o *UpdateDefault) String() string

type UpdateOK

type UpdateOK struct {
	Payload *models.HashicorpCloudBoundary20211221UpdateResponse
}

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

func (o *UpdateOK) IsClientError() bool

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

func (*UpdateOK) IsCode

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

func (o *UpdateOK) IsRedirect() bool

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

func (*UpdateOK) IsServerError

func (o *UpdateOK) IsServerError() bool

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

func (*UpdateOK) IsSuccess

func (o *UpdateOK) IsSuccess() bool

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

func (*UpdateOK) String

func (o *UpdateOK) String() string

type UpdateParams

type UpdateParams struct {

	// Body.
	Body *models.HashicorpCloudBoundary20211221UpdateRequest

	/* ClusterID.

	   cluster_id is the id of the cluster set by user on creation.
	*/
	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
}

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

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

SetContext adds the context to the update params

func (*UpdateParams) SetDefaults

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

func (o *UpdateParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the update params

func (*UpdateParams) SetLocationProjectID

func (o *UpdateParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the update params

func (*UpdateParams) SetTimeout

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

SetTimeout adds the timeout 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) WithContext

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

WithContext adds the context to the update params

func (*UpdateParams) WithDefaults

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

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

WithLocationOrganizationID adds the locationOrganizationID to the update params

func (*UpdateParams) WithLocationProjectID

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

WithLocationProjectID adds the locationProjectID 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) 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.

Jump to

Keyboard shortcuts

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