public

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 15 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 public API

func (*Client) GetDefaultProvider deprecated

func (a *Client) GetDefaultProvider(params *GetDefaultProviderParams, authInfo runtime.ClientAuthInfoWriter) (*GetDefaultProviderOK, error)

Deprecated: Use GetDefaultProviderShort instead.

GetDefaultProvider gets default provider

This endpoints returns the default provider.

func (*Client) GetDefaultProviderShort added in v0.8.0

func (a *Client) GetDefaultProviderShort(params *GetDefaultProviderParams, authInfo runtime.ClientAuthInfoWriter) (*GetDefaultProviderOK, error)

GetDefaultProviderShort gets default provider

This endpoints returns the default provider.

func (*Client) ListProviders deprecated

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

Deprecated: Use ListProvidersShort instead.

ListProviders lists all supported providers

This endpoints returns list of supported providers. Armada is the default provider.

func (*Client) ListProvidersByRegion deprecated added in v0.7.0

func (a *Client) ListProvidersByRegion(params *ListProvidersByRegionParams, authInfo runtime.ClientAuthInfoWriter) (*ListProvidersByRegionOK, error)

Deprecated: Use ListProvidersByRegionShort instead.

ListProvidersByRegion lists providers by region

This endpoint returns the providers by region.

func (*Client) ListProvidersByRegionShort added in v0.8.0

func (a *Client) ListProvidersByRegionShort(params *ListProvidersByRegionParams, authInfo runtime.ClientAuthInfoWriter) (*ListProvidersByRegionOK, error)

ListProvidersByRegionShort lists providers by region

This endpoint returns the providers by region.

func (*Client) ListProvidersShort added in v0.8.0

func (a *Client) ListProvidersShort(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter) (*ListProvidersOK, error)

ListProvidersShort lists all supported providers

This endpoints returns list of supported providers. Armada is the default provider.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetDefaultProvider(params *GetDefaultProviderParams, authInfo runtime.ClientAuthInfoWriter) (*GetDefaultProviderOK, error)
	GetDefaultProviderShort(params *GetDefaultProviderParams, authInfo runtime.ClientAuthInfoWriter) (*GetDefaultProviderOK, error)
	ListProviders(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter) (*ListProvidersOK, error)
	ListProvidersShort(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter) (*ListProvidersOK, error)
	ListProvidersByRegion(params *ListProvidersByRegionParams, authInfo runtime.ClientAuthInfoWriter) (*ListProvidersByRegionOK, error)
	ListProvidersByRegionShort(params *ListProvidersByRegionParams, authInfo runtime.ClientAuthInfoWriter) (*ListProvidersByRegionOK, 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 public API client.

type GetDefaultProviderOK

type GetDefaultProviderOK struct {
	Payload *dsmcclientmodels.ModelsDefaultProvider
}

GetDefaultProviderOK handles this case with default header values.

Default provider got

func NewGetDefaultProviderOK

func NewGetDefaultProviderOK() *GetDefaultProviderOK

NewGetDefaultProviderOK creates a GetDefaultProviderOK with default headers values

func (*GetDefaultProviderOK) Error

func (o *GetDefaultProviderOK) Error() string

func (*GetDefaultProviderOK) GetPayload

func (*GetDefaultProviderOK) ToJSONString added in v0.25.0

func (o *GetDefaultProviderOK) ToJSONString() string

type GetDefaultProviderParams

type GetDefaultProviderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry

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

GetDefaultProviderParams contains all the parameters to send to the API endpoint for the get default provider operation typically these are written to a http.Request

func NewGetDefaultProviderParams

func NewGetDefaultProviderParams() *GetDefaultProviderParams

NewGetDefaultProviderParams creates a new GetDefaultProviderParams object with the default values initialized.

func NewGetDefaultProviderParamsWithContext

func NewGetDefaultProviderParamsWithContext(ctx context.Context) *GetDefaultProviderParams

NewGetDefaultProviderParamsWithContext creates a new GetDefaultProviderParams object with the default values initialized, and the ability to set a context for a request

func NewGetDefaultProviderParamsWithHTTPClient

func NewGetDefaultProviderParamsWithHTTPClient(client *http.Client) *GetDefaultProviderParams

NewGetDefaultProviderParamsWithHTTPClient creates a new GetDefaultProviderParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetDefaultProviderParamsWithTimeout

func NewGetDefaultProviderParamsWithTimeout(timeout time.Duration) *GetDefaultProviderParams

NewGetDefaultProviderParamsWithTimeout creates a new GetDefaultProviderParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetDefaultProviderParams) SetAuthInfoWriter added in v0.17.0

func (o *GetDefaultProviderParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get default provider params

func (*GetDefaultProviderParams) SetContext

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

SetContext adds the context to the get default provider params

func (*GetDefaultProviderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get default provider params

func (*GetDefaultProviderParams) SetHTTPClientTransport added in v0.19.0

func (o *GetDefaultProviderParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get default provider params

func (*GetDefaultProviderParams) SetTimeout

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

SetTimeout adds the timeout to the get default provider params

func (*GetDefaultProviderParams) WithContext

WithContext adds the context to the get default provider params

func (*GetDefaultProviderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get default provider params

func (*GetDefaultProviderParams) WithTimeout

WithTimeout adds the timeout to the get default provider params

func (*GetDefaultProviderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDefaultProviderReader

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

GetDefaultProviderReader is a Reader for the GetDefaultProvider structure.

func (*GetDefaultProviderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProvidersByRegionOK added in v0.7.0

type ListProvidersByRegionOK struct {
	Payload *dsmcclientmodels.ModelsDefaultProvider
}

ListProvidersByRegionOK handles this case with default header values.

Default providers got

func NewListProvidersByRegionOK added in v0.7.0

func NewListProvidersByRegionOK() *ListProvidersByRegionOK

NewListProvidersByRegionOK creates a ListProvidersByRegionOK with default headers values

func (*ListProvidersByRegionOK) Error added in v0.7.0

func (o *ListProvidersByRegionOK) Error() string

func (*ListProvidersByRegionOK) GetPayload added in v0.7.0

func (*ListProvidersByRegionOK) ToJSONString added in v0.25.0

func (o *ListProvidersByRegionOK) ToJSONString() string

type ListProvidersByRegionParams added in v0.7.0

type ListProvidersByRegionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Region
	  region of the providers

	*/
	Region string

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

ListProvidersByRegionParams contains all the parameters to send to the API endpoint for the list providers by region operation typically these are written to a http.Request

func NewListProvidersByRegionParams added in v0.7.0

func NewListProvidersByRegionParams() *ListProvidersByRegionParams

NewListProvidersByRegionParams creates a new ListProvidersByRegionParams object with the default values initialized.

func NewListProvidersByRegionParamsWithContext added in v0.7.0

func NewListProvidersByRegionParamsWithContext(ctx context.Context) *ListProvidersByRegionParams

NewListProvidersByRegionParamsWithContext creates a new ListProvidersByRegionParams object with the default values initialized, and the ability to set a context for a request

func NewListProvidersByRegionParamsWithHTTPClient added in v0.7.0

func NewListProvidersByRegionParamsWithHTTPClient(client *http.Client) *ListProvidersByRegionParams

NewListProvidersByRegionParamsWithHTTPClient creates a new ListProvidersByRegionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListProvidersByRegionParamsWithTimeout added in v0.7.0

func NewListProvidersByRegionParamsWithTimeout(timeout time.Duration) *ListProvidersByRegionParams

NewListProvidersByRegionParamsWithTimeout creates a new ListProvidersByRegionParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListProvidersByRegionParams) SetAuthInfoWriter added in v0.17.0

func (o *ListProvidersByRegionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the list providers by region params

func (*ListProvidersByRegionParams) SetContext added in v0.7.0

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

SetContext adds the context to the list providers by region params

func (*ListProvidersByRegionParams) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the list providers by region params

func (*ListProvidersByRegionParams) SetHTTPClientTransport added in v0.19.0

func (o *ListProvidersByRegionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the list providers by region params

func (*ListProvidersByRegionParams) SetRegion added in v0.7.0

func (o *ListProvidersByRegionParams) SetRegion(region string)

SetRegion adds the region to the list providers by region params

func (*ListProvidersByRegionParams) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the list providers by region params

func (*ListProvidersByRegionParams) WithContext added in v0.7.0

WithContext adds the context to the list providers by region params

func (*ListProvidersByRegionParams) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the list providers by region params

func (*ListProvidersByRegionParams) WithRegion added in v0.7.0

WithRegion adds the region to the list providers by region params

func (*ListProvidersByRegionParams) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the list providers by region params

func (*ListProvidersByRegionParams) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type ListProvidersByRegionReader added in v0.7.0

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

ListProvidersByRegionReader is a Reader for the ListProvidersByRegion structure.

func (*ListProvidersByRegionReader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type ListProvidersOK

type ListProvidersOK struct {
	Payload []string
}

ListProvidersOK handles this case with default header values.

Providers listed

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 (o *ListProvidersOK) GetPayload() []string

func (*ListProvidersOK) ToJSONString added in v0.25.0

func (o *ListProvidersOK) ToJSONString() string

type ListProvidersParams

type ListProvidersParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry

	AuthInfoWriter runtime.ClientAuthInfoWriter
	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 values initialized.

func NewListProvidersParamsWithContext

func NewListProvidersParamsWithContext(ctx context.Context) *ListProvidersParams

NewListProvidersParamsWithContext creates a new ListProvidersParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*ListProvidersParams) SetAuthInfoWriter added in v0.17.0

func (o *ListProvidersParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list providers params

func (*ListProvidersParams) SetHTTPClientTransport added in v0.19.0

func (o *ListProvidersParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport 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) WithContext

WithContext adds the context to the list providers params

func (*ListProvidersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient 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) 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.

Jump to

Keyboard shortcuts

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