depot_settings

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause Imports: 10 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 depot settings API

func (*Client) GetDepotSettings added in v0.1.1

func (a *Client) GetDepotSettings(params *GetDepotSettingsParams, opts ...ClientOption) (*GetDepotSettingsOK, error)

GetDepotSettings gets depot settings

Get the Depot Settings, In a fresh setup, this would be empty

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateDepotSettings

UpdateDepotSettings updates depot settings

Update Depot Settings. Depot Settings can be updated with VMware Depot Account

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetDepotSettings(params *GetDepotSettingsParams, opts ...ClientOption) (*GetDepotSettingsOK, error)

	UpdateDepotSettings(params *UpdateDepotSettingsParams, opts ...ClientOption) (*UpdateDepotSettingsOK, *UpdateDepotSettingsAccepted, 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 depot settings API client.

type GetDepotSettingsInternalServerError added in v0.1.1

type GetDepotSettingsInternalServerError struct {
	Payload *models.Error
}

GetDepotSettingsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetDepotSettingsInternalServerError added in v0.1.1

func NewGetDepotSettingsInternalServerError() *GetDepotSettingsInternalServerError

NewGetDepotSettingsInternalServerError creates a GetDepotSettingsInternalServerError with default headers values

func (*GetDepotSettingsInternalServerError) Error added in v0.1.1

func (*GetDepotSettingsInternalServerError) GetPayload added in v0.1.1

func (*GetDepotSettingsInternalServerError) IsClientError added in v0.1.1

func (o *GetDepotSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this get depot settings internal server error response has a 4xx status code

func (*GetDepotSettingsInternalServerError) IsCode added in v0.1.1

IsCode returns true when this get depot settings internal server error response a status code equal to that given

func (*GetDepotSettingsInternalServerError) IsRedirect added in v0.1.1

func (o *GetDepotSettingsInternalServerError) IsRedirect() bool

IsRedirect returns true when this get depot settings internal server error response has a 3xx status code

func (*GetDepotSettingsInternalServerError) IsServerError added in v0.1.1

func (o *GetDepotSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this get depot settings internal server error response has a 5xx status code

func (*GetDepotSettingsInternalServerError) IsSuccess added in v0.1.1

IsSuccess returns true when this get depot settings internal server error response has a 2xx status code

func (*GetDepotSettingsInternalServerError) String added in v0.1.1

type GetDepotSettingsOK added in v0.1.1

type GetDepotSettingsOK struct {
	Payload []*models.DepotSettings
}

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

Ok

func NewGetDepotSettingsOK added in v0.1.1

func NewGetDepotSettingsOK() *GetDepotSettingsOK

NewGetDepotSettingsOK creates a GetDepotSettingsOK with default headers values

func (*GetDepotSettingsOK) Error added in v0.1.1

func (o *GetDepotSettingsOK) Error() string

func (*GetDepotSettingsOK) GetPayload added in v0.1.1

func (o *GetDepotSettingsOK) GetPayload() []*models.DepotSettings

func (*GetDepotSettingsOK) IsClientError added in v0.1.1

func (o *GetDepotSettingsOK) IsClientError() bool

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

func (*GetDepotSettingsOK) IsCode added in v0.1.1

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

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

func (*GetDepotSettingsOK) IsRedirect added in v0.1.1

func (o *GetDepotSettingsOK) IsRedirect() bool

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

func (*GetDepotSettingsOK) IsServerError added in v0.1.1

func (o *GetDepotSettingsOK) IsServerError() bool

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

func (*GetDepotSettingsOK) IsSuccess added in v0.1.1

func (o *GetDepotSettingsOK) IsSuccess() bool

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

func (*GetDepotSettingsOK) String added in v0.1.1

func (o *GetDepotSettingsOK) String() string

type GetDepotSettingsParams added in v0.1.1

type GetDepotSettingsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDepotSettingsParams contains all the parameters to send to the API endpoint

for the get depot settings operation.

Typically these are written to a http.Request.

func NewGetDepotSettingsParams added in v0.1.1

func NewGetDepotSettingsParams() *GetDepotSettingsParams

NewGetDepotSettingsParams creates a new GetDepotSettingsParams 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 NewGetDepotSettingsParamsWithContext added in v0.1.1

func NewGetDepotSettingsParamsWithContext(ctx context.Context) *GetDepotSettingsParams

NewGetDepotSettingsParamsWithContext creates a new GetDepotSettingsParams object with the ability to set a context for a request.

func NewGetDepotSettingsParamsWithHTTPClient added in v0.1.1

func NewGetDepotSettingsParamsWithHTTPClient(client *http.Client) *GetDepotSettingsParams

NewGetDepotSettingsParamsWithHTTPClient creates a new GetDepotSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewGetDepotSettingsParamsWithTimeout added in v0.1.1

func NewGetDepotSettingsParamsWithTimeout(timeout time.Duration) *GetDepotSettingsParams

NewGetDepotSettingsParamsWithTimeout creates a new GetDepotSettingsParams object with the ability to set a timeout on a request.

func (*GetDepotSettingsParams) SetContext added in v0.1.1

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

SetContext adds the context to the get depot settings params

func (*GetDepotSettingsParams) SetDefaults added in v0.1.1

func (o *GetDepotSettingsParams) SetDefaults()

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

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

func (*GetDepotSettingsParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get depot settings params

func (*GetDepotSettingsParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get depot settings params

func (*GetDepotSettingsParams) WithContext added in v0.1.1

WithContext adds the context to the get depot settings params

func (*GetDepotSettingsParams) WithDefaults added in v0.1.1

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

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

func (*GetDepotSettingsParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get depot settings params

func (*GetDepotSettingsParams) WithTimeout added in v0.1.1

WithTimeout adds the timeout to the get depot settings params

func (*GetDepotSettingsParams) WriteToRequest added in v0.1.1

WriteToRequest writes these params to a swagger request

type GetDepotSettingsReader added in v0.1.1

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

GetDepotSettingsReader is a Reader for the GetDepotSettings structure.

func (*GetDepotSettingsReader) ReadResponse added in v0.1.1

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

ReadResponse reads a server response into the received o.

type UpdateDepotSettingsAccepted

type UpdateDepotSettingsAccepted struct {
	Payload *models.DepotSettings
}

UpdateDepotSettingsAccepted describes a response with status code 202, with default header values.

Ok

func NewUpdateDepotSettingsAccepted

func NewUpdateDepotSettingsAccepted() *UpdateDepotSettingsAccepted

NewUpdateDepotSettingsAccepted creates a UpdateDepotSettingsAccepted with default headers values

func (*UpdateDepotSettingsAccepted) Error

func (*UpdateDepotSettingsAccepted) GetPayload

func (*UpdateDepotSettingsAccepted) IsClientError

func (o *UpdateDepotSettingsAccepted) IsClientError() bool

IsClientError returns true when this update depot settings accepted response has a 4xx status code

func (*UpdateDepotSettingsAccepted) IsCode

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

IsCode returns true when this update depot settings accepted response a status code equal to that given

func (*UpdateDepotSettingsAccepted) IsRedirect

func (o *UpdateDepotSettingsAccepted) IsRedirect() bool

IsRedirect returns true when this update depot settings accepted response has a 3xx status code

func (*UpdateDepotSettingsAccepted) IsServerError

func (o *UpdateDepotSettingsAccepted) IsServerError() bool

IsServerError returns true when this update depot settings accepted response has a 5xx status code

func (*UpdateDepotSettingsAccepted) IsSuccess

func (o *UpdateDepotSettingsAccepted) IsSuccess() bool

IsSuccess returns true when this update depot settings accepted response has a 2xx status code

func (*UpdateDepotSettingsAccepted) String

func (o *UpdateDepotSettingsAccepted) String() string

type UpdateDepotSettingsBadRequest

type UpdateDepotSettingsBadRequest struct {
	Payload *models.Error
}

UpdateDepotSettingsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewUpdateDepotSettingsBadRequest

func NewUpdateDepotSettingsBadRequest() *UpdateDepotSettingsBadRequest

NewUpdateDepotSettingsBadRequest creates a UpdateDepotSettingsBadRequest with default headers values

func (*UpdateDepotSettingsBadRequest) Error

func (*UpdateDepotSettingsBadRequest) GetPayload

func (o *UpdateDepotSettingsBadRequest) GetPayload() *models.Error

func (*UpdateDepotSettingsBadRequest) IsClientError

func (o *UpdateDepotSettingsBadRequest) IsClientError() bool

IsClientError returns true when this update depot settings bad request response has a 4xx status code

func (*UpdateDepotSettingsBadRequest) IsCode

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

IsCode returns true when this update depot settings bad request response a status code equal to that given

func (*UpdateDepotSettingsBadRequest) IsRedirect

func (o *UpdateDepotSettingsBadRequest) IsRedirect() bool

IsRedirect returns true when this update depot settings bad request response has a 3xx status code

func (*UpdateDepotSettingsBadRequest) IsServerError

func (o *UpdateDepotSettingsBadRequest) IsServerError() bool

IsServerError returns true when this update depot settings bad request response has a 5xx status code

func (*UpdateDepotSettingsBadRequest) IsSuccess

func (o *UpdateDepotSettingsBadRequest) IsSuccess() bool

IsSuccess returns true when this update depot settings bad request response has a 2xx status code

func (*UpdateDepotSettingsBadRequest) String

type UpdateDepotSettingsInternalServerError

type UpdateDepotSettingsInternalServerError struct {
	Payload *models.Error
}

UpdateDepotSettingsInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewUpdateDepotSettingsInternalServerError

func NewUpdateDepotSettingsInternalServerError() *UpdateDepotSettingsInternalServerError

NewUpdateDepotSettingsInternalServerError creates a UpdateDepotSettingsInternalServerError with default headers values

func (*UpdateDepotSettingsInternalServerError) Error

func (*UpdateDepotSettingsInternalServerError) GetPayload

func (*UpdateDepotSettingsInternalServerError) IsClientError

func (o *UpdateDepotSettingsInternalServerError) IsClientError() bool

IsClientError returns true when this update depot settings internal server error response has a 4xx status code

func (*UpdateDepotSettingsInternalServerError) IsCode

IsCode returns true when this update depot settings internal server error response a status code equal to that given

func (*UpdateDepotSettingsInternalServerError) IsRedirect

IsRedirect returns true when this update depot settings internal server error response has a 3xx status code

func (*UpdateDepotSettingsInternalServerError) IsServerError

func (o *UpdateDepotSettingsInternalServerError) IsServerError() bool

IsServerError returns true when this update depot settings internal server error response has a 5xx status code

func (*UpdateDepotSettingsInternalServerError) IsSuccess

IsSuccess returns true when this update depot settings internal server error response has a 2xx status code

func (*UpdateDepotSettingsInternalServerError) String

type UpdateDepotSettingsOK

type UpdateDepotSettingsOK struct {
	Payload *models.DepotSettings
}

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

OK

func NewUpdateDepotSettingsOK

func NewUpdateDepotSettingsOK() *UpdateDepotSettingsOK

NewUpdateDepotSettingsOK creates a UpdateDepotSettingsOK with default headers values

func (*UpdateDepotSettingsOK) Error

func (o *UpdateDepotSettingsOK) Error() string

func (*UpdateDepotSettingsOK) GetPayload

func (o *UpdateDepotSettingsOK) GetPayload() *models.DepotSettings

func (*UpdateDepotSettingsOK) IsClientError

func (o *UpdateDepotSettingsOK) IsClientError() bool

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

func (*UpdateDepotSettingsOK) IsCode

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

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

func (*UpdateDepotSettingsOK) IsRedirect

func (o *UpdateDepotSettingsOK) IsRedirect() bool

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

func (*UpdateDepotSettingsOK) IsServerError

func (o *UpdateDepotSettingsOK) IsServerError() bool

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

func (*UpdateDepotSettingsOK) IsSuccess

func (o *UpdateDepotSettingsOK) IsSuccess() bool

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

func (*UpdateDepotSettingsOK) String

func (o *UpdateDepotSettingsOK) String() string

type UpdateDepotSettingsParams

type UpdateDepotSettingsParams struct {

	/* DepotSettings.

	   Depot Settings
	*/
	DepotSettings *models.DepotSettings

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

UpdateDepotSettingsParams contains all the parameters to send to the API endpoint

for the update depot settings operation.

Typically these are written to a http.Request.

func NewUpdateDepotSettingsParams

func NewUpdateDepotSettingsParams() *UpdateDepotSettingsParams

NewUpdateDepotSettingsParams creates a new UpdateDepotSettingsParams 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 NewUpdateDepotSettingsParamsWithContext

func NewUpdateDepotSettingsParamsWithContext(ctx context.Context) *UpdateDepotSettingsParams

NewUpdateDepotSettingsParamsWithContext creates a new UpdateDepotSettingsParams object with the ability to set a context for a request.

func NewUpdateDepotSettingsParamsWithHTTPClient

func NewUpdateDepotSettingsParamsWithHTTPClient(client *http.Client) *UpdateDepotSettingsParams

NewUpdateDepotSettingsParamsWithHTTPClient creates a new UpdateDepotSettingsParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateDepotSettingsParamsWithTimeout

func NewUpdateDepotSettingsParamsWithTimeout(timeout time.Duration) *UpdateDepotSettingsParams

NewUpdateDepotSettingsParamsWithTimeout creates a new UpdateDepotSettingsParams object with the ability to set a timeout on a request.

func (*UpdateDepotSettingsParams) SetContext

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

SetContext adds the context to the update depot settings params

func (*UpdateDepotSettingsParams) SetDefaults

func (o *UpdateDepotSettingsParams) SetDefaults()

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

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

func (*UpdateDepotSettingsParams) SetDepotSettings

func (o *UpdateDepotSettingsParams) SetDepotSettings(depotSettings *models.DepotSettings)

SetDepotSettings adds the depotSettings to the update depot settings params

func (*UpdateDepotSettingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update depot settings params

func (*UpdateDepotSettingsParams) SetTimeout

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

SetTimeout adds the timeout to the update depot settings params

func (*UpdateDepotSettingsParams) WithContext

WithContext adds the context to the update depot settings params

func (*UpdateDepotSettingsParams) WithDefaults

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

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

func (*UpdateDepotSettingsParams) WithDepotSettings

func (o *UpdateDepotSettingsParams) WithDepotSettings(depotSettings *models.DepotSettings) *UpdateDepotSettingsParams

WithDepotSettings adds the depotSettings to the update depot settings params

func (*UpdateDepotSettingsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update depot settings params

func (*UpdateDepotSettingsParams) WithTimeout

WithTimeout adds the timeout to the update depot settings params

func (*UpdateDepotSettingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDepotSettingsReader

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

UpdateDepotSettingsReader is a Reader for the UpdateDepotSettings structure.

func (*UpdateDepotSettingsReader) ReadResponse

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