provider_service

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 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 provider service API

func (*Client) CompleteUpload

func (a *Client) CompleteUpload(params *CompleteUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CompleteUploadOK, error)

CompleteUpload completes upload signals that the upload for a provider is complete

func (*Client) CreateProvider

func (a *Client) CreateProvider(params *CreateProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProviderOK, error)

CreateProvider creates provider creates a provider in the specified version

func (*Client) DeleteProvider

func (a *Client) DeleteProvider(params *DeleteProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProviderOK, error)

DeleteProvider deletes provider deletes a provider note that this deletes any data associated with a hosted provider so use with care

func (*Client) DownloadProvider

func (a *Client) DownloadProvider(params *DownloadProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DownloadProviderOK, error)
DownloadProvider downloads provider initiates a provider download

For Hosted Providers, this is an atomic call that prepares the Provider

for download from the object storage. For External Providers, this is simply a pass-through to the external download data supplied in the External Provider record.

func (*Client) GetProvider

func (a *Client) GetProvider(params *GetProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProviderOK, error)

GetProvider gets provider fetches a provider for the specified version

func (*Client) ListProviders

func (a *Client) ListProviders(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProvidersOK, error)

ListProviders lists providers lists all providers within a version

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateProvider

func (a *Client) UpdateProvider(params *UpdateProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProviderOK, error)
UpdateProvider updates provider updates details about a specified provider

Note that you don't use this to upload data to Hosted Providers, to do

that, use the Upload method.

func (*Client) UploadProvider

func (a *Client) UploadProvider(params *UploadProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadProviderOK, error)
UploadProvider uploads provider initiates the upload of a hosted provider the service will return details that can be used to upload the data over HTTP after complete the caller should call complete upload

Note that a Version needs to be unreleased in order to upload Providers to

it.

Overwrite is permitted; old/existing data for a particular Provider will be replaced with data from a new successful upload for that same Provider.

type ClientOption added in v0.23.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CompleteUpload(params *CompleteUploadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CompleteUploadOK, error)

	CreateProvider(params *CreateProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProviderOK, error)

	DeleteProvider(params *DeleteProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProviderOK, error)

	DownloadProvider(params *DownloadProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DownloadProviderOK, error)

	GetProvider(params *GetProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProviderOK, error)

	ListProviders(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProvidersOK, error)

	UpdateProvider(params *UpdateProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProviderOK, error)

	UploadProvider(params *UploadProviderParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadProviderOK, 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 provider service API client.

type CompleteUploadOK

type CompleteUploadOK struct {
	Payload models.HashicorpCloudVagrantCompleteUploadResponse
}

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

A successful response.

func NewCompleteUploadOK

func NewCompleteUploadOK() *CompleteUploadOK

NewCompleteUploadOK creates a CompleteUploadOK with default headers values

func (*CompleteUploadOK) Error

func (o *CompleteUploadOK) Error() string

func (*CompleteUploadOK) GetPayload

func (*CompleteUploadOK) IsClientError added in v0.23.0

func (o *CompleteUploadOK) IsClientError() bool

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

func (*CompleteUploadOK) IsCode added in v0.23.0

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

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

func (*CompleteUploadOK) IsRedirect added in v0.23.0

func (o *CompleteUploadOK) IsRedirect() bool

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

func (*CompleteUploadOK) IsServerError added in v0.23.0

func (o *CompleteUploadOK) IsServerError() bool

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

func (*CompleteUploadOK) IsSuccess added in v0.23.0

func (o *CompleteUploadOK) IsSuccess() bool

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

func (*CompleteUploadOK) String added in v0.23.0

func (o *CompleteUploadOK) String() string

type CompleteUploadParams

type CompleteUploadParams struct {

	// Body.
	Body *models.HashicorpCloudVagrantCompleteUploadRequest

	/* Box.

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

	/* Provider.

	   The name of the Provider.
	*/
	Provider 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 for the Provider.
	*/
	Version string

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

CompleteUploadParams contains all the parameters to send to the API endpoint

for the complete upload operation.

Typically these are written to a http.Request.

func NewCompleteUploadParams

func NewCompleteUploadParams() *CompleteUploadParams

NewCompleteUploadParams creates a new CompleteUploadParams 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 NewCompleteUploadParamsWithContext

func NewCompleteUploadParamsWithContext(ctx context.Context) *CompleteUploadParams

NewCompleteUploadParamsWithContext creates a new CompleteUploadParams object with the ability to set a context for a request.

func NewCompleteUploadParamsWithHTTPClient

func NewCompleteUploadParamsWithHTTPClient(client *http.Client) *CompleteUploadParams

NewCompleteUploadParamsWithHTTPClient creates a new CompleteUploadParams object with the ability to set a custom HTTPClient for a request.

func NewCompleteUploadParamsWithTimeout

func NewCompleteUploadParamsWithTimeout(timeout time.Duration) *CompleteUploadParams

NewCompleteUploadParamsWithTimeout creates a new CompleteUploadParams object with the ability to set a timeout on a request.

func (*CompleteUploadParams) SetBody

SetBody adds the body to the complete upload params

func (*CompleteUploadParams) SetBox

func (o *CompleteUploadParams) SetBox(box string)

SetBox adds the box to the complete upload params

func (*CompleteUploadParams) SetContext

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

SetContext adds the context to the complete upload params

func (*CompleteUploadParams) SetDefaults added in v0.23.0

func (o *CompleteUploadParams) SetDefaults()

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

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

func (*CompleteUploadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the complete upload params

func (*CompleteUploadParams) SetProvider

func (o *CompleteUploadParams) SetProvider(provider string)

SetProvider adds the provider to the complete upload params

func (*CompleteUploadParams) SetRegistry

func (o *CompleteUploadParams) SetRegistry(registry string)

SetRegistry adds the registry to the complete upload params

func (*CompleteUploadParams) SetTimeout

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

SetTimeout adds the timeout to the complete upload params

func (*CompleteUploadParams) SetVersion

func (o *CompleteUploadParams) SetVersion(version string)

SetVersion adds the version to the complete upload params

func (*CompleteUploadParams) WithBody

WithBody adds the body to the complete upload params

func (*CompleteUploadParams) WithBox

WithBox adds the box to the complete upload params

func (*CompleteUploadParams) WithContext

WithContext adds the context to the complete upload params

func (*CompleteUploadParams) WithDefaults added in v0.23.0

func (o *CompleteUploadParams) WithDefaults() *CompleteUploadParams

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

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

func (*CompleteUploadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the complete upload params

func (*CompleteUploadParams) WithProvider

func (o *CompleteUploadParams) WithProvider(provider string) *CompleteUploadParams

WithProvider adds the provider to the complete upload params

func (*CompleteUploadParams) WithRegistry

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

WithRegistry adds the registry to the complete upload params

func (*CompleteUploadParams) WithTimeout

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

WithTimeout adds the timeout to the complete upload params

func (*CompleteUploadParams) WithVersion

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

WithVersion adds the version to the complete upload params

func (*CompleteUploadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CompleteUploadReader

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

CompleteUploadReader is a Reader for the CompleteUpload structure.

func (*CompleteUploadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateProviderOK

type CreateProviderOK struct {
	Payload *models.HashicorpCloudVagrantCreateProviderResponse
}

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

A successful response.

func NewCreateProviderOK

func NewCreateProviderOK() *CreateProviderOK

NewCreateProviderOK creates a CreateProviderOK with default headers values

func (*CreateProviderOK) Error

func (o *CreateProviderOK) Error() string

func (*CreateProviderOK) GetPayload

func (*CreateProviderOK) IsClientError added in v0.23.0

func (o *CreateProviderOK) IsClientError() bool

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

func (*CreateProviderOK) IsCode added in v0.23.0

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

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

func (*CreateProviderOK) IsRedirect added in v0.23.0

func (o *CreateProviderOK) IsRedirect() bool

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

func (*CreateProviderOK) IsServerError added in v0.23.0

func (o *CreateProviderOK) IsServerError() bool

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

func (*CreateProviderOK) IsSuccess added in v0.23.0

func (o *CreateProviderOK) IsSuccess() bool

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

func (*CreateProviderOK) String added in v0.23.0

func (o *CreateProviderOK) String() string

type CreateProviderParams

type CreateProviderParams struct {

	// Body.
	Body *models.HashicorpCloudVagrantCreateProviderRequest

	/* 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 create the Provider in.
	*/
	Version string

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

CreateProviderParams contains all the parameters to send to the API endpoint

for the create provider operation.

Typically these are written to a http.Request.

func NewCreateProviderParams

func NewCreateProviderParams() *CreateProviderParams

NewCreateProviderParams creates a new CreateProviderParams 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 NewCreateProviderParamsWithContext

func NewCreateProviderParamsWithContext(ctx context.Context) *CreateProviderParams

NewCreateProviderParamsWithContext creates a new CreateProviderParams object with the ability to set a context for a request.

func NewCreateProviderParamsWithHTTPClient

func NewCreateProviderParamsWithHTTPClient(client *http.Client) *CreateProviderParams

NewCreateProviderParamsWithHTTPClient creates a new CreateProviderParams object with the ability to set a custom HTTPClient for a request.

func NewCreateProviderParamsWithTimeout

func NewCreateProviderParamsWithTimeout(timeout time.Duration) *CreateProviderParams

NewCreateProviderParamsWithTimeout creates a new CreateProviderParams object with the ability to set a timeout on a request.

func (*CreateProviderParams) SetBody

SetBody adds the body to the create provider params

func (*CreateProviderParams) SetBox

func (o *CreateProviderParams) SetBox(box string)

SetBox adds the box to the create provider params

func (*CreateProviderParams) SetContext

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

SetContext adds the context to the create provider params

func (*CreateProviderParams) SetDefaults added in v0.23.0

func (o *CreateProviderParams) SetDefaults()

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

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

func (*CreateProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create provider params

func (*CreateProviderParams) SetRegistry

func (o *CreateProviderParams) SetRegistry(registry string)

SetRegistry adds the registry to the create provider params

func (*CreateProviderParams) SetTimeout

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

SetTimeout adds the timeout to the create provider params

func (*CreateProviderParams) SetVersion

func (o *CreateProviderParams) SetVersion(version string)

SetVersion adds the version to the create provider params

func (*CreateProviderParams) WithBody

WithBody adds the body to the create provider params

func (*CreateProviderParams) WithBox

WithBox adds the box to the create provider params

func (*CreateProviderParams) WithContext

WithContext adds the context to the create provider params

func (*CreateProviderParams) WithDefaults added in v0.23.0

func (o *CreateProviderParams) WithDefaults() *CreateProviderParams

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

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

func (*CreateProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create provider params

func (*CreateProviderParams) WithRegistry

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

WithRegistry adds the registry to the create provider params

func (*CreateProviderParams) WithTimeout

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

WithTimeout adds the timeout to the create provider params

func (*CreateProviderParams) WithVersion

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

WithVersion adds the version to the create provider params

func (*CreateProviderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateProviderReader

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

CreateProviderReader is a Reader for the CreateProvider structure.

func (*CreateProviderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteProviderOK

type DeleteProviderOK struct {
	Payload models.HashicorpCloudVagrantDeleteProviderResponse
}

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

A successful response.

func NewDeleteProviderOK

func NewDeleteProviderOK() *DeleteProviderOK

NewDeleteProviderOK creates a DeleteProviderOK with default headers values

func (*DeleteProviderOK) Error

func (o *DeleteProviderOK) Error() string

func (*DeleteProviderOK) GetPayload

func (*DeleteProviderOK) IsClientError added in v0.23.0

func (o *DeleteProviderOK) IsClientError() bool

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

func (*DeleteProviderOK) IsCode added in v0.23.0

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

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

func (*DeleteProviderOK) IsRedirect added in v0.23.0

func (o *DeleteProviderOK) IsRedirect() bool

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

func (*DeleteProviderOK) IsServerError added in v0.23.0

func (o *DeleteProviderOK) IsServerError() bool

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

func (*DeleteProviderOK) IsSuccess added in v0.23.0

func (o *DeleteProviderOK) IsSuccess() bool

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

func (*DeleteProviderOK) String added in v0.23.0

func (o *DeleteProviderOK) String() string

type DeleteProviderParams

type DeleteProviderParams struct {

	/* Box.

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

	/* Provider.

	   The name of the Provider.
	*/
	Provider 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 for the Provider.
	*/
	Version string

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

DeleteProviderParams contains all the parameters to send to the API endpoint

for the delete provider operation.

Typically these are written to a http.Request.

func NewDeleteProviderParams

func NewDeleteProviderParams() *DeleteProviderParams

NewDeleteProviderParams creates a new DeleteProviderParams 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 NewDeleteProviderParamsWithContext

func NewDeleteProviderParamsWithContext(ctx context.Context) *DeleteProviderParams

NewDeleteProviderParamsWithContext creates a new DeleteProviderParams object with the ability to set a context for a request.

func NewDeleteProviderParamsWithHTTPClient

func NewDeleteProviderParamsWithHTTPClient(client *http.Client) *DeleteProviderParams

NewDeleteProviderParamsWithHTTPClient creates a new DeleteProviderParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteProviderParamsWithTimeout

func NewDeleteProviderParamsWithTimeout(timeout time.Duration) *DeleteProviderParams

NewDeleteProviderParamsWithTimeout creates a new DeleteProviderParams object with the ability to set a timeout on a request.

func (*DeleteProviderParams) SetBox

func (o *DeleteProviderParams) SetBox(box string)

SetBox adds the box to the delete provider params

func (*DeleteProviderParams) SetContext

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

SetContext adds the context to the delete provider params

func (*DeleteProviderParams) SetDefaults added in v0.23.0

func (o *DeleteProviderParams) SetDefaults()

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

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

func (*DeleteProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete provider params

func (*DeleteProviderParams) SetProvider

func (o *DeleteProviderParams) SetProvider(provider string)

SetProvider adds the provider to the delete provider params

func (*DeleteProviderParams) SetRegistry

func (o *DeleteProviderParams) SetRegistry(registry string)

SetRegistry adds the registry to the delete provider params

func (*DeleteProviderParams) SetTimeout

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

SetTimeout adds the timeout to the delete provider params

func (*DeleteProviderParams) SetVersion

func (o *DeleteProviderParams) SetVersion(version string)

SetVersion adds the version to the delete provider params

func (*DeleteProviderParams) WithBox

WithBox adds the box to the delete provider params

func (*DeleteProviderParams) WithContext

WithContext adds the context to the delete provider params

func (*DeleteProviderParams) WithDefaults added in v0.23.0

func (o *DeleteProviderParams) WithDefaults() *DeleteProviderParams

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

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

func (*DeleteProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete provider params

func (*DeleteProviderParams) WithProvider

func (o *DeleteProviderParams) WithProvider(provider string) *DeleteProviderParams

WithProvider adds the provider to the delete provider params

func (*DeleteProviderParams) WithRegistry

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

WithRegistry adds the registry to the delete provider params

func (*DeleteProviderParams) WithTimeout

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

WithTimeout adds the timeout to the delete provider params

func (*DeleteProviderParams) WithVersion

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

WithVersion adds the version to the delete provider params

func (*DeleteProviderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteProviderReader

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

DeleteProviderReader is a Reader for the DeleteProvider structure.

func (*DeleteProviderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadProviderOK

type DownloadProviderOK struct {
	Payload *models.HashicorpCloudVagrantDownloadProviderResponse
}

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

A successful response.

func NewDownloadProviderOK

func NewDownloadProviderOK() *DownloadProviderOK

NewDownloadProviderOK creates a DownloadProviderOK with default headers values

func (*DownloadProviderOK) Error

func (o *DownloadProviderOK) Error() string

func (*DownloadProviderOK) GetPayload

func (*DownloadProviderOK) IsClientError added in v0.23.0

func (o *DownloadProviderOK) IsClientError() bool

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

func (*DownloadProviderOK) IsCode added in v0.23.0

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

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

func (*DownloadProviderOK) IsRedirect added in v0.23.0

func (o *DownloadProviderOK) IsRedirect() bool

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

func (*DownloadProviderOK) IsServerError added in v0.23.0

func (o *DownloadProviderOK) IsServerError() bool

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

func (*DownloadProviderOK) IsSuccess added in v0.23.0

func (o *DownloadProviderOK) IsSuccess() bool

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

func (*DownloadProviderOK) String added in v0.23.0

func (o *DownloadProviderOK) String() string

type DownloadProviderParams

type DownloadProviderParams struct {

	/* Box.

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

	/* Provider.

	   The name of the Provider.
	*/
	Provider 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 for the Provider.
	*/
	Version string

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

DownloadProviderParams contains all the parameters to send to the API endpoint

for the download provider operation.

Typically these are written to a http.Request.

func NewDownloadProviderParams

func NewDownloadProviderParams() *DownloadProviderParams

NewDownloadProviderParams creates a new DownloadProviderParams 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 NewDownloadProviderParamsWithContext

func NewDownloadProviderParamsWithContext(ctx context.Context) *DownloadProviderParams

NewDownloadProviderParamsWithContext creates a new DownloadProviderParams object with the ability to set a context for a request.

func NewDownloadProviderParamsWithHTTPClient

func NewDownloadProviderParamsWithHTTPClient(client *http.Client) *DownloadProviderParams

NewDownloadProviderParamsWithHTTPClient creates a new DownloadProviderParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadProviderParamsWithTimeout

func NewDownloadProviderParamsWithTimeout(timeout time.Duration) *DownloadProviderParams

NewDownloadProviderParamsWithTimeout creates a new DownloadProviderParams object with the ability to set a timeout on a request.

func (*DownloadProviderParams) SetBox

func (o *DownloadProviderParams) SetBox(box string)

SetBox adds the box to the download provider params

func (*DownloadProviderParams) SetContext

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

SetContext adds the context to the download provider params

func (*DownloadProviderParams) SetDefaults added in v0.23.0

func (o *DownloadProviderParams) SetDefaults()

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

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

func (*DownloadProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download provider params

func (*DownloadProviderParams) SetProvider

func (o *DownloadProviderParams) SetProvider(provider string)

SetProvider adds the provider to the download provider params

func (*DownloadProviderParams) SetRegistry

func (o *DownloadProviderParams) SetRegistry(registry string)

SetRegistry adds the registry to the download provider params

func (*DownloadProviderParams) SetTimeout

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

SetTimeout adds the timeout to the download provider params

func (*DownloadProviderParams) SetVersion

func (o *DownloadProviderParams) SetVersion(version string)

SetVersion adds the version to the download provider params

func (*DownloadProviderParams) WithBox

WithBox adds the box to the download provider params

func (*DownloadProviderParams) WithContext

WithContext adds the context to the download provider params

func (*DownloadProviderParams) WithDefaults added in v0.23.0

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

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

func (*DownloadProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the download provider params

func (*DownloadProviderParams) WithProvider

func (o *DownloadProviderParams) WithProvider(provider string) *DownloadProviderParams

WithProvider adds the provider to the download provider params

func (*DownloadProviderParams) WithRegistry

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

WithRegistry adds the registry to the download provider params

func (*DownloadProviderParams) WithTimeout

WithTimeout adds the timeout to the download provider params

func (*DownloadProviderParams) WithVersion

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

WithVersion adds the version to the download provider params

func (*DownloadProviderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DownloadProviderReader

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

DownloadProviderReader is a Reader for the DownloadProvider structure.

func (*DownloadProviderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProviderOK

type GetProviderOK struct {
	Payload *models.HashicorpCloudVagrantGetProviderResponse
}

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

A successful response.

func NewGetProviderOK

func NewGetProviderOK() *GetProviderOK

NewGetProviderOK creates a GetProviderOK with default headers values

func (*GetProviderOK) Error

func (o *GetProviderOK) Error() string

func (*GetProviderOK) GetPayload

func (*GetProviderOK) IsClientError added in v0.23.0

func (o *GetProviderOK) IsClientError() bool

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

func (*GetProviderOK) IsCode added in v0.23.0

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

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

func (*GetProviderOK) IsRedirect added in v0.23.0

func (o *GetProviderOK) IsRedirect() bool

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

func (*GetProviderOK) IsServerError added in v0.23.0

func (o *GetProviderOK) IsServerError() bool

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

func (*GetProviderOK) IsSuccess added in v0.23.0

func (o *GetProviderOK) IsSuccess() bool

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

func (*GetProviderOK) String added in v0.23.0

func (o *GetProviderOK) String() string

type GetProviderParams

type GetProviderParams struct {

	/* Box.

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

	/* Provider.

	   The name of the Provider.
	*/
	Provider 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 for the Provider.
	*/
	Version string

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

GetProviderParams contains all the parameters to send to the API endpoint

for the get provider operation.

Typically these are written to a http.Request.

func NewGetProviderParams

func NewGetProviderParams() *GetProviderParams

NewGetProviderParams creates a new GetProviderParams 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 NewGetProviderParamsWithContext

func NewGetProviderParamsWithContext(ctx context.Context) *GetProviderParams

NewGetProviderParamsWithContext creates a new GetProviderParams object with the ability to set a context for a request.

func NewGetProviderParamsWithHTTPClient

func NewGetProviderParamsWithHTTPClient(client *http.Client) *GetProviderParams

NewGetProviderParamsWithHTTPClient creates a new GetProviderParams object with the ability to set a custom HTTPClient for a request.

func NewGetProviderParamsWithTimeout

func NewGetProviderParamsWithTimeout(timeout time.Duration) *GetProviderParams

NewGetProviderParamsWithTimeout creates a new GetProviderParams object with the ability to set a timeout on a request.

func (*GetProviderParams) SetBox

func (o *GetProviderParams) SetBox(box string)

SetBox adds the box to the get provider params

func (*GetProviderParams) SetContext

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

SetContext adds the context to the get provider params

func (*GetProviderParams) SetDefaults added in v0.23.0

func (o *GetProviderParams) SetDefaults()

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

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

func (*GetProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get provider params

func (*GetProviderParams) SetProvider

func (o *GetProviderParams) SetProvider(provider string)

SetProvider adds the provider to the get provider params

func (*GetProviderParams) SetRegistry

func (o *GetProviderParams) SetRegistry(registry string)

SetRegistry adds the registry to the get provider params

func (*GetProviderParams) SetTimeout

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

SetTimeout adds the timeout to the get provider params

func (*GetProviderParams) SetVersion

func (o *GetProviderParams) SetVersion(version string)

SetVersion adds the version to the get provider params

func (*GetProviderParams) WithBox

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

WithBox adds the box to the get provider params

func (*GetProviderParams) WithContext

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

WithContext adds the context to the get provider params

func (*GetProviderParams) WithDefaults added in v0.23.0

func (o *GetProviderParams) WithDefaults() *GetProviderParams

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

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

func (*GetProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get provider params

func (*GetProviderParams) WithProvider

func (o *GetProviderParams) WithProvider(provider string) *GetProviderParams

WithProvider adds the provider to the get provider params

func (*GetProviderParams) WithRegistry

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

WithRegistry adds the registry to the get provider params

func (*GetProviderParams) WithTimeout

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

WithTimeout adds the timeout to the get provider params

func (*GetProviderParams) WithVersion

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

WithVersion adds the version to the get provider params

func (*GetProviderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProviderReader

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

GetProviderReader is a Reader for the GetProvider structure.

func (*GetProviderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProvidersOK

type ListProvidersOK struct {
	Payload *models.HashicorpCloudVagrantListProvidersResponse
}

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

A successful response.

func NewListProvidersOK

func NewListProvidersOK() *ListProvidersOK

NewListProvidersOK creates a ListProvidersOK with default headers values

func (*ListProvidersOK) Error

func (o *ListProvidersOK) Error() string

func (*ListProvidersOK) GetPayload

func (*ListProvidersOK) IsClientError added in v0.23.0

func (o *ListProvidersOK) IsClientError() bool

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

func (*ListProvidersOK) IsCode added in v0.23.0

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

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

func (*ListProvidersOK) IsRedirect added in v0.23.0

func (o *ListProvidersOK) IsRedirect() bool

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

func (*ListProvidersOK) IsServerError added in v0.23.0

func (o *ListProvidersOK) IsServerError() bool

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

func (*ListProvidersOK) IsSuccess added in v0.23.0

func (o *ListProvidersOK) IsSuccess() bool

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

func (*ListProvidersOK) String added in v0.23.0

func (o *ListProvidersOK) String() string

type ListProvidersParams

type ListProvidersParams 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

	/* Version.

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

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

ListProvidersParams contains all the parameters to send to the API endpoint

for the list providers operation.

Typically these are written to a http.Request.

func NewListProvidersParams

func NewListProvidersParams() *ListProvidersParams

NewListProvidersParams creates a new ListProvidersParams 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 NewListProvidersParamsWithContext

func NewListProvidersParamsWithContext(ctx context.Context) *ListProvidersParams

NewListProvidersParamsWithContext creates a new ListProvidersParams object with the ability to set a context for a request.

func NewListProvidersParamsWithHTTPClient

func NewListProvidersParamsWithHTTPClient(client *http.Client) *ListProvidersParams

NewListProvidersParamsWithHTTPClient creates a new ListProvidersParams object with the ability to set a custom HTTPClient for a request.

func NewListProvidersParamsWithTimeout

func NewListProvidersParamsWithTimeout(timeout time.Duration) *ListProvidersParams

NewListProvidersParamsWithTimeout creates a new ListProvidersParams object with the ability to set a timeout on a request.

func (*ListProvidersParams) SetBox

func (o *ListProvidersParams) SetBox(box string)

SetBox adds the box to the list providers params

func (*ListProvidersParams) SetContext

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

SetContext adds the context to the list providers params

func (*ListProvidersParams) SetDefaults added in v0.23.0

func (o *ListProvidersParams) SetDefaults()

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

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

func (*ListProvidersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list providers params

func (*ListProvidersParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the list providers params

func (*ListProvidersParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the list providers params

func (*ListProvidersParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list providers params

func (*ListProvidersParams) SetRegistry

func (o *ListProvidersParams) SetRegistry(registry string)

SetRegistry adds the registry to the list providers params

func (*ListProvidersParams) SetTimeout

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

SetTimeout adds the timeout to the list providers params

func (*ListProvidersParams) SetVersion

func (o *ListProvidersParams) SetVersion(version string)

SetVersion adds the version to the list providers params

func (*ListProvidersParams) WithBox

WithBox adds the box to the list providers params

func (*ListProvidersParams) WithContext

WithContext adds the context to the list providers params

func (*ListProvidersParams) WithDefaults added in v0.23.0

func (o *ListProvidersParams) WithDefaults() *ListProvidersParams

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

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

func (*ListProvidersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list providers params

func (*ListProvidersParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the list providers params

func (*ListProvidersParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the list providers params

func (*ListProvidersParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list providers params

func (*ListProvidersParams) WithRegistry

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

WithRegistry adds the registry to the list providers params

func (*ListProvidersParams) WithTimeout

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

WithTimeout adds the timeout to the list providers params

func (*ListProvidersParams) WithVersion

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

WithVersion adds the version to the list providers params

func (*ListProvidersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListProvidersReader

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

ListProvidersReader is a Reader for the ListProviders structure.

func (*ListProvidersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateProviderOK

type UpdateProviderOK struct {
	Payload *models.HashicorpCloudVagrantUpdateProviderResponse
}

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

A successful response.

func NewUpdateProviderOK

func NewUpdateProviderOK() *UpdateProviderOK

NewUpdateProviderOK creates a UpdateProviderOK with default headers values

func (*UpdateProviderOK) Error

func (o *UpdateProviderOK) Error() string

func (*UpdateProviderOK) GetPayload

func (*UpdateProviderOK) IsClientError added in v0.23.0

func (o *UpdateProviderOK) IsClientError() bool

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

func (*UpdateProviderOK) IsCode added in v0.23.0

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

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

func (*UpdateProviderOK) IsRedirect added in v0.23.0

func (o *UpdateProviderOK) IsRedirect() bool

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

func (*UpdateProviderOK) IsServerError added in v0.23.0

func (o *UpdateProviderOK) IsServerError() bool

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

func (*UpdateProviderOK) IsSuccess added in v0.23.0

func (o *UpdateProviderOK) IsSuccess() bool

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

func (*UpdateProviderOK) String added in v0.23.0

func (o *UpdateProviderOK) String() string

type UpdateProviderParams

type UpdateProviderParams struct {

	// Body.
	Body *models.HashicorpCloudVagrantUpdateProviderRequest

	/* Box.

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

	/* Provider.

	   The name of the Provider.
	*/
	Provider 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 for the Provider.
	*/
	Version string

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

UpdateProviderParams contains all the parameters to send to the API endpoint

for the update provider operation.

Typically these are written to a http.Request.

func NewUpdateProviderParams

func NewUpdateProviderParams() *UpdateProviderParams

NewUpdateProviderParams creates a new UpdateProviderParams 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 NewUpdateProviderParamsWithContext

func NewUpdateProviderParamsWithContext(ctx context.Context) *UpdateProviderParams

NewUpdateProviderParamsWithContext creates a new UpdateProviderParams object with the ability to set a context for a request.

func NewUpdateProviderParamsWithHTTPClient

func NewUpdateProviderParamsWithHTTPClient(client *http.Client) *UpdateProviderParams

NewUpdateProviderParamsWithHTTPClient creates a new UpdateProviderParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateProviderParamsWithTimeout

func NewUpdateProviderParamsWithTimeout(timeout time.Duration) *UpdateProviderParams

NewUpdateProviderParamsWithTimeout creates a new UpdateProviderParams object with the ability to set a timeout on a request.

func (*UpdateProviderParams) SetBody

SetBody adds the body to the update provider params

func (*UpdateProviderParams) SetBox

func (o *UpdateProviderParams) SetBox(box string)

SetBox adds the box to the update provider params

func (*UpdateProviderParams) SetContext

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

SetContext adds the context to the update provider params

func (*UpdateProviderParams) SetDefaults added in v0.23.0

func (o *UpdateProviderParams) SetDefaults()

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

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

func (*UpdateProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update provider params

func (*UpdateProviderParams) SetProvider

func (o *UpdateProviderParams) SetProvider(provider string)

SetProvider adds the provider to the update provider params

func (*UpdateProviderParams) SetRegistry

func (o *UpdateProviderParams) SetRegistry(registry string)

SetRegistry adds the registry to the update provider params

func (*UpdateProviderParams) SetTimeout

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

SetTimeout adds the timeout to the update provider params

func (*UpdateProviderParams) SetVersion

func (o *UpdateProviderParams) SetVersion(version string)

SetVersion adds the version to the update provider params

func (*UpdateProviderParams) WithBody

WithBody adds the body to the update provider params

func (*UpdateProviderParams) WithBox

WithBox adds the box to the update provider params

func (*UpdateProviderParams) WithContext

WithContext adds the context to the update provider params

func (*UpdateProviderParams) WithDefaults added in v0.23.0

func (o *UpdateProviderParams) WithDefaults() *UpdateProviderParams

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

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

func (*UpdateProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update provider params

func (*UpdateProviderParams) WithProvider

func (o *UpdateProviderParams) WithProvider(provider string) *UpdateProviderParams

WithProvider adds the provider to the update provider params

func (*UpdateProviderParams) WithRegistry

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

WithRegistry adds the registry to the update provider params

func (*UpdateProviderParams) WithTimeout

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

WithTimeout adds the timeout to the update provider params

func (*UpdateProviderParams) WithVersion

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

WithVersion adds the version to the update provider params

func (*UpdateProviderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateProviderReader

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

UpdateProviderReader is a Reader for the UpdateProvider structure.

func (*UpdateProviderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UploadProviderOK

type UploadProviderOK struct {
	Payload *models.HashicorpCloudVagrantUploadProviderResponse
}

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

A successful response.

func NewUploadProviderOK

func NewUploadProviderOK() *UploadProviderOK

NewUploadProviderOK creates a UploadProviderOK with default headers values

func (*UploadProviderOK) Error

func (o *UploadProviderOK) Error() string

func (*UploadProviderOK) GetPayload

func (*UploadProviderOK) IsClientError added in v0.23.0

func (o *UploadProviderOK) IsClientError() bool

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

func (*UploadProviderOK) IsCode added in v0.23.0

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

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

func (*UploadProviderOK) IsRedirect added in v0.23.0

func (o *UploadProviderOK) IsRedirect() bool

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

func (*UploadProviderOK) IsServerError added in v0.23.0

func (o *UploadProviderOK) IsServerError() bool

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

func (*UploadProviderOK) IsSuccess added in v0.23.0

func (o *UploadProviderOK) IsSuccess() bool

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

func (*UploadProviderOK) String added in v0.23.0

func (o *UploadProviderOK) String() string

type UploadProviderParams

type UploadProviderParams struct {

	// Body.
	Body *models.HashicorpCloudVagrantUploadProviderRequest

	/* Box.

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

	/* Provider.

	   The name of the Provider.
	*/
	Provider 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 for the Provider.
	*/
	Version string

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

UploadProviderParams contains all the parameters to send to the API endpoint

for the upload provider operation.

Typically these are written to a http.Request.

func NewUploadProviderParams

func NewUploadProviderParams() *UploadProviderParams

NewUploadProviderParams creates a new UploadProviderParams 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 NewUploadProviderParamsWithContext

func NewUploadProviderParamsWithContext(ctx context.Context) *UploadProviderParams

NewUploadProviderParamsWithContext creates a new UploadProviderParams object with the ability to set a context for a request.

func NewUploadProviderParamsWithHTTPClient

func NewUploadProviderParamsWithHTTPClient(client *http.Client) *UploadProviderParams

NewUploadProviderParamsWithHTTPClient creates a new UploadProviderParams object with the ability to set a custom HTTPClient for a request.

func NewUploadProviderParamsWithTimeout

func NewUploadProviderParamsWithTimeout(timeout time.Duration) *UploadProviderParams

NewUploadProviderParamsWithTimeout creates a new UploadProviderParams object with the ability to set a timeout on a request.

func (*UploadProviderParams) SetBody

SetBody adds the body to the upload provider params

func (*UploadProviderParams) SetBox

func (o *UploadProviderParams) SetBox(box string)

SetBox adds the box to the upload provider params

func (*UploadProviderParams) SetContext

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

SetContext adds the context to the upload provider params

func (*UploadProviderParams) SetDefaults added in v0.23.0

func (o *UploadProviderParams) SetDefaults()

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

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

func (*UploadProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload provider params

func (*UploadProviderParams) SetProvider

func (o *UploadProviderParams) SetProvider(provider string)

SetProvider adds the provider to the upload provider params

func (*UploadProviderParams) SetRegistry

func (o *UploadProviderParams) SetRegistry(registry string)

SetRegistry adds the registry to the upload provider params

func (*UploadProviderParams) SetTimeout

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

SetTimeout adds the timeout to the upload provider params

func (*UploadProviderParams) SetVersion

func (o *UploadProviderParams) SetVersion(version string)

SetVersion adds the version to the upload provider params

func (*UploadProviderParams) WithBody

WithBody adds the body to the upload provider params

func (*UploadProviderParams) WithBox

WithBox adds the box to the upload provider params

func (*UploadProviderParams) WithContext

WithContext adds the context to the upload provider params

func (*UploadProviderParams) WithDefaults added in v0.23.0

func (o *UploadProviderParams) WithDefaults() *UploadProviderParams

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

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

func (*UploadProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload provider params

func (*UploadProviderParams) WithProvider

func (o *UploadProviderParams) WithProvider(provider string) *UploadProviderParams

WithProvider adds the provider to the upload provider params

func (*UploadProviderParams) WithRegistry

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

WithRegistry adds the registry to the upload provider params

func (*UploadProviderParams) WithTimeout

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

WithTimeout adds the timeout to the upload provider params

func (*UploadProviderParams) WithVersion

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

WithVersion adds the version to the upload provider params

func (*UploadProviderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UploadProviderReader

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

UploadProviderReader is a Reader for the UploadProvider structure.

func (*UploadProviderReader) ReadResponse

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