config

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 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 config API

func (*Client) CreateConfig deprecated

Deprecated: Use CreateConfigShort instead.

CreateConfig creates a config

Create a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=1 <b>(CREATE)</b></li><li><i>Returns</i>: created config</li></ul>

func (*Client) CreateConfigShort

func (a *Client) CreateConfigShort(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter) (*CreateConfigCreated, error)

CreateConfigShort creates a config

Create a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=1 <b>(CREATE)</b></li><li><i>Returns</i>: created config</li></ul>

func (*Client) DeleteConfig1 deprecated

Deprecated: Use DeleteConfig1Short instead.

DeleteConfig1 deletes a config

Delete a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=8 <b>(DELETE)</b></li><li><i>Returns</i>: created config</li></ul>

func (*Client) DeleteConfig1Short

func (a *Client) DeleteConfig1Short(params *DeleteConfig1Params, authInfo runtime.ClientAuthInfoWriter) (*DeleteConfig1NoContent, error)

DeleteConfig1Short deletes a config

Delete a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=8 <b>(DELETE)</b></li><li><i>Returns</i>: created config</li></ul>

func (*Client) GetConfig1 deprecated

Deprecated: Use GetConfig1Short instead.

GetConfig1 gets a config

Get a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=2 <b>(READ)</b></li><li><i>Returns</i>: config</li></ul>

func (*Client) GetConfig1Short

func (a *Client) GetConfig1Short(params *GetConfig1Params, authInfo runtime.ClientAuthInfoWriter) (*GetConfig1OK, error)

GetConfig1Short gets a config

Get a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=2 <b>(READ)</b></li><li><i>Returns</i>: config</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateConfig1 deprecated

Deprecated: Use UpdateConfig1Short instead.

UpdateConfig1 updates a config

Update a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=4 <b>(UPDATE)</b></li><li><i>Returns</i>: created config</li></ul>

func (*Client) UpdateConfig1Short

func (a *Client) UpdateConfig1Short(params *UpdateConfig1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdateConfig1Created, error)

UpdateConfig1Short updates a config

Update a config.<br>Other detail info: <ul><li><i>Required permission</i>: resource=<b>"ADMIN:NAMESPACE:{namespace}:CONFIG"</b>, action=4 <b>(UPDATE)</b></li><li><i>Returns</i>: created config</li></ul>

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new config API client.

type CreateConfigBadRequest

type CreateConfigBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

CreateConfigBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr></table>

func NewCreateConfigBadRequest

func NewCreateConfigBadRequest() *CreateConfigBadRequest

NewCreateConfigBadRequest creates a CreateConfigBadRequest with default headers values

func (*CreateConfigBadRequest) Error

func (o *CreateConfigBadRequest) Error() string

func (*CreateConfigBadRequest) GetPayload

func (*CreateConfigBadRequest) ToJSONString

func (o *CreateConfigBadRequest) ToJSONString() string

type CreateConfigConflict

type CreateConfigConflict struct {
	Payload *basicclientmodels.ErrorEntity
}

CreateConfigConflict handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>12336</td><td>Unable to {action}: Config already exists</td></tr></table>

func NewCreateConfigConflict

func NewCreateConfigConflict() *CreateConfigConflict

NewCreateConfigConflict creates a CreateConfigConflict with default headers values

func (*CreateConfigConflict) Error

func (o *CreateConfigConflict) Error() string

func (*CreateConfigConflict) GetPayload

func (*CreateConfigConflict) ToJSONString

func (o *CreateConfigConflict) ToJSONString() string

type CreateConfigCreated

type CreateConfigCreated struct {
	Payload *basicclientmodels.ConfigInfo
}

CreateConfigCreated handles this case with default header values.

Successful operation

func NewCreateConfigCreated

func NewCreateConfigCreated() *CreateConfigCreated

NewCreateConfigCreated creates a CreateConfigCreated with default headers values

func (*CreateConfigCreated) Error

func (o *CreateConfigCreated) Error() string

func (*CreateConfigCreated) GetPayload

func (*CreateConfigCreated) ToJSONString

func (o *CreateConfigCreated) ToJSONString() string

type CreateConfigForbidden

type CreateConfigForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

CreateConfigForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewCreateConfigForbidden

func NewCreateConfigForbidden() *CreateConfigForbidden

NewCreateConfigForbidden creates a CreateConfigForbidden with default headers values

func (*CreateConfigForbidden) Error

func (o *CreateConfigForbidden) Error() string

func (*CreateConfigForbidden) GetPayload

func (*CreateConfigForbidden) ToJSONString

func (o *CreateConfigForbidden) ToJSONString() string

type CreateConfigParams

type CreateConfigParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *basicclientmodels.ConfigCreate
	/*Namespace*/
	Namespace string

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

CreateConfigParams contains all the parameters to send to the API endpoint for the create config operation typically these are written to a http.Request

func NewCreateConfigParams

func NewCreateConfigParams() *CreateConfigParams

NewCreateConfigParams creates a new CreateConfigParams object with the default values initialized.

func NewCreateConfigParamsWithContext

func NewCreateConfigParamsWithContext(ctx context.Context) *CreateConfigParams

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

func NewCreateConfigParamsWithHTTPClient

func NewCreateConfigParamsWithHTTPClient(client *http.Client) *CreateConfigParams

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

func NewCreateConfigParamsWithTimeout

func NewCreateConfigParamsWithTimeout(timeout time.Duration) *CreateConfigParams

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

func (*CreateConfigParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the create config params

func (*CreateConfigParams) SetBody

SetBody adds the body to the create config params

func (*CreateConfigParams) SetContext

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

SetContext adds the context to the create config params

func (*CreateConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create config params

func (*CreateConfigParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the create config params

func (*CreateConfigParams) SetNamespace

func (o *CreateConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create config params

func (*CreateConfigParams) SetTimeout

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

SetTimeout adds the timeout to the create config params

func (*CreateConfigParams) WithBody

WithBody adds the body to the create config params

func (*CreateConfigParams) WithContext

WithContext adds the context to the create config params

func (*CreateConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create config params

func (*CreateConfigParams) WithNamespace

func (o *CreateConfigParams) WithNamespace(namespace string) *CreateConfigParams

WithNamespace adds the namespace to the create config params

func (*CreateConfigParams) WithTimeout

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

WithTimeout adds the timeout to the create config params

func (*CreateConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateConfigReader

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

CreateConfigReader is a Reader for the CreateConfig structure.

func (*CreateConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateConfigUnauthorized

type CreateConfigUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

CreateConfigUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewCreateConfigUnauthorized

func NewCreateConfigUnauthorized() *CreateConfigUnauthorized

NewCreateConfigUnauthorized creates a CreateConfigUnauthorized with default headers values

func (*CreateConfigUnauthorized) Error

func (o *CreateConfigUnauthorized) Error() string

func (*CreateConfigUnauthorized) GetPayload

func (*CreateConfigUnauthorized) ToJSONString

func (o *CreateConfigUnauthorized) ToJSONString() string

type DeleteConfig1BadRequest

type DeleteConfig1BadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

DeleteConfig1BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr></table>

func NewDeleteConfig1BadRequest

func NewDeleteConfig1BadRequest() *DeleteConfig1BadRequest

NewDeleteConfig1BadRequest creates a DeleteConfig1BadRequest with default headers values

func (*DeleteConfig1BadRequest) Error

func (o *DeleteConfig1BadRequest) Error() string

func (*DeleteConfig1BadRequest) GetPayload

func (*DeleteConfig1BadRequest) ToJSONString

func (o *DeleteConfig1BadRequest) ToJSONString() string

type DeleteConfig1Forbidden

type DeleteConfig1Forbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteConfig1Forbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewDeleteConfig1Forbidden

func NewDeleteConfig1Forbidden() *DeleteConfig1Forbidden

NewDeleteConfig1Forbidden creates a DeleteConfig1Forbidden with default headers values

func (*DeleteConfig1Forbidden) Error

func (o *DeleteConfig1Forbidden) Error() string

func (*DeleteConfig1Forbidden) GetPayload

func (*DeleteConfig1Forbidden) ToJSONString

func (o *DeleteConfig1Forbidden) ToJSONString() string

type DeleteConfig1NoContent

type DeleteConfig1NoContent struct {
}

DeleteConfig1NoContent handles this case with default header values.

Successful operation

func NewDeleteConfig1NoContent

func NewDeleteConfig1NoContent() *DeleteConfig1NoContent

NewDeleteConfig1NoContent creates a DeleteConfig1NoContent with default headers values

func (*DeleteConfig1NoContent) Error

func (o *DeleteConfig1NoContent) Error() string

type DeleteConfig1NotFound

type DeleteConfig1NotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteConfig1NotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>12337</td><td>Unable to {action}: Config not found</td></tr></table>

func NewDeleteConfig1NotFound

func NewDeleteConfig1NotFound() *DeleteConfig1NotFound

NewDeleteConfig1NotFound creates a DeleteConfig1NotFound with default headers values

func (*DeleteConfig1NotFound) Error

func (o *DeleteConfig1NotFound) Error() string

func (*DeleteConfig1NotFound) GetPayload

func (*DeleteConfig1NotFound) ToJSONString

func (o *DeleteConfig1NotFound) ToJSONString() string

type DeleteConfig1Params

type DeleteConfig1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ConfigKey*/
	ConfigKey string
	/*Namespace*/
	Namespace string

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

DeleteConfig1Params contains all the parameters to send to the API endpoint for the delete config 1 operation typically these are written to a http.Request

func NewDeleteConfig1Params

func NewDeleteConfig1Params() *DeleteConfig1Params

NewDeleteConfig1Params creates a new DeleteConfig1Params object with the default values initialized.

func NewDeleteConfig1ParamsWithContext

func NewDeleteConfig1ParamsWithContext(ctx context.Context) *DeleteConfig1Params

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

func NewDeleteConfig1ParamsWithHTTPClient

func NewDeleteConfig1ParamsWithHTTPClient(client *http.Client) *DeleteConfig1Params

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

func NewDeleteConfig1ParamsWithTimeout

func NewDeleteConfig1ParamsWithTimeout(timeout time.Duration) *DeleteConfig1Params

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

func (*DeleteConfig1Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the delete config 1 params

func (*DeleteConfig1Params) SetConfigKey

func (o *DeleteConfig1Params) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the delete config 1 params

func (*DeleteConfig1Params) SetContext

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

SetContext adds the context to the delete config 1 params

func (*DeleteConfig1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete config 1 params

func (*DeleteConfig1Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the delete config 1 params

func (*DeleteConfig1Params) SetNamespace

func (o *DeleteConfig1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete config 1 params

func (*DeleteConfig1Params) SetTimeout

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

SetTimeout adds the timeout to the delete config 1 params

func (*DeleteConfig1Params) WithConfigKey

func (o *DeleteConfig1Params) WithConfigKey(configKey string) *DeleteConfig1Params

WithConfigKey adds the configKey to the delete config 1 params

func (*DeleteConfig1Params) WithContext

WithContext adds the context to the delete config 1 params

func (*DeleteConfig1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete config 1 params

func (*DeleteConfig1Params) WithNamespace

func (o *DeleteConfig1Params) WithNamespace(namespace string) *DeleteConfig1Params

WithNamespace adds the namespace to the delete config 1 params

func (*DeleteConfig1Params) WithTimeout

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

WithTimeout adds the timeout to the delete config 1 params

func (*DeleteConfig1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteConfig1Reader

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

DeleteConfig1Reader is a Reader for the DeleteConfig1 structure.

func (*DeleteConfig1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteConfig1Unauthorized

type DeleteConfig1Unauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteConfig1Unauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewDeleteConfig1Unauthorized

func NewDeleteConfig1Unauthorized() *DeleteConfig1Unauthorized

NewDeleteConfig1Unauthorized creates a DeleteConfig1Unauthorized with default headers values

func (*DeleteConfig1Unauthorized) Error

func (o *DeleteConfig1Unauthorized) Error() string

func (*DeleteConfig1Unauthorized) GetPayload

func (*DeleteConfig1Unauthorized) ToJSONString

func (o *DeleteConfig1Unauthorized) ToJSONString() string

type GetConfig1BadRequest

type GetConfig1BadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

GetConfig1BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewGetConfig1BadRequest

func NewGetConfig1BadRequest() *GetConfig1BadRequest

NewGetConfig1BadRequest creates a GetConfig1BadRequest with default headers values

func (*GetConfig1BadRequest) Error

func (o *GetConfig1BadRequest) Error() string

func (*GetConfig1BadRequest) GetPayload

func (*GetConfig1BadRequest) ToJSONString

func (o *GetConfig1BadRequest) ToJSONString() string

type GetConfig1Forbidden

type GetConfig1Forbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

GetConfig1Forbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewGetConfig1Forbidden

func NewGetConfig1Forbidden() *GetConfig1Forbidden

NewGetConfig1Forbidden creates a GetConfig1Forbidden with default headers values

func (*GetConfig1Forbidden) Error

func (o *GetConfig1Forbidden) Error() string

func (*GetConfig1Forbidden) GetPayload

func (*GetConfig1Forbidden) ToJSONString

func (o *GetConfig1Forbidden) ToJSONString() string

type GetConfig1NotFound

type GetConfig1NotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

GetConfig1NotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>12337</td><td>Unable to {action}: Config not found</td></tr></table>

func NewGetConfig1NotFound

func NewGetConfig1NotFound() *GetConfig1NotFound

NewGetConfig1NotFound creates a GetConfig1NotFound with default headers values

func (*GetConfig1NotFound) Error

func (o *GetConfig1NotFound) Error() string

func (*GetConfig1NotFound) GetPayload

func (*GetConfig1NotFound) ToJSONString

func (o *GetConfig1NotFound) ToJSONString() string

type GetConfig1OK

type GetConfig1OK struct {
	Payload *basicclientmodels.ConfigInfo
}

GetConfig1OK handles this case with default header values.

Successful operation

func NewGetConfig1OK

func NewGetConfig1OK() *GetConfig1OK

NewGetConfig1OK creates a GetConfig1OK with default headers values

func (*GetConfig1OK) Error

func (o *GetConfig1OK) Error() string

func (*GetConfig1OK) GetPayload

func (o *GetConfig1OK) GetPayload() *basicclientmodels.ConfigInfo

func (*GetConfig1OK) ToJSONString

func (o *GetConfig1OK) ToJSONString() string

type GetConfig1Params

type GetConfig1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ConfigKey*/
	ConfigKey string
	/*Namespace
	  namespace, only accept alphabet and numeric

	*/
	Namespace string

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

GetConfig1Params contains all the parameters to send to the API endpoint for the get config 1 operation typically these are written to a http.Request

func NewGetConfig1Params

func NewGetConfig1Params() *GetConfig1Params

NewGetConfig1Params creates a new GetConfig1Params object with the default values initialized.

func NewGetConfig1ParamsWithContext

func NewGetConfig1ParamsWithContext(ctx context.Context) *GetConfig1Params

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

func NewGetConfig1ParamsWithHTTPClient

func NewGetConfig1ParamsWithHTTPClient(client *http.Client) *GetConfig1Params

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

func NewGetConfig1ParamsWithTimeout

func NewGetConfig1ParamsWithTimeout(timeout time.Duration) *GetConfig1Params

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

func (*GetConfig1Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get config 1 params

func (*GetConfig1Params) SetConfigKey

func (o *GetConfig1Params) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the get config 1 params

func (*GetConfig1Params) SetContext

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

SetContext adds the context to the get config 1 params

func (*GetConfig1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get config 1 params

func (*GetConfig1Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get config 1 params

func (*GetConfig1Params) SetNamespace

func (o *GetConfig1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the get config 1 params

func (*GetConfig1Params) SetTimeout

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

SetTimeout adds the timeout to the get config 1 params

func (*GetConfig1Params) WithConfigKey

func (o *GetConfig1Params) WithConfigKey(configKey string) *GetConfig1Params

WithConfigKey adds the configKey to the get config 1 params

func (*GetConfig1Params) WithContext

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

WithContext adds the context to the get config 1 params

func (*GetConfig1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get config 1 params

func (*GetConfig1Params) WithNamespace

func (o *GetConfig1Params) WithNamespace(namespace string) *GetConfig1Params

WithNamespace adds the namespace to the get config 1 params

func (*GetConfig1Params) WithTimeout

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

WithTimeout adds the timeout to the get config 1 params

func (*GetConfig1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConfig1Reader

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

GetConfig1Reader is a Reader for the GetConfig1 structure.

func (*GetConfig1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConfig1Unauthorized

type GetConfig1Unauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

GetConfig1Unauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewGetConfig1Unauthorized

func NewGetConfig1Unauthorized() *GetConfig1Unauthorized

NewGetConfig1Unauthorized creates a GetConfig1Unauthorized with default headers values

func (*GetConfig1Unauthorized) Error

func (o *GetConfig1Unauthorized) Error() string

func (*GetConfig1Unauthorized) GetPayload

func (*GetConfig1Unauthorized) ToJSONString

func (o *GetConfig1Unauthorized) ToJSONString() string

type UpdateConfig1BadRequest

type UpdateConfig1BadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

UpdateConfig1BadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>20019</td><td>unable to parse request body</td></tr></table>

func NewUpdateConfig1BadRequest

func NewUpdateConfig1BadRequest() *UpdateConfig1BadRequest

NewUpdateConfig1BadRequest creates a UpdateConfig1BadRequest with default headers values

func (*UpdateConfig1BadRequest) Error

func (o *UpdateConfig1BadRequest) Error() string

func (*UpdateConfig1BadRequest) GetPayload

func (*UpdateConfig1BadRequest) ToJSONString

func (o *UpdateConfig1BadRequest) ToJSONString() string

type UpdateConfig1Created

type UpdateConfig1Created struct {
	Payload *basicclientmodels.ConfigInfo
}

UpdateConfig1Created handles this case with default header values.

Successful operation

func NewUpdateConfig1Created

func NewUpdateConfig1Created() *UpdateConfig1Created

NewUpdateConfig1Created creates a UpdateConfig1Created with default headers values

func (*UpdateConfig1Created) Error

func (o *UpdateConfig1Created) Error() string

func (*UpdateConfig1Created) GetPayload

func (*UpdateConfig1Created) ToJSONString

func (o *UpdateConfig1Created) ToJSONString() string

type UpdateConfig1Forbidden

type UpdateConfig1Forbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateConfig1Forbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewUpdateConfig1Forbidden

func NewUpdateConfig1Forbidden() *UpdateConfig1Forbidden

NewUpdateConfig1Forbidden creates a UpdateConfig1Forbidden with default headers values

func (*UpdateConfig1Forbidden) Error

func (o *UpdateConfig1Forbidden) Error() string

func (*UpdateConfig1Forbidden) GetPayload

func (*UpdateConfig1Forbidden) ToJSONString

func (o *UpdateConfig1Forbidden) ToJSONString() string

type UpdateConfig1NotFound

type UpdateConfig1NotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateConfig1NotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>12337</td><td>Unable to {action}: Config not found</td></tr></table>

func NewUpdateConfig1NotFound

func NewUpdateConfig1NotFound() *UpdateConfig1NotFound

NewUpdateConfig1NotFound creates a UpdateConfig1NotFound with default headers values

func (*UpdateConfig1NotFound) Error

func (o *UpdateConfig1NotFound) Error() string

func (*UpdateConfig1NotFound) GetPayload

func (*UpdateConfig1NotFound) ToJSONString

func (o *UpdateConfig1NotFound) ToJSONString() string

type UpdateConfig1Params

type UpdateConfig1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *basicclientmodels.ConfigUpdate
	/*ConfigKey*/
	ConfigKey string
	/*Namespace*/
	Namespace string

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

UpdateConfig1Params contains all the parameters to send to the API endpoint for the update config 1 operation typically these are written to a http.Request

func NewUpdateConfig1Params

func NewUpdateConfig1Params() *UpdateConfig1Params

NewUpdateConfig1Params creates a new UpdateConfig1Params object with the default values initialized.

func NewUpdateConfig1ParamsWithContext

func NewUpdateConfig1ParamsWithContext(ctx context.Context) *UpdateConfig1Params

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

func NewUpdateConfig1ParamsWithHTTPClient

func NewUpdateConfig1ParamsWithHTTPClient(client *http.Client) *UpdateConfig1Params

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

func NewUpdateConfig1ParamsWithTimeout

func NewUpdateConfig1ParamsWithTimeout(timeout time.Duration) *UpdateConfig1Params

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

func (*UpdateConfig1Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update config 1 params

func (*UpdateConfig1Params) SetBody

SetBody adds the body to the update config 1 params

func (*UpdateConfig1Params) SetConfigKey

func (o *UpdateConfig1Params) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the update config 1 params

func (*UpdateConfig1Params) SetContext

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

SetContext adds the context to the update config 1 params

func (*UpdateConfig1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update config 1 params

func (*UpdateConfig1Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update config 1 params

func (*UpdateConfig1Params) SetNamespace

func (o *UpdateConfig1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the update config 1 params

func (*UpdateConfig1Params) SetTimeout

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

SetTimeout adds the timeout to the update config 1 params

func (*UpdateConfig1Params) WithBody

WithBody adds the body to the update config 1 params

func (*UpdateConfig1Params) WithConfigKey

func (o *UpdateConfig1Params) WithConfigKey(configKey string) *UpdateConfig1Params

WithConfigKey adds the configKey to the update config 1 params

func (*UpdateConfig1Params) WithContext

WithContext adds the context to the update config 1 params

func (*UpdateConfig1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update config 1 params

func (*UpdateConfig1Params) WithNamespace

func (o *UpdateConfig1Params) WithNamespace(namespace string) *UpdateConfig1Params

WithNamespace adds the namespace to the update config 1 params

func (*UpdateConfig1Params) WithTimeout

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

WithTimeout adds the timeout to the update config 1 params

func (*UpdateConfig1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateConfig1Reader

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

UpdateConfig1Reader is a Reader for the UpdateConfig1 structure.

func (*UpdateConfig1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateConfig1Unauthorized

type UpdateConfig1Unauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateConfig1Unauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>

func NewUpdateConfig1Unauthorized

func NewUpdateConfig1Unauthorized() *UpdateConfig1Unauthorized

NewUpdateConfig1Unauthorized creates a UpdateConfig1Unauthorized with default headers values

func (*UpdateConfig1Unauthorized) Error

func (o *UpdateConfig1Unauthorized) Error() string

func (*UpdateConfig1Unauthorized) GetPayload

func (*UpdateConfig1Unauthorized) ToJSONString

func (o *UpdateConfig1Unauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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