version_service

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 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) (*CreateVersionOK, error)

CreateVersion creates version creates a new box version

func (*Client) DeleteVersion

func (a *Client) DeleteVersion(params *DeleteVersionParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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) (*ReadVersionOK, error)

ReadVersion reads version reads a box version

func (*Client) ReleaseVersion

func (a *Client) ReleaseVersion(params *ReleaseVersionParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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 ClientService

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

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

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

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

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

	RevokeVersion(params *RevokeVersionParams, authInfo runtime.ClientAuthInfoWriter) (*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.HashicorpCloudVagrant20220930CreateVersionResponse
}

CreateVersionOK handles this case 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

type CreateVersionParams

type CreateVersionParams struct {

	/*Body*/
	Body *models.HashicorpCloudVagrant20220930CreateVersionRequest
	/*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 values initialized.

func NewCreateVersionParamsWithContext

func NewCreateVersionParamsWithContext(ctx context.Context) *CreateVersionParams

NewCreateVersionParamsWithContext creates a new CreateVersionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.HashicorpCloudVagrant20220930DeleteVersionResponse
}

DeleteVersionOK handles this case 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

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 values initialized.

func NewDeleteVersionParamsWithContext

func NewDeleteVersionParamsWithContext(ctx context.Context) *DeleteVersionParams

NewDeleteVersionParamsWithContext creates a new DeleteVersionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.HashicorpCloudVagrant20220930ListVersionsResponse
}

ListVersionsOK handles this case 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

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.

	*/
	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 values initialized.

func NewListVersionsParamsWithContext

func NewListVersionsParamsWithContext(ctx context.Context) *ListVersionsParams

NewListVersionsParamsWithContext creates a new ListVersionsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.HashicorpCloudVagrant20220930ReadVersionResponse
}

ReadVersionOK handles this case 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

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 values initialized.

func NewReadVersionParamsWithContext

func NewReadVersionParamsWithContext(ctx context.Context) *ReadVersionParams

NewReadVersionParamsWithContext creates a new ReadVersionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.HashicorpCloudVagrant20220930ReleaseVersionResponse
}

ReleaseVersionOK handles this case 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

type ReleaseVersionParams

type ReleaseVersionParams struct {

	/*Body*/
	Body *models.HashicorpCloudVagrant20220930ReleaseVersionRequest
	/*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 values initialized.

func NewReleaseVersionParamsWithContext

func NewReleaseVersionParamsWithContext(ctx context.Context) *ReleaseVersionParams

NewReleaseVersionParamsWithContext creates a new ReleaseVersionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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.HashicorpCloudVagrant20220930RevokeVersionResponse
}

RevokeVersionOK handles this case 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

type RevokeVersionParams

type RevokeVersionParams struct {

	/*Body*/
	Body *models.HashicorpCloudVagrant20220930RevokeVersionRequest
	/*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 values initialized.

func NewRevokeVersionParamsWithContext

func NewRevokeVersionParamsWithContext(ctx context.Context) *RevokeVersionParams

NewRevokeVersionParamsWithContext creates a new RevokeVersionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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