registry_service

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateRegistryOK

type ActivateRegistryOK struct {
	Payload models.HashicorpCloudVagrantActivateRegistryResponse
}

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

A successful response.

func NewActivateRegistryOK

func NewActivateRegistryOK() *ActivateRegistryOK

NewActivateRegistryOK creates a ActivateRegistryOK with default headers values

func (*ActivateRegistryOK) Error

func (o *ActivateRegistryOK) Error() string

func (*ActivateRegistryOK) GetPayload

func (*ActivateRegistryOK) IsClientError added in v0.23.0

func (o *ActivateRegistryOK) IsClientError() bool

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

func (*ActivateRegistryOK) IsCode added in v0.23.0

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

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

func (*ActivateRegistryOK) IsRedirect added in v0.23.0

func (o *ActivateRegistryOK) IsRedirect() bool

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

func (*ActivateRegistryOK) IsServerError added in v0.23.0

func (o *ActivateRegistryOK) IsServerError() bool

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

func (*ActivateRegistryOK) IsSuccess added in v0.23.0

func (o *ActivateRegistryOK) IsSuccess() bool

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

func (*ActivateRegistryOK) String added in v0.23.0

func (o *ActivateRegistryOK) String() string

type ActivateRegistryParams

type ActivateRegistryParams struct {

	// Body.
	Body *models.HashicorpCloudVagrantActivateRegistryRequest

	/* Registry.

	   The name of the Registry to activate.
	*/
	Registry string

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

ActivateRegistryParams contains all the parameters to send to the API endpoint

for the activate registry operation.

Typically these are written to a http.Request.

func NewActivateRegistryParams

func NewActivateRegistryParams() *ActivateRegistryParams

NewActivateRegistryParams creates a new ActivateRegistryParams 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 NewActivateRegistryParamsWithContext

func NewActivateRegistryParamsWithContext(ctx context.Context) *ActivateRegistryParams

NewActivateRegistryParamsWithContext creates a new ActivateRegistryParams object with the ability to set a context for a request.

func NewActivateRegistryParamsWithHTTPClient

func NewActivateRegistryParamsWithHTTPClient(client *http.Client) *ActivateRegistryParams

NewActivateRegistryParamsWithHTTPClient creates a new ActivateRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewActivateRegistryParamsWithTimeout

func NewActivateRegistryParamsWithTimeout(timeout time.Duration) *ActivateRegistryParams

NewActivateRegistryParamsWithTimeout creates a new ActivateRegistryParams object with the ability to set a timeout on a request.

func (*ActivateRegistryParams) SetBody

SetBody adds the body to the activate registry params

func (*ActivateRegistryParams) SetContext

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

SetContext adds the context to the activate registry params

func (*ActivateRegistryParams) SetDefaults added in v0.23.0

func (o *ActivateRegistryParams) SetDefaults()

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

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

func (*ActivateRegistryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activate registry params

func (*ActivateRegistryParams) SetRegistry

func (o *ActivateRegistryParams) SetRegistry(registry string)

SetRegistry adds the registry to the activate registry params

func (*ActivateRegistryParams) SetTimeout

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

SetTimeout adds the timeout to the activate registry params

func (*ActivateRegistryParams) WithBody

WithBody adds the body to the activate registry params

func (*ActivateRegistryParams) WithContext

WithContext adds the context to the activate registry params

func (*ActivateRegistryParams) WithDefaults added in v0.23.0

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

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

func (*ActivateRegistryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the activate registry params

func (*ActivateRegistryParams) WithRegistry

func (o *ActivateRegistryParams) WithRegistry(registry string) *ActivateRegistryParams

WithRegistry adds the registry to the activate registry params

func (*ActivateRegistryParams) WithTimeout

WithTimeout adds the timeout to the activate registry params

func (*ActivateRegistryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivateRegistryReader

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

ActivateRegistryReader is a Reader for the ActivateRegistry structure.

func (*ActivateRegistryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for registry service API

func (*Client) ActivateRegistry

func (a *Client) ActivateRegistry(params *ActivateRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivateRegistryOK, error)
ActivateRegistry activates registry activates a vagrant box registry at the location specified the registry must already exist and must be currently disabled

Activation will re-enable a Registry, allowing requests and

accruing charges as normal.

func (*Client) CreateRegistry

func (a *Client) CreateRegistry(params *CreateRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRegistryOK, error)

CreateRegistry creates registry creates a vagrant box registry at the location specified

func (*Client) DeactivateRegistry

func (a *Client) DeactivateRegistry(params *DeactivateRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeactivateRegistryOK, error)
DeactivateRegistry deactivates registry deactivates a vagrant box registry at the location specified the registry must already exist and must be currently enabled

Deactivation will disable a Registry but not delete its data.

All requests to the Registry will return not-found errors. This can be used to temporarily block access to a Registry to prevent access-related charges to the Registry.

func (*Client) DeleteRegistry

func (a *Client) DeleteRegistry(params *DeleteRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRegistryOK, error)
DeleteRegistry deletes registry deletes a vagrant box registry at the location specified

Deletion removes the Registry and all of its Box, Version, and

Provider data, including any Hosted Providers and their respective data. This operation is permanent and cannot be undone.

func (*Client) ListRegistries

func (a *Client) ListRegistries(params *ListRegistriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRegistriesOK, error)

ListRegistries lists registries lists available vagrant box registries the query can be scoped to a particular organization or project

func (*Client) ReadRegistry

func (a *Client) ReadRegistry(params *ReadRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReadRegistryOK, error)

ReadRegistry reads registry reads a vagrant box registry by its name

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.23.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ActivateRegistry(params *ActivateRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivateRegistryOK, error)

	CreateRegistry(params *CreateRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRegistryOK, error)

	DeactivateRegistry(params *DeactivateRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeactivateRegistryOK, error)

	DeleteRegistry(params *DeleteRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRegistryOK, error)

	ListRegistries(params *ListRegistriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRegistriesOK, error)

	ReadRegistry(params *ReadRegistryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReadRegistryOK, 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 registry service API client.

type CreateRegistryOK

type CreateRegistryOK struct {
	Payload *models.HashicorpCloudVagrantCreateRegistryResponse
}

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

A successful response.

func NewCreateRegistryOK

func NewCreateRegistryOK() *CreateRegistryOK

NewCreateRegistryOK creates a CreateRegistryOK with default headers values

func (*CreateRegistryOK) Error

func (o *CreateRegistryOK) Error() string

func (*CreateRegistryOK) GetPayload

func (*CreateRegistryOK) IsClientError added in v0.23.0

func (o *CreateRegistryOK) IsClientError() bool

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

func (*CreateRegistryOK) IsCode added in v0.23.0

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

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

func (*CreateRegistryOK) IsRedirect added in v0.23.0

func (o *CreateRegistryOK) IsRedirect() bool

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

func (*CreateRegistryOK) IsServerError added in v0.23.0

func (o *CreateRegistryOK) IsServerError() bool

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

func (*CreateRegistryOK) IsSuccess added in v0.23.0

func (o *CreateRegistryOK) IsSuccess() bool

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

func (*CreateRegistryOK) String added in v0.23.0

func (o *CreateRegistryOK) String() string

type CreateRegistryParams

type CreateRegistryParams struct {

	// Body.
	Body *models.HashicorpCloudVagrantCreateRegistryRequest

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

CreateRegistryParams contains all the parameters to send to the API endpoint

for the create registry operation.

Typically these are written to a http.Request.

func NewCreateRegistryParams

func NewCreateRegistryParams() *CreateRegistryParams

NewCreateRegistryParams creates a new CreateRegistryParams 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 NewCreateRegistryParamsWithContext

func NewCreateRegistryParamsWithContext(ctx context.Context) *CreateRegistryParams

NewCreateRegistryParamsWithContext creates a new CreateRegistryParams object with the ability to set a context for a request.

func NewCreateRegistryParamsWithHTTPClient

func NewCreateRegistryParamsWithHTTPClient(client *http.Client) *CreateRegistryParams

NewCreateRegistryParamsWithHTTPClient creates a new CreateRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRegistryParamsWithTimeout

func NewCreateRegistryParamsWithTimeout(timeout time.Duration) *CreateRegistryParams

NewCreateRegistryParamsWithTimeout creates a new CreateRegistryParams object with the ability to set a timeout on a request.

func (*CreateRegistryParams) SetBody

SetBody adds the body to the create registry params

func (*CreateRegistryParams) SetContext

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

SetContext adds the context to the create registry params

func (*CreateRegistryParams) SetDefaults added in v0.23.0

func (o *CreateRegistryParams) SetDefaults()

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

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

func (*CreateRegistryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create registry params

func (*CreateRegistryParams) SetTimeout

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

SetTimeout adds the timeout to the create registry params

func (*CreateRegistryParams) WithBody

WithBody adds the body to the create registry params

func (*CreateRegistryParams) WithContext

WithContext adds the context to the create registry params

func (*CreateRegistryParams) WithDefaults added in v0.23.0

func (o *CreateRegistryParams) WithDefaults() *CreateRegistryParams

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

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

func (*CreateRegistryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create registry params

func (*CreateRegistryParams) WithTimeout

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

WithTimeout adds the timeout to the create registry params

func (*CreateRegistryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRegistryReader

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

CreateRegistryReader is a Reader for the CreateRegistry structure.

func (*CreateRegistryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeactivateRegistryOK

type DeactivateRegistryOK struct {
	Payload models.HashicorpCloudVagrantDeactivateRegistryResponse
}

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

A successful response.

func NewDeactivateRegistryOK

func NewDeactivateRegistryOK() *DeactivateRegistryOK

NewDeactivateRegistryOK creates a DeactivateRegistryOK with default headers values

func (*DeactivateRegistryOK) Error

func (o *DeactivateRegistryOK) Error() string

func (*DeactivateRegistryOK) GetPayload

func (*DeactivateRegistryOK) IsClientError added in v0.23.0

func (o *DeactivateRegistryOK) IsClientError() bool

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

func (*DeactivateRegistryOK) IsCode added in v0.23.0

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

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

func (*DeactivateRegistryOK) IsRedirect added in v0.23.0

func (o *DeactivateRegistryOK) IsRedirect() bool

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

func (*DeactivateRegistryOK) IsServerError added in v0.23.0

func (o *DeactivateRegistryOK) IsServerError() bool

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

func (*DeactivateRegistryOK) IsSuccess added in v0.23.0

func (o *DeactivateRegistryOK) IsSuccess() bool

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

func (*DeactivateRegistryOK) String added in v0.23.0

func (o *DeactivateRegistryOK) String() string

type DeactivateRegistryParams

type DeactivateRegistryParams struct {

	// Body.
	Body *models.HashicorpCloudVagrantDeactivateRegistryRequest

	/* Registry.

	   The name of the Registry to deactivate.
	*/
	Registry string

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

DeactivateRegistryParams contains all the parameters to send to the API endpoint

for the deactivate registry operation.

Typically these are written to a http.Request.

func NewDeactivateRegistryParams

func NewDeactivateRegistryParams() *DeactivateRegistryParams

NewDeactivateRegistryParams creates a new DeactivateRegistryParams 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 NewDeactivateRegistryParamsWithContext

func NewDeactivateRegistryParamsWithContext(ctx context.Context) *DeactivateRegistryParams

NewDeactivateRegistryParamsWithContext creates a new DeactivateRegistryParams object with the ability to set a context for a request.

func NewDeactivateRegistryParamsWithHTTPClient

func NewDeactivateRegistryParamsWithHTTPClient(client *http.Client) *DeactivateRegistryParams

NewDeactivateRegistryParamsWithHTTPClient creates a new DeactivateRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewDeactivateRegistryParamsWithTimeout

func NewDeactivateRegistryParamsWithTimeout(timeout time.Duration) *DeactivateRegistryParams

NewDeactivateRegistryParamsWithTimeout creates a new DeactivateRegistryParams object with the ability to set a timeout on a request.

func (*DeactivateRegistryParams) SetBody

SetBody adds the body to the deactivate registry params

func (*DeactivateRegistryParams) SetContext

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

SetContext adds the context to the deactivate registry params

func (*DeactivateRegistryParams) SetDefaults added in v0.23.0

func (o *DeactivateRegistryParams) SetDefaults()

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

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

func (*DeactivateRegistryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the deactivate registry params

func (*DeactivateRegistryParams) SetRegistry

func (o *DeactivateRegistryParams) SetRegistry(registry string)

SetRegistry adds the registry to the deactivate registry params

func (*DeactivateRegistryParams) SetTimeout

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

SetTimeout adds the timeout to the deactivate registry params

func (*DeactivateRegistryParams) WithBody

WithBody adds the body to the deactivate registry params

func (*DeactivateRegistryParams) WithContext

WithContext adds the context to the deactivate registry params

func (*DeactivateRegistryParams) WithDefaults added in v0.23.0

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

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

func (*DeactivateRegistryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the deactivate registry params

func (*DeactivateRegistryParams) WithRegistry

func (o *DeactivateRegistryParams) WithRegistry(registry string) *DeactivateRegistryParams

WithRegistry adds the registry to the deactivate registry params

func (*DeactivateRegistryParams) WithTimeout

WithTimeout adds the timeout to the deactivate registry params

func (*DeactivateRegistryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeactivateRegistryReader

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

DeactivateRegistryReader is a Reader for the DeactivateRegistry structure.

func (*DeactivateRegistryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRegistryOK

type DeleteRegistryOK struct {
	Payload models.HashicorpCloudVagrantDeleteRegistryResponse
}

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

A successful response.

func NewDeleteRegistryOK

func NewDeleteRegistryOK() *DeleteRegistryOK

NewDeleteRegistryOK creates a DeleteRegistryOK with default headers values

func (*DeleteRegistryOK) Error

func (o *DeleteRegistryOK) Error() string

func (*DeleteRegistryOK) GetPayload

func (*DeleteRegistryOK) IsClientError added in v0.23.0

func (o *DeleteRegistryOK) IsClientError() bool

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

func (*DeleteRegistryOK) IsCode added in v0.23.0

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

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

func (*DeleteRegistryOK) IsRedirect added in v0.23.0

func (o *DeleteRegistryOK) IsRedirect() bool

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

func (*DeleteRegistryOK) IsServerError added in v0.23.0

func (o *DeleteRegistryOK) IsServerError() bool

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

func (*DeleteRegistryOK) IsSuccess added in v0.23.0

func (o *DeleteRegistryOK) IsSuccess() bool

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

func (*DeleteRegistryOK) String added in v0.23.0

func (o *DeleteRegistryOK) String() string

type DeleteRegistryParams

type DeleteRegistryParams struct {

	/* Registry.

	   The name of the Registry to delete.
	*/
	Registry string

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

DeleteRegistryParams contains all the parameters to send to the API endpoint

for the delete registry operation.

Typically these are written to a http.Request.

func NewDeleteRegistryParams

func NewDeleteRegistryParams() *DeleteRegistryParams

NewDeleteRegistryParams creates a new DeleteRegistryParams 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 NewDeleteRegistryParamsWithContext

func NewDeleteRegistryParamsWithContext(ctx context.Context) *DeleteRegistryParams

NewDeleteRegistryParamsWithContext creates a new DeleteRegistryParams object with the ability to set a context for a request.

func NewDeleteRegistryParamsWithHTTPClient

func NewDeleteRegistryParamsWithHTTPClient(client *http.Client) *DeleteRegistryParams

NewDeleteRegistryParamsWithHTTPClient creates a new DeleteRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteRegistryParamsWithTimeout

func NewDeleteRegistryParamsWithTimeout(timeout time.Duration) *DeleteRegistryParams

NewDeleteRegistryParamsWithTimeout creates a new DeleteRegistryParams object with the ability to set a timeout on a request.

func (*DeleteRegistryParams) SetContext

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

SetContext adds the context to the delete registry params

func (*DeleteRegistryParams) SetDefaults added in v0.23.0

func (o *DeleteRegistryParams) SetDefaults()

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

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

func (*DeleteRegistryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete registry params

func (*DeleteRegistryParams) SetRegistry

func (o *DeleteRegistryParams) SetRegistry(registry string)

SetRegistry adds the registry to the delete registry params

func (*DeleteRegistryParams) SetTimeout

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

SetTimeout adds the timeout to the delete registry params

func (*DeleteRegistryParams) WithContext

WithContext adds the context to the delete registry params

func (*DeleteRegistryParams) WithDefaults added in v0.23.0

func (o *DeleteRegistryParams) WithDefaults() *DeleteRegistryParams

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

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

func (*DeleteRegistryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete registry params

func (*DeleteRegistryParams) WithRegistry

func (o *DeleteRegistryParams) WithRegistry(registry string) *DeleteRegistryParams

WithRegistry adds the registry to the delete registry params

func (*DeleteRegistryParams) WithTimeout

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

WithTimeout adds the timeout to the delete registry params

func (*DeleteRegistryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRegistryReader

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

DeleteRegistryReader is a Reader for the DeleteRegistry structure.

func (*DeleteRegistryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRegistriesOK

type ListRegistriesOK struct {
	Payload *models.HashicorpCloudVagrantListRegistriesResponse
}

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

A successful response.

func NewListRegistriesOK

func NewListRegistriesOK() *ListRegistriesOK

NewListRegistriesOK creates a ListRegistriesOK with default headers values

func (*ListRegistriesOK) Error

func (o *ListRegistriesOK) Error() string

func (*ListRegistriesOK) GetPayload

func (*ListRegistriesOK) IsClientError added in v0.23.0

func (o *ListRegistriesOK) IsClientError() bool

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

func (*ListRegistriesOK) IsCode added in v0.23.0

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

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

func (*ListRegistriesOK) IsRedirect added in v0.23.0

func (o *ListRegistriesOK) IsRedirect() bool

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

func (*ListRegistriesOK) IsServerError added in v0.23.0

func (o *ListRegistriesOK) IsServerError() bool

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

func (*ListRegistriesOK) IsSuccess added in v0.23.0

func (o *ListRegistriesOK) IsSuccess() bool

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

func (*ListRegistriesOK) String added in v0.23.0

func (o *ListRegistriesOK) String() string

type ListRegistriesParams

type ListRegistriesParams 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
}

ListRegistriesParams contains all the parameters to send to the API endpoint

for the list registries operation.

Typically these are written to a http.Request.

func NewListRegistriesParams

func NewListRegistriesParams() *ListRegistriesParams

NewListRegistriesParams creates a new ListRegistriesParams 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 NewListRegistriesParamsWithContext

func NewListRegistriesParamsWithContext(ctx context.Context) *ListRegistriesParams

NewListRegistriesParamsWithContext creates a new ListRegistriesParams object with the ability to set a context for a request.

func NewListRegistriesParamsWithHTTPClient

func NewListRegistriesParamsWithHTTPClient(client *http.Client) *ListRegistriesParams

NewListRegistriesParamsWithHTTPClient creates a new ListRegistriesParams object with the ability to set a custom HTTPClient for a request.

func NewListRegistriesParamsWithTimeout

func NewListRegistriesParamsWithTimeout(timeout time.Duration) *ListRegistriesParams

NewListRegistriesParamsWithTimeout creates a new ListRegistriesParams object with the ability to set a timeout on a request.

func (*ListRegistriesParams) SetContext

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

SetContext adds the context to the list registries params

func (*ListRegistriesParams) SetDefaults added in v0.23.0

func (o *ListRegistriesParams) SetDefaults()

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

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

func (*ListRegistriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list registries params

func (*ListRegistriesParams) SetLocationOrganizationID

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

SetLocationOrganizationID adds the locationOrganizationId to the list registries params

func (*ListRegistriesParams) SetLocationProjectID

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

SetLocationProjectID adds the locationProjectId to the list registries params

func (*ListRegistriesParams) SetLocationRegionProvider

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

SetLocationRegionProvider adds the locationRegionProvider to the list registries params

func (*ListRegistriesParams) SetLocationRegionRegion

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

SetLocationRegionRegion adds the locationRegionRegion to the list registries params

func (*ListRegistriesParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the list registries params

func (*ListRegistriesParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the list registries params

func (*ListRegistriesParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list registries params

func (*ListRegistriesParams) SetTimeout

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

SetTimeout adds the timeout to the list registries params

func (*ListRegistriesParams) WithContext

WithContext adds the context to the list registries params

func (*ListRegistriesParams) WithDefaults added in v0.23.0

func (o *ListRegistriesParams) WithDefaults() *ListRegistriesParams

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

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

func (*ListRegistriesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list registries params

func (*ListRegistriesParams) WithLocationOrganizationID

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

WithLocationOrganizationID adds the locationOrganizationID to the list registries params

func (*ListRegistriesParams) WithLocationProjectID

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

WithLocationProjectID adds the locationProjectID to the list registries params

func (*ListRegistriesParams) WithLocationRegionProvider

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

WithLocationRegionProvider adds the locationRegionProvider to the list registries params

func (*ListRegistriesParams) WithLocationRegionRegion

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

WithLocationRegionRegion adds the locationRegionRegion to the list registries params

func (*ListRegistriesParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the list registries params

func (*ListRegistriesParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the list registries params

func (*ListRegistriesParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list registries params

func (*ListRegistriesParams) WithTimeout

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

WithTimeout adds the timeout to the list registries params

func (*ListRegistriesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRegistriesReader

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

ListRegistriesReader is a Reader for the ListRegistries structure.

func (*ListRegistriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadRegistryOK

type ReadRegistryOK struct {
	Payload *models.HashicorpCloudVagrantReadRegistryResponse
}

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

A successful response.

func NewReadRegistryOK

func NewReadRegistryOK() *ReadRegistryOK

NewReadRegistryOK creates a ReadRegistryOK with default headers values

func (*ReadRegistryOK) Error

func (o *ReadRegistryOK) Error() string

func (*ReadRegistryOK) GetPayload

func (*ReadRegistryOK) IsClientError added in v0.23.0

func (o *ReadRegistryOK) IsClientError() bool

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

func (*ReadRegistryOK) IsCode added in v0.23.0

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

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

func (*ReadRegistryOK) IsRedirect added in v0.23.0

func (o *ReadRegistryOK) IsRedirect() bool

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

func (*ReadRegistryOK) IsServerError added in v0.23.0

func (o *ReadRegistryOK) IsServerError() bool

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

func (*ReadRegistryOK) IsSuccess added in v0.23.0

func (o *ReadRegistryOK) IsSuccess() bool

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

func (*ReadRegistryOK) String added in v0.23.0

func (o *ReadRegistryOK) String() string

type ReadRegistryParams

type ReadRegistryParams struct {

	/* Registry.

	   The name of the Registry to look up.
	*/
	Registry string

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

ReadRegistryParams contains all the parameters to send to the API endpoint

for the read registry operation.

Typically these are written to a http.Request.

func NewReadRegistryParams

func NewReadRegistryParams() *ReadRegistryParams

NewReadRegistryParams creates a new ReadRegistryParams 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 NewReadRegistryParamsWithContext

func NewReadRegistryParamsWithContext(ctx context.Context) *ReadRegistryParams

NewReadRegistryParamsWithContext creates a new ReadRegistryParams object with the ability to set a context for a request.

func NewReadRegistryParamsWithHTTPClient

func NewReadRegistryParamsWithHTTPClient(client *http.Client) *ReadRegistryParams

NewReadRegistryParamsWithHTTPClient creates a new ReadRegistryParams object with the ability to set a custom HTTPClient for a request.

func NewReadRegistryParamsWithTimeout

func NewReadRegistryParamsWithTimeout(timeout time.Duration) *ReadRegistryParams

NewReadRegistryParamsWithTimeout creates a new ReadRegistryParams object with the ability to set a timeout on a request.

func (*ReadRegistryParams) SetContext

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

SetContext adds the context to the read registry params

func (*ReadRegistryParams) SetDefaults added in v0.23.0

func (o *ReadRegistryParams) SetDefaults()

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

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

func (*ReadRegistryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read registry params

func (*ReadRegistryParams) SetRegistry

func (o *ReadRegistryParams) SetRegistry(registry string)

SetRegistry adds the registry to the read registry params

func (*ReadRegistryParams) SetTimeout

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

SetTimeout adds the timeout to the read registry params

func (*ReadRegistryParams) WithContext

WithContext adds the context to the read registry params

func (*ReadRegistryParams) WithDefaults added in v0.23.0

func (o *ReadRegistryParams) WithDefaults() *ReadRegistryParams

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

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

func (*ReadRegistryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read registry params

func (*ReadRegistryParams) WithRegistry

func (o *ReadRegistryParams) WithRegistry(registry string) *ReadRegistryParams

WithRegistry adds the registry to the read registry params

func (*ReadRegistryParams) WithTimeout

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

WithTimeout adds the timeout to the read registry params

func (*ReadRegistryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadRegistryReader

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

ReadRegistryReader is a Reader for the ReadRegistry structure.

func (*ReadRegistryReader) ReadResponse

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