version_service

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for version service API

func (*Client) CreateVersion

func (a *Client) CreateVersion(params *CreateVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateVersionOK, error)

CreateVersion creates version creates a new box version

func (*Client) DeleteVersion

func (a *Client) DeleteVersion(params *DeleteVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVersionOK, error)
DeleteVersion deletes version deletes a box version

Deleting a Box Version removes all its Providers as well. This

operation cannot be undone.

func (*Client) ListVersions

func (a *Client) ListVersions(params *ListVersionsParams, opts ...ClientOption) (*ListVersionsOK, error)

ListVersions lists version lists all of the versions within a particular box

func (*Client) ReadVersion

func (a *Client) ReadVersion(params *ReadVersionParams, opts ...ClientOption) (*ReadVersionOK, error)

ReadVersion reads version reads a box version

func (*Client) ReleaseVersion

func (a *Client) ReleaseVersion(params *ReleaseVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReleaseVersionOK, error)

ReleaseVersion releases releases the specified version the version must not already be released

func (*Client) RevokeVersion

func (a *Client) RevokeVersion(params *RevokeVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeVersionOK, error)

RevokeVersion revokes revokes the specified version the version must be actively released

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateVersion added in v0.95.0

func (a *Client) UpdateVersion(params *UpdateVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateVersionOK, error)

UpdateVersion updates version updates a box version

type ClientOption added in v0.23.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateVersion(params *CreateVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateVersionOK, error)

	DeleteVersion(params *DeleteVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteVersionOK, error)

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

	ReadVersion(params *ReadVersionParams, opts ...ClientOption) (*ReadVersionOK, error)

	ReleaseVersion(params *ReleaseVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReleaseVersionOK, error)

	RevokeVersion(params *RevokeVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeVersionOK, error)

	UpdateVersion(params *UpdateVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateVersionOK, 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 version service API client.

type CreateVersionBody added in v0.95.0

type CreateVersionBody struct {

	// Details of the Version to create. Note that some fields are ignored
	// on input and should not be set.
	Data *models.HashicorpCloudVagrant20220930Version `json:"data,omitempty"`
}

CreateVersionBody create version body swagger:model CreateVersionBody

func (*CreateVersionBody) ContextValidate added in v0.95.0

func (o *CreateVersionBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create version body based on the context it is used

func (*CreateVersionBody) MarshalBinary added in v0.95.0

func (o *CreateVersionBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateVersionBody) UnmarshalBinary added in v0.95.0

func (o *CreateVersionBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateVersionBody) Validate added in v0.95.0

func (o *CreateVersionBody) Validate(formats strfmt.Registry) error

Validate validates this create version body

type CreateVersionDefault added in v0.95.0

type CreateVersionDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewCreateVersionDefault added in v0.95.0

func NewCreateVersionDefault(code int) *CreateVersionDefault

NewCreateVersionDefault creates a CreateVersionDefault with default headers values

func (*CreateVersionDefault) Code added in v0.95.0

func (o *CreateVersionDefault) Code() int

Code gets the status code for the create version default response

func (*CreateVersionDefault) Error added in v0.95.0

func (o *CreateVersionDefault) Error() string

func (*CreateVersionDefault) GetPayload added in v0.95.0

func (o *CreateVersionDefault) GetPayload() *cloud.GoogleRPCStatus

func (*CreateVersionDefault) IsClientError added in v0.95.0

func (o *CreateVersionDefault) IsClientError() bool

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

func (*CreateVersionDefault) IsCode added in v0.95.0

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

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

func (*CreateVersionDefault) IsRedirect added in v0.95.0

func (o *CreateVersionDefault) IsRedirect() bool

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

func (*CreateVersionDefault) IsServerError added in v0.95.0

func (o *CreateVersionDefault) IsServerError() bool

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

func (*CreateVersionDefault) IsSuccess added in v0.95.0

func (o *CreateVersionDefault) IsSuccess() bool

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

func (*CreateVersionDefault) String added in v0.95.0

func (o *CreateVersionDefault) String() string

type CreateVersionOK

type CreateVersionOK struct {
	Payload *models.HashicorpCloudVagrant20220930CreateVersionResponse
}

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

A successful response.

func NewCreateVersionOK

func NewCreateVersionOK() *CreateVersionOK

NewCreateVersionOK creates a CreateVersionOK with default headers values

func (*CreateVersionOK) Code added in v0.95.0

func (o *CreateVersionOK) Code() int

Code gets the status code for the create version o k response

func (*CreateVersionOK) Error

func (o *CreateVersionOK) Error() string

func (*CreateVersionOK) IsClientError added in v0.23.0

func (o *CreateVersionOK) IsClientError() bool

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

func (*CreateVersionOK) IsCode added in v0.23.0

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

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

func (*CreateVersionOK) IsRedirect added in v0.23.0

func (o *CreateVersionOK) IsRedirect() bool

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

func (*CreateVersionOK) IsServerError added in v0.23.0

func (o *CreateVersionOK) IsServerError() bool

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

func (*CreateVersionOK) IsSuccess added in v0.23.0

func (o *CreateVersionOK) IsSuccess() bool

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

func (*CreateVersionOK) String added in v0.23.0

func (o *CreateVersionOK) String() string

type CreateVersionParams

type CreateVersionParams struct {

	// Body.
	Body CreateVersionBody

	/* Box.

	     The name segment of the Box. As an example, this field would represent the
	"vagrant" in "hashicorp/vagrant".
	*/
	Box string

	/* Registry.

	     The Registry segment of the Box. As an example, this field would represent
	the "hashicorp" in "hashicorp/vagrant".
	*/
	Registry string

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

CreateVersionParams contains all the parameters to send to the API endpoint

for the create version operation.

Typically these are written to a http.Request.

func NewCreateVersionParams

func NewCreateVersionParams() *CreateVersionParams

NewCreateVersionParams creates a new CreateVersionParams 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 NewCreateVersionParamsWithContext

func NewCreateVersionParamsWithContext(ctx context.Context) *CreateVersionParams

NewCreateVersionParamsWithContext creates a new CreateVersionParams object with the ability to set a context for a request.

func NewCreateVersionParamsWithHTTPClient

func NewCreateVersionParamsWithHTTPClient(client *http.Client) *CreateVersionParams

NewCreateVersionParamsWithHTTPClient creates a new CreateVersionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateVersionParamsWithTimeout

func NewCreateVersionParamsWithTimeout(timeout time.Duration) *CreateVersionParams

NewCreateVersionParamsWithTimeout creates a new CreateVersionParams object with the ability to set a timeout on a request.

func (*CreateVersionParams) SetBody

func (o *CreateVersionParams) SetBody(body CreateVersionBody)

SetBody adds the body to the create version params

func (*CreateVersionParams) SetBox

func (o *CreateVersionParams) SetBox(box string)

SetBox adds the box to the create version params

func (*CreateVersionParams) SetContext

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

SetContext adds the context to the create version params

func (*CreateVersionParams) SetDefaults added in v0.23.0

func (o *CreateVersionParams) SetDefaults()

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

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

func (*CreateVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create version params

func (*CreateVersionParams) SetRegistry

func (o *CreateVersionParams) SetRegistry(registry string)

SetRegistry adds the registry to the create version params

func (*CreateVersionParams) SetTimeout

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

SetTimeout adds the timeout to the create version params

func (*CreateVersionParams) WithBody

WithBody adds the body to the create version params

func (*CreateVersionParams) WithBox

WithBox adds the box to the create version params

func (*CreateVersionParams) WithContext

WithContext adds the context to the create version params

func (*CreateVersionParams) WithDefaults added in v0.23.0

func (o *CreateVersionParams) WithDefaults() *CreateVersionParams

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

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

func (*CreateVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create version params

func (*CreateVersionParams) WithRegistry

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

WithRegistry adds the registry to the create version params

func (*CreateVersionParams) WithTimeout

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

WithTimeout adds the timeout to the create version params

func (*CreateVersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateVersionReader

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

CreateVersionReader is a Reader for the CreateVersion structure.

func (*CreateVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteVersionDefault added in v0.95.0

type DeleteVersionDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewDeleteVersionDefault added in v0.95.0

func NewDeleteVersionDefault(code int) *DeleteVersionDefault

NewDeleteVersionDefault creates a DeleteVersionDefault with default headers values

func (*DeleteVersionDefault) Code added in v0.95.0

func (o *DeleteVersionDefault) Code() int

Code gets the status code for the delete version default response

func (*DeleteVersionDefault) Error added in v0.95.0

func (o *DeleteVersionDefault) Error() string

func (*DeleteVersionDefault) GetPayload added in v0.95.0

func (o *DeleteVersionDefault) GetPayload() *cloud.GoogleRPCStatus

func (*DeleteVersionDefault) IsClientError added in v0.95.0

func (o *DeleteVersionDefault) IsClientError() bool

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

func (*DeleteVersionDefault) IsCode added in v0.95.0

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

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

func (*DeleteVersionDefault) IsRedirect added in v0.95.0

func (o *DeleteVersionDefault) IsRedirect() bool

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

func (*DeleteVersionDefault) IsServerError added in v0.95.0

func (o *DeleteVersionDefault) IsServerError() bool

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

func (*DeleteVersionDefault) IsSuccess added in v0.95.0

func (o *DeleteVersionDefault) IsSuccess() bool

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

func (*DeleteVersionDefault) String added in v0.95.0

func (o *DeleteVersionDefault) String() string

type DeleteVersionOK

type DeleteVersionOK struct {
	Payload models.HashicorpCloudVagrant20220930DeleteVersionResponse
}

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

A successful response.

func NewDeleteVersionOK

func NewDeleteVersionOK() *DeleteVersionOK

NewDeleteVersionOK creates a DeleteVersionOK with default headers values

func (*DeleteVersionOK) Code added in v0.95.0

func (o *DeleteVersionOK) Code() int

Code gets the status code for the delete version o k response

func (*DeleteVersionOK) Error

func (o *DeleteVersionOK) Error() string

func (*DeleteVersionOK) IsClientError added in v0.23.0

func (o *DeleteVersionOK) IsClientError() bool

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

func (*DeleteVersionOK) IsCode added in v0.23.0

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

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

func (*DeleteVersionOK) IsRedirect added in v0.23.0

func (o *DeleteVersionOK) IsRedirect() bool

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

func (*DeleteVersionOK) IsServerError added in v0.23.0

func (o *DeleteVersionOK) IsServerError() bool

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

func (*DeleteVersionOK) IsSuccess added in v0.23.0

func (o *DeleteVersionOK) IsSuccess() bool

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

func (*DeleteVersionOK) String added in v0.23.0

func (o *DeleteVersionOK) String() string

type DeleteVersionParams

type DeleteVersionParams struct {

	/* Box.

	     The name segment of the Box. As an example, this field would represent the
	"vagrant" in "hashicorp/vagrant".
	*/
	Box string

	/* Registry.

	     The Registry segment of the Box. As an example, this field would represent
	the "hashicorp" in "hashicorp/vagrant".
	*/
	Registry string

	/* Version.

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

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

DeleteVersionParams contains all the parameters to send to the API endpoint

for the delete version operation.

Typically these are written to a http.Request.

func NewDeleteVersionParams

func NewDeleteVersionParams() *DeleteVersionParams

NewDeleteVersionParams creates a new DeleteVersionParams 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 NewDeleteVersionParamsWithContext

func NewDeleteVersionParamsWithContext(ctx context.Context) *DeleteVersionParams

NewDeleteVersionParamsWithContext creates a new DeleteVersionParams object with the ability to set a context for a request.

func NewDeleteVersionParamsWithHTTPClient

func NewDeleteVersionParamsWithHTTPClient(client *http.Client) *DeleteVersionParams

NewDeleteVersionParamsWithHTTPClient creates a new DeleteVersionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteVersionParamsWithTimeout

func NewDeleteVersionParamsWithTimeout(timeout time.Duration) *DeleteVersionParams

NewDeleteVersionParamsWithTimeout creates a new DeleteVersionParams object with the ability to set a timeout on a request.

func (*DeleteVersionParams) SetBox

func (o *DeleteVersionParams) SetBox(box string)

SetBox adds the box to the delete version params

func (*DeleteVersionParams) SetContext

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

SetContext adds the context to the delete version params

func (*DeleteVersionParams) SetDefaults added in v0.23.0

func (o *DeleteVersionParams) SetDefaults()

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

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

func (*DeleteVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete version params

func (*DeleteVersionParams) SetRegistry

func (o *DeleteVersionParams) SetRegistry(registry string)

SetRegistry adds the registry to the delete version params

func (*DeleteVersionParams) SetTimeout

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

SetTimeout adds the timeout to the delete version params

func (*DeleteVersionParams) SetVersion

func (o *DeleteVersionParams) SetVersion(version string)

SetVersion adds the version to the delete version params

func (*DeleteVersionParams) WithBox

WithBox adds the box to the delete version params

func (*DeleteVersionParams) WithContext

WithContext adds the context to the delete version params

func (*DeleteVersionParams) WithDefaults added in v0.23.0

func (o *DeleteVersionParams) WithDefaults() *DeleteVersionParams

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

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

func (*DeleteVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete version params

func (*DeleteVersionParams) WithRegistry

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

WithRegistry adds the registry to the delete version params

func (*DeleteVersionParams) WithTimeout

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

WithTimeout adds the timeout to the delete version params

func (*DeleteVersionParams) WithVersion

func (o *DeleteVersionParams) WithVersion(version string) *DeleteVersionParams

WithVersion adds the version to the delete version params

func (*DeleteVersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteVersionReader

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

DeleteVersionReader is a Reader for the DeleteVersion structure.

func (*DeleteVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListVersionsDefault added in v0.95.0

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

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

An unexpected error response.

func NewListVersionsDefault added in v0.95.0

func NewListVersionsDefault(code int) *ListVersionsDefault

NewListVersionsDefault creates a ListVersionsDefault with default headers values

func (*ListVersionsDefault) Code added in v0.95.0

func (o *ListVersionsDefault) Code() int

Code gets the status code for the list versions default response

func (*ListVersionsDefault) Error added in v0.95.0

func (o *ListVersionsDefault) Error() string

func (*ListVersionsDefault) GetPayload added in v0.95.0

func (o *ListVersionsDefault) GetPayload() *cloud.GoogleRPCStatus

func (*ListVersionsDefault) IsClientError added in v0.95.0

func (o *ListVersionsDefault) IsClientError() bool

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

func (*ListVersionsDefault) IsCode added in v0.95.0

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

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

func (*ListVersionsDefault) IsRedirect added in v0.95.0

func (o *ListVersionsDefault) IsRedirect() bool

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

func (*ListVersionsDefault) IsServerError added in v0.95.0

func (o *ListVersionsDefault) IsServerError() bool

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

func (*ListVersionsDefault) IsSuccess added in v0.95.0

func (o *ListVersionsDefault) IsSuccess() bool

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

func (*ListVersionsDefault) String added in v0.95.0

func (o *ListVersionsDefault) String() string

type ListVersionsOK

type ListVersionsOK struct {
	Payload *models.HashicorpCloudVagrant20220930ListVersionsResponse
}

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

A successful response.

func NewListVersionsOK

func NewListVersionsOK() *ListVersionsOK

NewListVersionsOK creates a ListVersionsOK with default headers values

func (*ListVersionsOK) Code added in v0.95.0

func (o *ListVersionsOK) Code() int

Code gets the status code for the list versions o k response

func (*ListVersionsOK) Error

func (o *ListVersionsOK) Error() string

func (*ListVersionsOK) IsClientError added in v0.23.0

func (o *ListVersionsOK) IsClientError() bool

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

func (*ListVersionsOK) IsCode added in v0.23.0

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

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

func (*ListVersionsOK) IsRedirect added in v0.23.0

func (o *ListVersionsOK) IsRedirect() bool

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

func (*ListVersionsOK) IsServerError added in v0.23.0

func (o *ListVersionsOK) IsServerError() bool

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

func (*ListVersionsOK) IsSuccess added in v0.23.0

func (o *ListVersionsOK) IsSuccess() bool

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

func (*ListVersionsOK) String added in v0.23.0

func (o *ListVersionsOK) String() string

type ListVersionsParams

type ListVersionsParams struct {

	/* Box.

	     The name segment of the Box. As an example, this field would represent the
	"vagrant" in "hashicorp/vagrant".
	*/
	Box 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

	/* Registry.

	     The Registry segment of the Box. As an example, this field would represent
	the "hashicorp" in "hashicorp/vagrant".
	*/
	Registry string

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

ListVersionsParams contains all the parameters to send to the API endpoint

for the list versions operation.

Typically these are written to a http.Request.

func NewListVersionsParams

func NewListVersionsParams() *ListVersionsParams

NewListVersionsParams creates a new ListVersionsParams object, with the default timeout for this client.

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

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

func NewListVersionsParamsWithContext

func NewListVersionsParamsWithContext(ctx context.Context) *ListVersionsParams

NewListVersionsParamsWithContext creates a new ListVersionsParams object with the ability to set a context for a request.

func NewListVersionsParamsWithHTTPClient

func NewListVersionsParamsWithHTTPClient(client *http.Client) *ListVersionsParams

NewListVersionsParamsWithHTTPClient creates a new ListVersionsParams object with the ability to set a custom HTTPClient for a request.

func NewListVersionsParamsWithTimeout

func NewListVersionsParamsWithTimeout(timeout time.Duration) *ListVersionsParams

NewListVersionsParamsWithTimeout creates a new ListVersionsParams object with the ability to set a timeout on a request.

func (*ListVersionsParams) SetBox

func (o *ListVersionsParams) SetBox(box string)

SetBox adds the box to the list versions params

func (*ListVersionsParams) SetContext

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

SetContext adds the context to the list versions params

func (*ListVersionsParams) SetDefaults added in v0.23.0

func (o *ListVersionsParams) SetDefaults()

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

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

func (*ListVersionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list versions params

func (*ListVersionsParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the list versions params

func (*ListVersionsParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the list versions params

func (*ListVersionsParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list versions params

func (*ListVersionsParams) SetRegistry

func (o *ListVersionsParams) SetRegistry(registry string)

SetRegistry adds the registry to the list versions params

func (*ListVersionsParams) SetTimeout

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

SetTimeout adds the timeout to the list versions params

func (*ListVersionsParams) WithBox

func (o *ListVersionsParams) WithBox(box string) *ListVersionsParams

WithBox adds the box to the list versions params

func (*ListVersionsParams) WithContext

WithContext adds the context to the list versions params

func (*ListVersionsParams) WithDefaults added in v0.23.0

func (o *ListVersionsParams) WithDefaults() *ListVersionsParams

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

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

func (*ListVersionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list versions params

func (*ListVersionsParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the list versions params

func (*ListVersionsParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the list versions params

func (*ListVersionsParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list versions params

func (*ListVersionsParams) WithRegistry

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

WithRegistry adds the registry to the list versions params

func (*ListVersionsParams) WithTimeout

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

WithTimeout adds the timeout to the list versions params

func (*ListVersionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListVersionsReader

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

ListVersionsReader is a Reader for the ListVersions structure.

func (*ListVersionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadVersionDefault added in v0.95.0

type ReadVersionDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewReadVersionDefault added in v0.95.0

func NewReadVersionDefault(code int) *ReadVersionDefault

NewReadVersionDefault creates a ReadVersionDefault with default headers values

func (*ReadVersionDefault) Code added in v0.95.0

func (o *ReadVersionDefault) Code() int

Code gets the status code for the read version default response

func (*ReadVersionDefault) Error added in v0.95.0

func (o *ReadVersionDefault) Error() string

func (*ReadVersionDefault) GetPayload added in v0.95.0

func (o *ReadVersionDefault) GetPayload() *cloud.GoogleRPCStatus

func (*ReadVersionDefault) IsClientError added in v0.95.0

func (o *ReadVersionDefault) IsClientError() bool

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

func (*ReadVersionDefault) IsCode added in v0.95.0

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

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

func (*ReadVersionDefault) IsRedirect added in v0.95.0

func (o *ReadVersionDefault) IsRedirect() bool

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

func (*ReadVersionDefault) IsServerError added in v0.95.0

func (o *ReadVersionDefault) IsServerError() bool

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

func (*ReadVersionDefault) IsSuccess added in v0.95.0

func (o *ReadVersionDefault) IsSuccess() bool

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

func (*ReadVersionDefault) String added in v0.95.0

func (o *ReadVersionDefault) String() string

type ReadVersionOK

type ReadVersionOK struct {
	Payload *models.HashicorpCloudVagrant20220930ReadVersionResponse
}

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

A successful response.

func NewReadVersionOK

func NewReadVersionOK() *ReadVersionOK

NewReadVersionOK creates a ReadVersionOK with default headers values

func (*ReadVersionOK) Code added in v0.95.0

func (o *ReadVersionOK) Code() int

Code gets the status code for the read version o k response

func (*ReadVersionOK) Error

func (o *ReadVersionOK) Error() string

func (*ReadVersionOK) IsClientError added in v0.23.0

func (o *ReadVersionOK) IsClientError() bool

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

func (*ReadVersionOK) IsCode added in v0.23.0

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

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

func (*ReadVersionOK) IsRedirect added in v0.23.0

func (o *ReadVersionOK) IsRedirect() bool

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

func (*ReadVersionOK) IsServerError added in v0.23.0

func (o *ReadVersionOK) IsServerError() bool

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

func (*ReadVersionOK) IsSuccess added in v0.23.0

func (o *ReadVersionOK) IsSuccess() bool

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

func (*ReadVersionOK) String added in v0.23.0

func (o *ReadVersionOK) String() string

type ReadVersionParams

type ReadVersionParams struct {

	/* Box.

	     The name segment of the Box. As an example, this field would represent the
	"vagrant" in "hashicorp/vagrant".
	*/
	Box string

	/* Registry.

	     The Registry segment of the Box. As an example, this field would represent
	the "hashicorp" in "hashicorp/vagrant".
	*/
	Registry string

	/* Version.

	   The name of the version to look up.
	*/
	Version string

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

ReadVersionParams contains all the parameters to send to the API endpoint

for the read version operation.

Typically these are written to a http.Request.

func NewReadVersionParams

func NewReadVersionParams() *ReadVersionParams

NewReadVersionParams creates a new ReadVersionParams 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 NewReadVersionParamsWithContext

func NewReadVersionParamsWithContext(ctx context.Context) *ReadVersionParams

NewReadVersionParamsWithContext creates a new ReadVersionParams object with the ability to set a context for a request.

func NewReadVersionParamsWithHTTPClient

func NewReadVersionParamsWithHTTPClient(client *http.Client) *ReadVersionParams

NewReadVersionParamsWithHTTPClient creates a new ReadVersionParams object with the ability to set a custom HTTPClient for a request.

func NewReadVersionParamsWithTimeout

func NewReadVersionParamsWithTimeout(timeout time.Duration) *ReadVersionParams

NewReadVersionParamsWithTimeout creates a new ReadVersionParams object with the ability to set a timeout on a request.

func (*ReadVersionParams) SetBox

func (o *ReadVersionParams) SetBox(box string)

SetBox adds the box to the read version params

func (*ReadVersionParams) SetContext

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

SetContext adds the context to the read version params

func (*ReadVersionParams) SetDefaults added in v0.23.0

func (o *ReadVersionParams) SetDefaults()

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

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

func (*ReadVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read version params

func (*ReadVersionParams) SetRegistry

func (o *ReadVersionParams) SetRegistry(registry string)

SetRegistry adds the registry to the read version params

func (*ReadVersionParams) SetTimeout

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

SetTimeout adds the timeout to the read version params

func (*ReadVersionParams) SetVersion

func (o *ReadVersionParams) SetVersion(version string)

SetVersion adds the version to the read version params

func (*ReadVersionParams) WithBox

func (o *ReadVersionParams) WithBox(box string) *ReadVersionParams

WithBox adds the box to the read version params

func (*ReadVersionParams) WithContext

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

WithContext adds the context to the read version params

func (*ReadVersionParams) WithDefaults added in v0.23.0

func (o *ReadVersionParams) WithDefaults() *ReadVersionParams

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

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

func (*ReadVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read version params

func (*ReadVersionParams) WithRegistry

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

WithRegistry adds the registry to the read version params

func (*ReadVersionParams) WithTimeout

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

WithTimeout adds the timeout to the read version params

func (*ReadVersionParams) WithVersion

func (o *ReadVersionParams) WithVersion(version string) *ReadVersionParams

WithVersion adds the version to the read version params

func (*ReadVersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadVersionReader

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

ReadVersionReader is a Reader for the ReadVersion structure.

func (*ReadVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReleaseVersionDefault added in v0.95.0

type ReleaseVersionDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewReleaseVersionDefault added in v0.95.0

func NewReleaseVersionDefault(code int) *ReleaseVersionDefault

NewReleaseVersionDefault creates a ReleaseVersionDefault with default headers values

func (*ReleaseVersionDefault) Code added in v0.95.0

func (o *ReleaseVersionDefault) Code() int

Code gets the status code for the release version default response

func (*ReleaseVersionDefault) Error added in v0.95.0

func (o *ReleaseVersionDefault) Error() string

func (*ReleaseVersionDefault) GetPayload added in v0.95.0

func (o *ReleaseVersionDefault) GetPayload() *cloud.GoogleRPCStatus

func (*ReleaseVersionDefault) IsClientError added in v0.95.0

func (o *ReleaseVersionDefault) IsClientError() bool

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

func (*ReleaseVersionDefault) IsCode added in v0.95.0

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

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

func (*ReleaseVersionDefault) IsRedirect added in v0.95.0

func (o *ReleaseVersionDefault) IsRedirect() bool

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

func (*ReleaseVersionDefault) IsServerError added in v0.95.0

func (o *ReleaseVersionDefault) IsServerError() bool

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

func (*ReleaseVersionDefault) IsSuccess added in v0.95.0

func (o *ReleaseVersionDefault) IsSuccess() bool

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

func (*ReleaseVersionDefault) String added in v0.95.0

func (o *ReleaseVersionDefault) String() string

type ReleaseVersionOK

type ReleaseVersionOK struct {
	Payload models.HashicorpCloudVagrant20220930ReleaseVersionResponse
}

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

A successful response.

func NewReleaseVersionOK

func NewReleaseVersionOK() *ReleaseVersionOK

NewReleaseVersionOK creates a ReleaseVersionOK with default headers values

func (*ReleaseVersionOK) Code added in v0.95.0

func (o *ReleaseVersionOK) Code() int

Code gets the status code for the release version o k response

func (*ReleaseVersionOK) Error

func (o *ReleaseVersionOK) Error() string

func (*ReleaseVersionOK) IsClientError added in v0.23.0

func (o *ReleaseVersionOK) IsClientError() bool

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

func (*ReleaseVersionOK) IsCode added in v0.23.0

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

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

func (*ReleaseVersionOK) IsRedirect added in v0.23.0

func (o *ReleaseVersionOK) IsRedirect() bool

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

func (*ReleaseVersionOK) IsServerError added in v0.23.0

func (o *ReleaseVersionOK) IsServerError() bool

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

func (*ReleaseVersionOK) IsSuccess added in v0.23.0

func (o *ReleaseVersionOK) IsSuccess() bool

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

func (*ReleaseVersionOK) String added in v0.23.0

func (o *ReleaseVersionOK) String() string

type ReleaseVersionParams

type ReleaseVersionParams struct {

	// Body.
	Body interface{}

	/* Box.

	     The name segment of the Box. As an example, this field would represent the
	"vagrant" in "hashicorp/vagrant".
	*/
	Box string

	/* Registry.

	     The Registry segment of the Box. As an example, this field would represent
	the "hashicorp" in "hashicorp/vagrant".
	*/
	Registry string

	/* Version.

	   The name of the Version to release.
	*/
	Version string

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

ReleaseVersionParams contains all the parameters to send to the API endpoint

for the release version operation.

Typically these are written to a http.Request.

func NewReleaseVersionParams

func NewReleaseVersionParams() *ReleaseVersionParams

NewReleaseVersionParams creates a new ReleaseVersionParams 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 NewReleaseVersionParamsWithContext

func NewReleaseVersionParamsWithContext(ctx context.Context) *ReleaseVersionParams

NewReleaseVersionParamsWithContext creates a new ReleaseVersionParams object with the ability to set a context for a request.

func NewReleaseVersionParamsWithHTTPClient

func NewReleaseVersionParamsWithHTTPClient(client *http.Client) *ReleaseVersionParams

NewReleaseVersionParamsWithHTTPClient creates a new ReleaseVersionParams object with the ability to set a custom HTTPClient for a request.

func NewReleaseVersionParamsWithTimeout

func NewReleaseVersionParamsWithTimeout(timeout time.Duration) *ReleaseVersionParams

NewReleaseVersionParamsWithTimeout creates a new ReleaseVersionParams object with the ability to set a timeout on a request.

func (*ReleaseVersionParams) SetBody

func (o *ReleaseVersionParams) SetBody(body interface{})

SetBody adds the body to the release version params

func (*ReleaseVersionParams) SetBox

func (o *ReleaseVersionParams) SetBox(box string)

SetBox adds the box to the release version params

func (*ReleaseVersionParams) SetContext

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

SetContext adds the context to the release version params

func (*ReleaseVersionParams) SetDefaults added in v0.23.0

func (o *ReleaseVersionParams) SetDefaults()

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

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

func (*ReleaseVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the release version params

func (*ReleaseVersionParams) SetRegistry

func (o *ReleaseVersionParams) SetRegistry(registry string)

SetRegistry adds the registry to the release version params

func (*ReleaseVersionParams) SetTimeout

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

SetTimeout adds the timeout to the release version params

func (*ReleaseVersionParams) SetVersion

func (o *ReleaseVersionParams) SetVersion(version string)

SetVersion adds the version to the release version params

func (*ReleaseVersionParams) WithBody

func (o *ReleaseVersionParams) WithBody(body interface{}) *ReleaseVersionParams

WithBody adds the body to the release version params

func (*ReleaseVersionParams) WithBox

WithBox adds the box to the release version params

func (*ReleaseVersionParams) WithContext

WithContext adds the context to the release version params

func (*ReleaseVersionParams) WithDefaults added in v0.23.0

func (o *ReleaseVersionParams) WithDefaults() *ReleaseVersionParams

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

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

func (*ReleaseVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the release version params

func (*ReleaseVersionParams) WithRegistry

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

WithRegistry adds the registry to the release version params

func (*ReleaseVersionParams) WithTimeout

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

WithTimeout adds the timeout to the release version params

func (*ReleaseVersionParams) WithVersion

func (o *ReleaseVersionParams) WithVersion(version string) *ReleaseVersionParams

WithVersion adds the version to the release version params

func (*ReleaseVersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReleaseVersionReader

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

ReleaseVersionReader is a Reader for the ReleaseVersion structure.

func (*ReleaseVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeVersionDefault added in v0.95.0

type RevokeVersionDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewRevokeVersionDefault added in v0.95.0

func NewRevokeVersionDefault(code int) *RevokeVersionDefault

NewRevokeVersionDefault creates a RevokeVersionDefault with default headers values

func (*RevokeVersionDefault) Code added in v0.95.0

func (o *RevokeVersionDefault) Code() int

Code gets the status code for the revoke version default response

func (*RevokeVersionDefault) Error added in v0.95.0

func (o *RevokeVersionDefault) Error() string

func (*RevokeVersionDefault) GetPayload added in v0.95.0

func (o *RevokeVersionDefault) GetPayload() *cloud.GoogleRPCStatus

func (*RevokeVersionDefault) IsClientError added in v0.95.0

func (o *RevokeVersionDefault) IsClientError() bool

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

func (*RevokeVersionDefault) IsCode added in v0.95.0

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

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

func (*RevokeVersionDefault) IsRedirect added in v0.95.0

func (o *RevokeVersionDefault) IsRedirect() bool

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

func (*RevokeVersionDefault) IsServerError added in v0.95.0

func (o *RevokeVersionDefault) IsServerError() bool

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

func (*RevokeVersionDefault) IsSuccess added in v0.95.0

func (o *RevokeVersionDefault) IsSuccess() bool

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

func (*RevokeVersionDefault) String added in v0.95.0

func (o *RevokeVersionDefault) String() string

type RevokeVersionOK

type RevokeVersionOK struct {
	Payload models.HashicorpCloudVagrant20220930RevokeVersionResponse
}

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

A successful response.

func NewRevokeVersionOK

func NewRevokeVersionOK() *RevokeVersionOK

NewRevokeVersionOK creates a RevokeVersionOK with default headers values

func (*RevokeVersionOK) Code added in v0.95.0

func (o *RevokeVersionOK) Code() int

Code gets the status code for the revoke version o k response

func (*RevokeVersionOK) Error

func (o *RevokeVersionOK) Error() string

func (*RevokeVersionOK) IsClientError added in v0.23.0

func (o *RevokeVersionOK) IsClientError() bool

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

func (*RevokeVersionOK) IsCode added in v0.23.0

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

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

func (*RevokeVersionOK) IsRedirect added in v0.23.0

func (o *RevokeVersionOK) IsRedirect() bool

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

func (*RevokeVersionOK) IsServerError added in v0.23.0

func (o *RevokeVersionOK) IsServerError() bool

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

func (*RevokeVersionOK) IsSuccess added in v0.23.0

func (o *RevokeVersionOK) IsSuccess() bool

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

func (*RevokeVersionOK) String added in v0.23.0

func (o *RevokeVersionOK) String() string

type RevokeVersionParams

type RevokeVersionParams struct {

	// Body.
	Body interface{}

	/* Box.

	     The name segment of the Box. As an example, this field would represent the
	"vagrant" in "hashicorp/vagrant".
	*/
	Box string

	/* Registry.

	     The Registry segment of the Box. As an example, this field would represent
	the "hashicorp" in "hashicorp/vagrant".
	*/
	Registry string

	/* Version.

	   The name of the Version to revoke.
	*/
	Version string

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

RevokeVersionParams contains all the parameters to send to the API endpoint

for the revoke version operation.

Typically these are written to a http.Request.

func NewRevokeVersionParams

func NewRevokeVersionParams() *RevokeVersionParams

NewRevokeVersionParams creates a new RevokeVersionParams 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 NewRevokeVersionParamsWithContext

func NewRevokeVersionParamsWithContext(ctx context.Context) *RevokeVersionParams

NewRevokeVersionParamsWithContext creates a new RevokeVersionParams object with the ability to set a context for a request.

func NewRevokeVersionParamsWithHTTPClient

func NewRevokeVersionParamsWithHTTPClient(client *http.Client) *RevokeVersionParams

NewRevokeVersionParamsWithHTTPClient creates a new RevokeVersionParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeVersionParamsWithTimeout

func NewRevokeVersionParamsWithTimeout(timeout time.Duration) *RevokeVersionParams

NewRevokeVersionParamsWithTimeout creates a new RevokeVersionParams object with the ability to set a timeout on a request.

func (*RevokeVersionParams) SetBody

func (o *RevokeVersionParams) SetBody(body interface{})

SetBody adds the body to the revoke version params

func (*RevokeVersionParams) SetBox

func (o *RevokeVersionParams) SetBox(box string)

SetBox adds the box to the revoke version params

func (*RevokeVersionParams) SetContext

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

SetContext adds the context to the revoke version params

func (*RevokeVersionParams) SetDefaults added in v0.23.0

func (o *RevokeVersionParams) SetDefaults()

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

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

func (*RevokeVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke version params

func (*RevokeVersionParams) SetRegistry

func (o *RevokeVersionParams) SetRegistry(registry string)

SetRegistry adds the registry to the revoke version params

func (*RevokeVersionParams) SetTimeout

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

SetTimeout adds the timeout to the revoke version params

func (*RevokeVersionParams) SetVersion

func (o *RevokeVersionParams) SetVersion(version string)

SetVersion adds the version to the revoke version params

func (*RevokeVersionParams) WithBody

func (o *RevokeVersionParams) WithBody(body interface{}) *RevokeVersionParams

WithBody adds the body to the revoke version params

func (*RevokeVersionParams) WithBox

WithBox adds the box to the revoke version params

func (*RevokeVersionParams) WithContext

WithContext adds the context to the revoke version params

func (*RevokeVersionParams) WithDefaults added in v0.23.0

func (o *RevokeVersionParams) WithDefaults() *RevokeVersionParams

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

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

func (*RevokeVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke version params

func (*RevokeVersionParams) WithRegistry

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

WithRegistry adds the registry to the revoke version params

func (*RevokeVersionParams) WithTimeout

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

WithTimeout adds the timeout to the revoke version params

func (*RevokeVersionParams) WithVersion

func (o *RevokeVersionParams) WithVersion(version string) *RevokeVersionParams

WithVersion adds the version to the revoke version params

func (*RevokeVersionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeVersionReader

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

RevokeVersionReader is a Reader for the RevokeVersion structure.

func (*RevokeVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateVersionBody added in v0.95.0

type UpdateVersionBody struct {

	// Details of the Version to update. Note that some fields are ignored
	// on input and should not be set.
	Data *models.HashicorpCloudVagrant20220930Version `json:"data,omitempty"`
}

UpdateVersionBody update version body swagger:model UpdateVersionBody

func (*UpdateVersionBody) ContextValidate added in v0.95.0

func (o *UpdateVersionBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update version body based on the context it is used

func (*UpdateVersionBody) MarshalBinary added in v0.95.0

func (o *UpdateVersionBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateVersionBody) UnmarshalBinary added in v0.95.0

func (o *UpdateVersionBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateVersionBody) Validate added in v0.95.0

func (o *UpdateVersionBody) Validate(formats strfmt.Registry) error

Validate validates this update version body

type UpdateVersionDefault added in v0.95.0

type UpdateVersionDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewUpdateVersionDefault added in v0.95.0

func NewUpdateVersionDefault(code int) *UpdateVersionDefault

NewUpdateVersionDefault creates a UpdateVersionDefault with default headers values

func (*UpdateVersionDefault) Code added in v0.95.0

func (o *UpdateVersionDefault) Code() int

Code gets the status code for the update version default response

func (*UpdateVersionDefault) Error added in v0.95.0

func (o *UpdateVersionDefault) Error() string

func (*UpdateVersionDefault) GetPayload added in v0.95.0

func (o *UpdateVersionDefault) GetPayload() *cloud.GoogleRPCStatus

func (*UpdateVersionDefault) IsClientError added in v0.95.0

func (o *UpdateVersionDefault) IsClientError() bool

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

func (*UpdateVersionDefault) IsCode added in v0.95.0

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

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

func (*UpdateVersionDefault) IsRedirect added in v0.95.0

func (o *UpdateVersionDefault) IsRedirect() bool

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

func (*UpdateVersionDefault) IsServerError added in v0.95.0

func (o *UpdateVersionDefault) IsServerError() bool

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

func (*UpdateVersionDefault) IsSuccess added in v0.95.0

func (o *UpdateVersionDefault) IsSuccess() bool

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

func (*UpdateVersionDefault) String added in v0.95.0

func (o *UpdateVersionDefault) String() string

type UpdateVersionOK added in v0.95.0

type UpdateVersionOK struct {
	Payload *models.HashicorpCloudVagrant20220930UpdateVersionResponse
}

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

A successful response.

func NewUpdateVersionOK added in v0.95.0

func NewUpdateVersionOK() *UpdateVersionOK

NewUpdateVersionOK creates a UpdateVersionOK with default headers values

func (*UpdateVersionOK) Code added in v0.95.0

func (o *UpdateVersionOK) Code() int

Code gets the status code for the update version o k response

func (*UpdateVersionOK) Error added in v0.95.0

func (o *UpdateVersionOK) Error() string

func (*UpdateVersionOK) GetPayload added in v0.95.0

func (*UpdateVersionOK) IsClientError added in v0.95.0

func (o *UpdateVersionOK) IsClientError() bool

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

func (*UpdateVersionOK) IsCode added in v0.95.0

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

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

func (*UpdateVersionOK) IsRedirect added in v0.95.0

func (o *UpdateVersionOK) IsRedirect() bool

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

func (*UpdateVersionOK) IsServerError added in v0.95.0

func (o *UpdateVersionOK) IsServerError() bool

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

func (*UpdateVersionOK) IsSuccess added in v0.95.0

func (o *UpdateVersionOK) IsSuccess() bool

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

func (*UpdateVersionOK) String added in v0.95.0

func (o *UpdateVersionOK) String() string

type UpdateVersionParams added in v0.95.0

type UpdateVersionParams struct {

	// Body.
	Body UpdateVersionBody

	/* Box.

	     The name segment of the Box. As an example, this field would represent the
	"vagrant" in "hashicorp/vagrant".
	*/
	Box string

	/* Registry.

	     The Registry segment of the Box. As an example, this field would represent
	the "hashicorp" in "hashicorp/vagrant".
	*/
	Registry string

	/* Version.

	   The name of the version to update.
	*/
	Version string

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

UpdateVersionParams contains all the parameters to send to the API endpoint

for the update version operation.

Typically these are written to a http.Request.

func NewUpdateVersionParams added in v0.95.0

func NewUpdateVersionParams() *UpdateVersionParams

NewUpdateVersionParams creates a new UpdateVersionParams 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 NewUpdateVersionParamsWithContext added in v0.95.0

func NewUpdateVersionParamsWithContext(ctx context.Context) *UpdateVersionParams

NewUpdateVersionParamsWithContext creates a new UpdateVersionParams object with the ability to set a context for a request.

func NewUpdateVersionParamsWithHTTPClient added in v0.95.0

func NewUpdateVersionParamsWithHTTPClient(client *http.Client) *UpdateVersionParams

NewUpdateVersionParamsWithHTTPClient creates a new UpdateVersionParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateVersionParamsWithTimeout added in v0.95.0

func NewUpdateVersionParamsWithTimeout(timeout time.Duration) *UpdateVersionParams

NewUpdateVersionParamsWithTimeout creates a new UpdateVersionParams object with the ability to set a timeout on a request.

func (*UpdateVersionParams) SetBody added in v0.95.0

func (o *UpdateVersionParams) SetBody(body UpdateVersionBody)

SetBody adds the body to the update version params

func (*UpdateVersionParams) SetBox added in v0.95.0

func (o *UpdateVersionParams) SetBox(box string)

SetBox adds the box to the update version params

func (*UpdateVersionParams) SetContext added in v0.95.0

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

SetContext adds the context to the update version params

func (*UpdateVersionParams) SetDefaults added in v0.95.0

func (o *UpdateVersionParams) SetDefaults()

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

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

func (*UpdateVersionParams) SetHTTPClient added in v0.95.0

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

SetHTTPClient adds the HTTPClient to the update version params

func (*UpdateVersionParams) SetRegistry added in v0.95.0

func (o *UpdateVersionParams) SetRegistry(registry string)

SetRegistry adds the registry to the update version params

func (*UpdateVersionParams) SetTimeout added in v0.95.0

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

SetTimeout adds the timeout to the update version params

func (*UpdateVersionParams) SetVersion added in v0.95.0

func (o *UpdateVersionParams) SetVersion(version string)

SetVersion adds the version to the update version params

func (*UpdateVersionParams) WithBody added in v0.95.0

WithBody adds the body to the update version params

func (*UpdateVersionParams) WithBox added in v0.95.0

WithBox adds the box to the update version params

func (*UpdateVersionParams) WithContext added in v0.95.0

WithContext adds the context to the update version params

func (*UpdateVersionParams) WithDefaults added in v0.95.0

func (o *UpdateVersionParams) WithDefaults() *UpdateVersionParams

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

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

func (*UpdateVersionParams) WithHTTPClient added in v0.95.0

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

WithHTTPClient adds the HTTPClient to the update version params

func (*UpdateVersionParams) WithRegistry added in v0.95.0

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

WithRegistry adds the registry to the update version params

func (*UpdateVersionParams) WithTimeout added in v0.95.0

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

WithTimeout adds the timeout to the update version params

func (*UpdateVersionParams) WithVersion added in v0.95.0

func (o *UpdateVersionParams) WithVersion(version string) *UpdateVersionParams

WithVersion adds the version to the update version params

func (*UpdateVersionParams) WriteToRequest added in v0.95.0

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

WriteToRequest writes these params to a swagger request

type UpdateVersionReader added in v0.95.0

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

UpdateVersionReader is a Reader for the UpdateVersion structure.

func (*UpdateVersionReader) ReadResponse added in v0.95.0

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