config

package
v0.1.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminGetConfigValueV3BadRequest

type AdminGetConfigValueV3BadRequest struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetConfigValueV3BadRequest 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 NewAdminGetConfigValueV3BadRequest

func NewAdminGetConfigValueV3BadRequest() *AdminGetConfigValueV3BadRequest

NewAdminGetConfigValueV3BadRequest creates a AdminGetConfigValueV3BadRequest with default headers values

func (*AdminGetConfigValueV3BadRequest) Error

func (*AdminGetConfigValueV3BadRequest) GetPayload

func (*AdminGetConfigValueV3BadRequest) ToJSONString

func (o *AdminGetConfigValueV3BadRequest) ToJSONString() string

type AdminGetConfigValueV3InternalServerError

type AdminGetConfigValueV3InternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

AdminGetConfigValueV3InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>

func NewAdminGetConfigValueV3InternalServerError

func NewAdminGetConfigValueV3InternalServerError() *AdminGetConfigValueV3InternalServerError

NewAdminGetConfigValueV3InternalServerError creates a AdminGetConfigValueV3InternalServerError with default headers values

func (*AdminGetConfigValueV3InternalServerError) Error

func (*AdminGetConfigValueV3InternalServerError) GetPayload

func (*AdminGetConfigValueV3InternalServerError) ToJSONString

type AdminGetConfigValueV3OK

type AdminGetConfigValueV3OK struct {
	Payload *iamclientmodels.ModelConfigValueResponseV3
}

AdminGetConfigValueV3OK handles this case with default header values.

OK

func NewAdminGetConfigValueV3OK

func NewAdminGetConfigValueV3OK() *AdminGetConfigValueV3OK

NewAdminGetConfigValueV3OK creates a AdminGetConfigValueV3OK with default headers values

func (*AdminGetConfigValueV3OK) Error

func (o *AdminGetConfigValueV3OK) Error() string

func (*AdminGetConfigValueV3OK) GetPayload

func (*AdminGetConfigValueV3OK) ToJSONString

func (o *AdminGetConfigValueV3OK) ToJSONString() string

type AdminGetConfigValueV3Params

type AdminGetConfigValueV3Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ConfigKey
	  config key

	*/
	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
}

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

func NewAdminGetConfigValueV3Params

func NewAdminGetConfigValueV3Params() *AdminGetConfigValueV3Params

NewAdminGetConfigValueV3Params creates a new AdminGetConfigValueV3Params object with the default values initialized.

func NewAdminGetConfigValueV3ParamsWithContext

func NewAdminGetConfigValueV3ParamsWithContext(ctx context.Context) *AdminGetConfigValueV3Params

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

func NewAdminGetConfigValueV3ParamsWithHTTPClient

func NewAdminGetConfigValueV3ParamsWithHTTPClient(client *http.Client) *AdminGetConfigValueV3Params

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

func NewAdminGetConfigValueV3ParamsWithTimeout

func NewAdminGetConfigValueV3ParamsWithTimeout(timeout time.Duration) *AdminGetConfigValueV3Params

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

func (*AdminGetConfigValueV3Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) SetConfigKey

func (o *AdminGetConfigValueV3Params) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) SetContext

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

SetContext adds the context to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) SetFlightId

func (o *AdminGetConfigValueV3Params) SetFlightId(flightId string)

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

func (*AdminGetConfigValueV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) SetNamespace

func (o *AdminGetConfigValueV3Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) SetTimeout

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

SetTimeout adds the timeout to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) WithConfigKey

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

WithConfigKey adds the configKey to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) WithContext

WithContext adds the context to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) WithNamespace

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

WithNamespace adds the namespace to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) WithTimeout

WithTimeout adds the timeout to the admin get config value v3 params

func (*AdminGetConfigValueV3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetConfigValueV3Reader

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

AdminGetConfigValueV3Reader is a Reader for the AdminGetConfigValueV3 structure.

func (*AdminGetConfigValueV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for config API

func (*Client) AdminGetConfigValueV3Short

func (a *Client) AdminGetConfigValueV3Short(params *AdminGetConfigValueV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetConfigValueV3OK, error)

AdminGetConfigValueV3Short get config value This endpoint return the value of config key. The namespace should be publisher namespace or studio namespace.

**Supported config key:** * uniqueDisplayNameEnabled * usernameDisabled * mandatoryEmailVerificationEnabled

func (*Client) PublicGetConfigValueV3Short

func (a *Client) PublicGetConfigValueV3Short(params *PublicGetConfigValueV3Params, authInfo runtime.ClientAuthInfoWriter) (*PublicGetConfigValueV3OK, error)

PublicGetConfigValueV3Short get config value This endpoint return the value of config key. The namespace should be publisher namespace or studio namespace. Note: this endpoint does not need any authorization.

**Supported config key:** * uniqueDisplayNameEnabled * usernameDisabled * mandatoryEmailVerificationEnabled

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminGetConfigValueV3Short(params *AdminGetConfigValueV3Params, authInfo runtime.ClientAuthInfoWriter) (*AdminGetConfigValueV3OK, error)
	PublicGetConfigValueV3Short(params *PublicGetConfigValueV3Params, authInfo runtime.ClientAuthInfoWriter) (*PublicGetConfigValueV3OK, 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 PublicGetConfigValueV3BadRequest

type PublicGetConfigValueV3BadRequest struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicGetConfigValueV3BadRequest 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 NewPublicGetConfigValueV3BadRequest

func NewPublicGetConfigValueV3BadRequest() *PublicGetConfigValueV3BadRequest

NewPublicGetConfigValueV3BadRequest creates a PublicGetConfigValueV3BadRequest with default headers values

func (*PublicGetConfigValueV3BadRequest) Error

func (*PublicGetConfigValueV3BadRequest) GetPayload

func (*PublicGetConfigValueV3BadRequest) ToJSONString

func (o *PublicGetConfigValueV3BadRequest) ToJSONString() string

type PublicGetConfigValueV3InternalServerError

type PublicGetConfigValueV3InternalServerError struct {
	Payload *iamclientmodels.RestErrorResponse
}

PublicGetConfigValueV3InternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>

func NewPublicGetConfigValueV3InternalServerError

func NewPublicGetConfigValueV3InternalServerError() *PublicGetConfigValueV3InternalServerError

NewPublicGetConfigValueV3InternalServerError creates a PublicGetConfigValueV3InternalServerError with default headers values

func (*PublicGetConfigValueV3InternalServerError) Error

func (*PublicGetConfigValueV3InternalServerError) GetPayload

func (*PublicGetConfigValueV3InternalServerError) ToJSONString

type PublicGetConfigValueV3OK

type PublicGetConfigValueV3OK struct {
	Payload *iamclientmodels.ModelConfigValueResponseV3
}

PublicGetConfigValueV3OK handles this case with default header values.

OK

func NewPublicGetConfigValueV3OK

func NewPublicGetConfigValueV3OK() *PublicGetConfigValueV3OK

NewPublicGetConfigValueV3OK creates a PublicGetConfigValueV3OK with default headers values

func (*PublicGetConfigValueV3OK) Error

func (o *PublicGetConfigValueV3OK) Error() string

func (*PublicGetConfigValueV3OK) GetPayload

func (*PublicGetConfigValueV3OK) ToJSONString

func (o *PublicGetConfigValueV3OK) ToJSONString() string

type PublicGetConfigValueV3Params

type PublicGetConfigValueV3Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*ConfigKey
	  config key

	*/
	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
}

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

func NewPublicGetConfigValueV3Params

func NewPublicGetConfigValueV3Params() *PublicGetConfigValueV3Params

NewPublicGetConfigValueV3Params creates a new PublicGetConfigValueV3Params object with the default values initialized.

func NewPublicGetConfigValueV3ParamsWithContext

func NewPublicGetConfigValueV3ParamsWithContext(ctx context.Context) *PublicGetConfigValueV3Params

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

func NewPublicGetConfigValueV3ParamsWithHTTPClient

func NewPublicGetConfigValueV3ParamsWithHTTPClient(client *http.Client) *PublicGetConfigValueV3Params

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

func NewPublicGetConfigValueV3ParamsWithTimeout

func NewPublicGetConfigValueV3ParamsWithTimeout(timeout time.Duration) *PublicGetConfigValueV3Params

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

func (*PublicGetConfigValueV3Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public get config value v3 params

func (*PublicGetConfigValueV3Params) SetConfigKey

func (o *PublicGetConfigValueV3Params) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the public get config value v3 params

func (*PublicGetConfigValueV3Params) SetContext

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

SetContext adds the context to the public get config value v3 params

func (*PublicGetConfigValueV3Params) SetFlightId

func (o *PublicGetConfigValueV3Params) SetFlightId(flightId string)

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

func (*PublicGetConfigValueV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get config value v3 params

func (*PublicGetConfigValueV3Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public get config value v3 params

func (*PublicGetConfigValueV3Params) SetNamespace

func (o *PublicGetConfigValueV3Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get config value v3 params

func (*PublicGetConfigValueV3Params) SetTimeout

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

SetTimeout adds the timeout to the public get config value v3 params

func (*PublicGetConfigValueV3Params) WithConfigKey

WithConfigKey adds the configKey to the public get config value v3 params

func (*PublicGetConfigValueV3Params) WithContext

WithContext adds the context to the public get config value v3 params

func (*PublicGetConfigValueV3Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get config value v3 params

func (*PublicGetConfigValueV3Params) WithNamespace

WithNamespace adds the namespace to the public get config value v3 params

func (*PublicGetConfigValueV3Params) WithTimeout

WithTimeout adds the timeout to the public get config value v3 params

func (*PublicGetConfigValueV3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetConfigValueV3Reader

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

PublicGetConfigValueV3Reader is a Reader for the PublicGetConfigValueV3 structure.

func (*PublicGetConfigValueV3Reader) ReadResponse

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