version_service

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 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 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, authInfo runtime.ClientAuthInfoWriter, 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, authInfo runtime.ClientAuthInfoWriter, 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

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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListVersionsOK, error)

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

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

	RevokeVersion(params *RevokeVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeVersionOK, 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 CreateVersionOK

type CreateVersionOK struct {
	Payload *models.HashicorpCloudVagrantCreateVersionResponse
}

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

func (o *CreateVersionOK) Error() string

func (*CreateVersionOK) GetPayload

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 *models.HashicorpCloudVagrantCreateVersionRequest

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

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 DeleteVersionOK

type DeleteVersionOK struct {
	Payload models.HashicorpCloudVagrantDeleteVersionResponse
}

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

func (o *DeleteVersionOK) Error() string

func (*DeleteVersionOK) GetPayload

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 ListVersionsOK

type ListVersionsOK struct {
	Payload *models.HashicorpCloudVagrantListVersionsResponse
}

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

A successful response.

func NewListVersionsOK

func NewListVersionsOK() *ListVersionsOK

NewListVersionsOK creates a ListVersionsOK with default headers values

func (*ListVersionsOK) Error

func (o *ListVersionsOK) Error() string

func (*ListVersionsOK) GetPayload

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 ReadVersionOK

type ReadVersionOK struct {
	Payload *models.HashicorpCloudVagrantReadVersionResponse
}

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

func (o *ReadVersionOK) Error() string

func (*ReadVersionOK) GetPayload

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 ReleaseVersionOK

type ReleaseVersionOK struct {
	Payload models.HashicorpCloudVagrantReleaseVersionResponse
}

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

func (o *ReleaseVersionOK) Error() string

func (*ReleaseVersionOK) GetPayload

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 *models.HashicorpCloudVagrantReleaseVersionRequest

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

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

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 RevokeVersionOK

type RevokeVersionOK struct {
	Payload models.HashicorpCloudVagrantRevokeVersionResponse
}

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

func (o *RevokeVersionOK) Error() string

func (*RevokeVersionOK) GetPayload

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 *models.HashicorpCloudVagrantRevokeVersionRequest

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

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

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.

Jump to

Keyboard shortcuts

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