config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 15 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) CreateConfigShort

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

CreateConfigShort create a config Create a config. Other detail info:

  • Returns : created config

func (*Client) DeleteConfigShort

func (a *Client) DeleteConfigShort(params *DeleteConfigParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteConfigResponse, error)

DeleteConfigShort delete a config Delete a config. Other detail info:

  • Returns : created config

func (*Client) GetConfigShort

func (a *Client) GetConfigShort(params *GetConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetConfigResponse, error)

GetConfigShort get a config Get a config. Other detail info:

  • Returns : config

func (*Client) GetPublisherConfigShort

func (a *Client) GetPublisherConfigShort(params *GetPublisherConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublisherConfigResponse, error)

GetPublisherConfigShort get a publisher config Get a publisher config. It will return a publisher namespace config of the given namespace and key. Other detail info:

  • Returns : config

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateConfigShort

func (a *Client) UpdateConfigShort(params *UpdateConfigParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateConfigResponse, error)

UpdateConfigShort update a config Update a config. Other detail info:

  • Returns : created config

type ClientService

type ClientService interface {
	CreateConfigShort(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter) (*CreateConfigResponse, error)
	GetConfigShort(params *GetConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetConfigResponse, error)
	DeleteConfigShort(params *DeleteConfigParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteConfigResponse, error)
	UpdateConfigShort(params *UpdateConfigParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateConfigResponse, error)
	GetPublisherConfigShort(params *GetPublisherConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetPublisherConfigResponse, 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 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>11771</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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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) SetFlightId

func (o *CreateConfigParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

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 DeleteConfigBadRequest

type DeleteConfigBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

DeleteConfigBadRequest 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 NewDeleteConfigBadRequest

func NewDeleteConfigBadRequest() *DeleteConfigBadRequest

NewDeleteConfigBadRequest creates a DeleteConfigBadRequest with default headers values

func (*DeleteConfigBadRequest) Error

func (o *DeleteConfigBadRequest) Error() string

func (*DeleteConfigBadRequest) GetPayload

func (*DeleteConfigBadRequest) ToJSONString

func (o *DeleteConfigBadRequest) ToJSONString() string

type DeleteConfigForbidden

type DeleteConfigForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteConfigForbidden 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 NewDeleteConfigForbidden

func NewDeleteConfigForbidden() *DeleteConfigForbidden

NewDeleteConfigForbidden creates a DeleteConfigForbidden with default headers values

func (*DeleteConfigForbidden) Error

func (o *DeleteConfigForbidden) Error() string

func (*DeleteConfigForbidden) GetPayload

func (*DeleteConfigForbidden) ToJSONString

func (o *DeleteConfigForbidden) ToJSONString() string

type DeleteConfigNoContent

type DeleteConfigNoContent struct {
}

DeleteConfigNoContent handles this case with default header values.

Successful operation

func NewDeleteConfigNoContent

func NewDeleteConfigNoContent() *DeleteConfigNoContent

NewDeleteConfigNoContent creates a DeleteConfigNoContent with default headers values

func (*DeleteConfigNoContent) Error

func (o *DeleteConfigNoContent) Error() string

type DeleteConfigNotFound

type DeleteConfigNotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteConfigNotFound handles this case with default header values.

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

func NewDeleteConfigNotFound

func NewDeleteConfigNotFound() *DeleteConfigNotFound

NewDeleteConfigNotFound creates a DeleteConfigNotFound with default headers values

func (*DeleteConfigNotFound) Error

func (o *DeleteConfigNotFound) Error() string

func (*DeleteConfigNotFound) GetPayload

func (*DeleteConfigNotFound) ToJSONString

func (o *DeleteConfigNotFound) ToJSONString() string

type DeleteConfigParams

type DeleteConfigParams struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewDeleteConfigParams

func NewDeleteConfigParams() *DeleteConfigParams

NewDeleteConfigParams creates a new DeleteConfigParams object with the default values initialized.

func NewDeleteConfigParamsWithContext

func NewDeleteConfigParamsWithContext(ctx context.Context) *DeleteConfigParams

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

func NewDeleteConfigParamsWithHTTPClient

func NewDeleteConfigParamsWithHTTPClient(client *http.Client) *DeleteConfigParams

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

func NewDeleteConfigParamsWithTimeout

func NewDeleteConfigParamsWithTimeout(timeout time.Duration) *DeleteConfigParams

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

func (*DeleteConfigParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the delete config params

func (*DeleteConfigParams) SetConfigKey

func (o *DeleteConfigParams) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the delete config params

func (*DeleteConfigParams) SetContext

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

SetContext adds the context to the delete config params

func (*DeleteConfigParams) SetFlightId

func (o *DeleteConfigParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*DeleteConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete config params

func (*DeleteConfigParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the delete config params

func (*DeleteConfigParams) SetNamespace

func (o *DeleteConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete config params

func (*DeleteConfigParams) SetTimeout

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

SetTimeout adds the timeout to the delete config params

func (*DeleteConfigParams) WithConfigKey

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

WithConfigKey adds the configKey to the delete config params

func (*DeleteConfigParams) WithContext

WithContext adds the context to the delete config params

func (*DeleteConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete config params

func (*DeleteConfigParams) WithNamespace

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

WithNamespace adds the namespace to the delete config params

func (*DeleteConfigParams) WithTimeout

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

WithTimeout adds the timeout to the delete config params

func (*DeleteConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteConfigReader

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

DeleteConfigReader is a Reader for the DeleteConfig structure.

func (*DeleteConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteConfigUnauthorized

type DeleteConfigUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

DeleteConfigUnauthorized 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 NewDeleteConfigUnauthorized

func NewDeleteConfigUnauthorized() *DeleteConfigUnauthorized

NewDeleteConfigUnauthorized creates a DeleteConfigUnauthorized with default headers values

func (*DeleteConfigUnauthorized) Error

func (o *DeleteConfigUnauthorized) Error() string

func (*DeleteConfigUnauthorized) GetPayload

func (*DeleteConfigUnauthorized) ToJSONString

func (o *DeleteConfigUnauthorized) ToJSONString() string

type GetConfigBadRequest

type GetConfigBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

GetConfigBadRequest 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 NewGetConfigBadRequest

func NewGetConfigBadRequest() *GetConfigBadRequest

NewGetConfigBadRequest creates a GetConfigBadRequest with default headers values

func (*GetConfigBadRequest) Error

func (o *GetConfigBadRequest) Error() string

func (*GetConfigBadRequest) GetPayload

func (*GetConfigBadRequest) ToJSONString

func (o *GetConfigBadRequest) ToJSONString() string

type GetConfigForbidden

type GetConfigForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

GetConfigForbidden 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 NewGetConfigForbidden

func NewGetConfigForbidden() *GetConfigForbidden

NewGetConfigForbidden creates a GetConfigForbidden with default headers values

func (*GetConfigForbidden) Error

func (o *GetConfigForbidden) Error() string

func (*GetConfigForbidden) GetPayload

func (*GetConfigForbidden) ToJSONString

func (o *GetConfigForbidden) ToJSONString() string

type GetConfigNotFound

type GetConfigNotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

GetConfigNotFound handles this case with default header values.

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

func NewGetConfigNotFound

func NewGetConfigNotFound() *GetConfigNotFound

NewGetConfigNotFound creates a GetConfigNotFound with default headers values

func (*GetConfigNotFound) Error

func (o *GetConfigNotFound) Error() string

func (*GetConfigNotFound) GetPayload

func (*GetConfigNotFound) ToJSONString

func (o *GetConfigNotFound) ToJSONString() string

type GetConfigOK

type GetConfigOK struct {
	Payload *basicclientmodels.ConfigInfo
}

GetConfigOK handles this case with default header values.

Successful operation

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates a GetConfigOK with default headers values

func (*GetConfigOK) Error

func (o *GetConfigOK) Error() string

func (*GetConfigOK) GetPayload

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

func (*GetConfigOK) ToJSONString

func (o *GetConfigOK) ToJSONString() string

type GetConfigParams

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewGetConfigParams

func NewGetConfigParams() *GetConfigParams

NewGetConfigParams creates a new GetConfigParams object with the default values initialized.

func NewGetConfigParamsWithContext

func NewGetConfigParamsWithContext(ctx context.Context) *GetConfigParams

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

func NewGetConfigParamsWithHTTPClient

func NewGetConfigParamsWithHTTPClient(client *http.Client) *GetConfigParams

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

func NewGetConfigParamsWithTimeout

func NewGetConfigParamsWithTimeout(timeout time.Duration) *GetConfigParams

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

func (*GetConfigParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get config params

func (*GetConfigParams) SetConfigKey

func (o *GetConfigParams) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the get config params

func (*GetConfigParams) SetContext

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

SetContext adds the context to the get config params

func (*GetConfigParams) SetFlightId

func (o *GetConfigParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get config params

func (*GetConfigParams) SetNamespace

func (o *GetConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get config params

func (*GetConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get config params

func (*GetConfigParams) WithConfigKey

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

WithConfigKey adds the configKey to the get config params

func (*GetConfigParams) WithContext

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

WithContext adds the context to the get config params

func (*GetConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) WithNamespace

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

WithNamespace adds the namespace to the get config params

func (*GetConfigParams) WithTimeout

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

WithTimeout adds the timeout to the get config params

func (*GetConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConfigReader

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

GetConfigReader is a Reader for the GetConfig structure.

func (*GetConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConfigUnauthorized

type GetConfigUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

GetConfigUnauthorized 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 NewGetConfigUnauthorized

func NewGetConfigUnauthorized() *GetConfigUnauthorized

NewGetConfigUnauthorized creates a GetConfigUnauthorized with default headers values

func (*GetConfigUnauthorized) Error

func (o *GetConfigUnauthorized) Error() string

func (*GetConfigUnauthorized) GetPayload

func (*GetConfigUnauthorized) ToJSONString

func (o *GetConfigUnauthorized) ToJSONString() string

type GetPublisherConfigBadRequest

type GetPublisherConfigBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

GetPublisherConfigBadRequest 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 NewGetPublisherConfigBadRequest

func NewGetPublisherConfigBadRequest() *GetPublisherConfigBadRequest

NewGetPublisherConfigBadRequest creates a GetPublisherConfigBadRequest with default headers values

func (*GetPublisherConfigBadRequest) Error

func (*GetPublisherConfigBadRequest) GetPayload

func (*GetPublisherConfigBadRequest) ToJSONString

func (o *GetPublisherConfigBadRequest) ToJSONString() string

type GetPublisherConfigForbidden

type GetPublisherConfigForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

GetPublisherConfigForbidden 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 NewGetPublisherConfigForbidden

func NewGetPublisherConfigForbidden() *GetPublisherConfigForbidden

NewGetPublisherConfigForbidden creates a GetPublisherConfigForbidden with default headers values

func (*GetPublisherConfigForbidden) Error

func (*GetPublisherConfigForbidden) GetPayload

func (*GetPublisherConfigForbidden) ToJSONString

func (o *GetPublisherConfigForbidden) ToJSONString() string

type GetPublisherConfigNotFound

type GetPublisherConfigNotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

GetPublisherConfigNotFound handles this case with default header values.

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

func NewGetPublisherConfigNotFound

func NewGetPublisherConfigNotFound() *GetPublisherConfigNotFound

NewGetPublisherConfigNotFound creates a GetPublisherConfigNotFound with default headers values

func (*GetPublisherConfigNotFound) Error

func (*GetPublisherConfigNotFound) GetPayload

func (*GetPublisherConfigNotFound) ToJSONString

func (o *GetPublisherConfigNotFound) ToJSONString() string

type GetPublisherConfigOK

type GetPublisherConfigOK struct {
	Payload *basicclientmodels.ConfigInfo
}

GetPublisherConfigOK handles this case with default header values.

Successful operation

func NewGetPublisherConfigOK

func NewGetPublisherConfigOK() *GetPublisherConfigOK

NewGetPublisherConfigOK creates a GetPublisherConfigOK with default headers values

func (*GetPublisherConfigOK) Error

func (o *GetPublisherConfigOK) Error() string

func (*GetPublisherConfigOK) GetPayload

func (*GetPublisherConfigOK) ToJSONString

func (o *GetPublisherConfigOK) ToJSONString() string

type GetPublisherConfigParams

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewGetPublisherConfigParams

func NewGetPublisherConfigParams() *GetPublisherConfigParams

NewGetPublisherConfigParams creates a new GetPublisherConfigParams object with the default values initialized.

func NewGetPublisherConfigParamsWithContext

func NewGetPublisherConfigParamsWithContext(ctx context.Context) *GetPublisherConfigParams

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

func NewGetPublisherConfigParamsWithHTTPClient

func NewGetPublisherConfigParamsWithHTTPClient(client *http.Client) *GetPublisherConfigParams

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

func NewGetPublisherConfigParamsWithTimeout

func NewGetPublisherConfigParamsWithTimeout(timeout time.Duration) *GetPublisherConfigParams

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

func (*GetPublisherConfigParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get publisher config params

func (*GetPublisherConfigParams) SetConfigKey

func (o *GetPublisherConfigParams) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the get publisher config params

func (*GetPublisherConfigParams) SetContext

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

SetContext adds the context to the get publisher config params

func (*GetPublisherConfigParams) SetFlightId

func (o *GetPublisherConfigParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetPublisherConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get publisher config params

func (*GetPublisherConfigParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get publisher config params

func (*GetPublisherConfigParams) SetNamespace

func (o *GetPublisherConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get publisher config params

func (*GetPublisherConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get publisher config params

func (*GetPublisherConfigParams) WithConfigKey

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

WithConfigKey adds the configKey to the get publisher config params

func (*GetPublisherConfigParams) WithContext

WithContext adds the context to the get publisher config params

func (*GetPublisherConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get publisher config params

func (*GetPublisherConfigParams) WithNamespace

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

WithNamespace adds the namespace to the get publisher config params

func (*GetPublisherConfigParams) WithTimeout

WithTimeout adds the timeout to the get publisher config params

func (*GetPublisherConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublisherConfigReader

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

GetPublisherConfigReader is a Reader for the GetPublisherConfig structure.

func (*GetPublisherConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublisherConfigUnauthorized

type GetPublisherConfigUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

GetPublisherConfigUnauthorized 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 NewGetPublisherConfigUnauthorized

func NewGetPublisherConfigUnauthorized() *GetPublisherConfigUnauthorized

NewGetPublisherConfigUnauthorized creates a GetPublisherConfigUnauthorized with default headers values

func (*GetPublisherConfigUnauthorized) Error

func (*GetPublisherConfigUnauthorized) GetPayload

func (*GetPublisherConfigUnauthorized) ToJSONString

func (o *GetPublisherConfigUnauthorized) ToJSONString() string

type UpdateConfigBadRequest

type UpdateConfigBadRequest struct {
	Payload *basicclientmodels.ValidationErrorEntity
}

UpdateConfigBadRequest 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 NewUpdateConfigBadRequest

func NewUpdateConfigBadRequest() *UpdateConfigBadRequest

NewUpdateConfigBadRequest creates a UpdateConfigBadRequest with default headers values

func (*UpdateConfigBadRequest) Error

func (o *UpdateConfigBadRequest) Error() string

func (*UpdateConfigBadRequest) GetPayload

func (*UpdateConfigBadRequest) ToJSONString

func (o *UpdateConfigBadRequest) ToJSONString() string

type UpdateConfigForbidden

type UpdateConfigForbidden struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateConfigForbidden 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 NewUpdateConfigForbidden

func NewUpdateConfigForbidden() *UpdateConfigForbidden

NewUpdateConfigForbidden creates a UpdateConfigForbidden with default headers values

func (*UpdateConfigForbidden) Error

func (o *UpdateConfigForbidden) Error() string

func (*UpdateConfigForbidden) GetPayload

func (*UpdateConfigForbidden) ToJSONString

func (o *UpdateConfigForbidden) ToJSONString() string

type UpdateConfigNotFound

type UpdateConfigNotFound struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateConfigNotFound handles this case with default header values.

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

func NewUpdateConfigNotFound

func NewUpdateConfigNotFound() *UpdateConfigNotFound

NewUpdateConfigNotFound creates a UpdateConfigNotFound with default headers values

func (*UpdateConfigNotFound) Error

func (o *UpdateConfigNotFound) Error() string

func (*UpdateConfigNotFound) GetPayload

func (*UpdateConfigNotFound) ToJSONString

func (o *UpdateConfigNotFound) ToJSONString() string

type UpdateConfigOK

type UpdateConfigOK struct {
	Payload *basicclientmodels.ConfigInfo
}

UpdateConfigOK handles this case with default header values.

Successful operation

func NewUpdateConfigOK

func NewUpdateConfigOK() *UpdateConfigOK

NewUpdateConfigOK creates a UpdateConfigOK with default headers values

func (*UpdateConfigOK) Error

func (o *UpdateConfigOK) Error() string

func (*UpdateConfigOK) GetPayload

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

func (*UpdateConfigOK) ToJSONString

func (o *UpdateConfigOK) ToJSONString() string

type UpdateConfigParams

type UpdateConfigParams struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewUpdateConfigParams

func NewUpdateConfigParams() *UpdateConfigParams

NewUpdateConfigParams creates a new UpdateConfigParams object with the default values initialized.

func NewUpdateConfigParamsWithContext

func NewUpdateConfigParamsWithContext(ctx context.Context) *UpdateConfigParams

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

func NewUpdateConfigParamsWithHTTPClient

func NewUpdateConfigParamsWithHTTPClient(client *http.Client) *UpdateConfigParams

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

func NewUpdateConfigParamsWithTimeout

func NewUpdateConfigParamsWithTimeout(timeout time.Duration) *UpdateConfigParams

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

func (*UpdateConfigParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update config params

func (*UpdateConfigParams) SetBody

SetBody adds the body to the update config params

func (*UpdateConfigParams) SetConfigKey

func (o *UpdateConfigParams) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the update config params

func (*UpdateConfigParams) SetContext

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

SetContext adds the context to the update config params

func (*UpdateConfigParams) SetFlightId

func (o *UpdateConfigParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*UpdateConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update config params

func (*UpdateConfigParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update config params

func (*UpdateConfigParams) SetNamespace

func (o *UpdateConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update config params

func (*UpdateConfigParams) SetTimeout

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

SetTimeout adds the timeout to the update config params

func (*UpdateConfigParams) WithBody

WithBody adds the body to the update config params

func (*UpdateConfigParams) WithConfigKey

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

WithConfigKey adds the configKey to the update config params

func (*UpdateConfigParams) WithContext

WithContext adds the context to the update config params

func (*UpdateConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update config params

func (*UpdateConfigParams) WithNamespace

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

WithNamespace adds the namespace to the update config params

func (*UpdateConfigParams) WithTimeout

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

WithTimeout adds the timeout to the update config params

func (*UpdateConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateConfigReader

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

UpdateConfigReader is a Reader for the UpdateConfig structure.

func (*UpdateConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateConfigUnauthorized

type UpdateConfigUnauthorized struct {
	Payload *basicclientmodels.ErrorEntity
}

UpdateConfigUnauthorized 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 NewUpdateConfigUnauthorized

func NewUpdateConfigUnauthorized() *UpdateConfigUnauthorized

NewUpdateConfigUnauthorized creates a UpdateConfigUnauthorized with default headers values

func (*UpdateConfigUnauthorized) Error

func (o *UpdateConfigUnauthorized) Error() string

func (*UpdateConfigUnauthorized) GetPayload

func (*UpdateConfigUnauthorized) ToJSONString

func (o *UpdateConfigUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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