configure

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   GetConfigurations gets system configurations

	   This endpoint is for retrieving system configurations that only provides for admin user.
	*/
	GetConfigurations(ctx context.Context, params *GetConfigurationsParams) (*GetConfigurationsOK, error)
	/*
	   GetInternalconfig gets internal configurations

	   This endpoint is for retrieving system configurations that only provides for internal api call.
	*/
	GetInternalconfig(ctx context.Context, params *GetInternalconfigParams) (*GetInternalconfigOK, error)
	/*
	   UpdateConfigurations modifies system configurations

	   This endpoint is for modifying system configurations that only provides for admin user.
	*/
	UpdateConfigurations(ctx context.Context, params *UpdateConfigurationsParams) (*UpdateConfigurationsOK, error)
}

API is the interface of the configure client

type Client

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

Client for configure API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new configure API client.

func (*Client) GetConfigurations

func (a *Client) GetConfigurations(ctx context.Context, params *GetConfigurationsParams) (*GetConfigurationsOK, error)

GetConfigurations gets system configurations

This endpoint is for retrieving system configurations that only provides for admin user.

func (*Client) GetInternalconfig

func (a *Client) GetInternalconfig(ctx context.Context, params *GetInternalconfigParams) (*GetInternalconfigOK, error)

GetInternalconfig gets internal configurations

This endpoint is for retrieving system configurations that only provides for internal api call.

func (*Client) UpdateConfigurations

func (a *Client) UpdateConfigurations(ctx context.Context, params *UpdateConfigurationsParams) (*UpdateConfigurationsOK, error)

UpdateConfigurations modifies system configurations

This endpoint is for modifying system configurations that only provides for admin user.

type GetConfigurationsForbidden

type GetConfigurationsForbidden struct {
}

GetConfigurationsForbidden describes a response with status code 403, with default header values.

User does not have permission of admin role.

func NewGetConfigurationsForbidden

func NewGetConfigurationsForbidden() *GetConfigurationsForbidden

NewGetConfigurationsForbidden creates a GetConfigurationsForbidden with default headers values

func (*GetConfigurationsForbidden) Error

func (*GetConfigurationsForbidden) IsClientError

func (o *GetConfigurationsForbidden) IsClientError() bool

IsClientError returns true when this get configurations forbidden response has a 4xx status code

func (*GetConfigurationsForbidden) IsCode

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

IsCode returns true when this get configurations forbidden response a status code equal to that given

func (*GetConfigurationsForbidden) IsRedirect

func (o *GetConfigurationsForbidden) IsRedirect() bool

IsRedirect returns true when this get configurations forbidden response has a 3xx status code

func (*GetConfigurationsForbidden) IsServerError

func (o *GetConfigurationsForbidden) IsServerError() bool

IsServerError returns true when this get configurations forbidden response has a 5xx status code

func (*GetConfigurationsForbidden) IsSuccess

func (o *GetConfigurationsForbidden) IsSuccess() bool

IsSuccess returns true when this get configurations forbidden response has a 2xx status code

func (*GetConfigurationsForbidden) String

func (o *GetConfigurationsForbidden) String() string

type GetConfigurationsInternalServerError

type GetConfigurationsInternalServerError struct {
}

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

Unexpected internal errors.

func NewGetConfigurationsInternalServerError

func NewGetConfigurationsInternalServerError() *GetConfigurationsInternalServerError

NewGetConfigurationsInternalServerError creates a GetConfigurationsInternalServerError with default headers values

func (*GetConfigurationsInternalServerError) Error

func (*GetConfigurationsInternalServerError) IsClientError

func (o *GetConfigurationsInternalServerError) IsClientError() bool

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

func (*GetConfigurationsInternalServerError) IsCode

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

func (*GetConfigurationsInternalServerError) IsRedirect

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

func (*GetConfigurationsInternalServerError) IsServerError

func (o *GetConfigurationsInternalServerError) IsServerError() bool

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

func (*GetConfigurationsInternalServerError) IsSuccess

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

func (*GetConfigurationsInternalServerError) String

type GetConfigurationsOK

type GetConfigurationsOK struct {
	Payload *models.ConfigurationsResponse
}

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

Get system configurations successfully. The response body is a map.

func NewGetConfigurationsOK

func NewGetConfigurationsOK() *GetConfigurationsOK

NewGetConfigurationsOK creates a GetConfigurationsOK with default headers values

func (*GetConfigurationsOK) Error

func (o *GetConfigurationsOK) Error() string

func (*GetConfigurationsOK) GetPayload

func (*GetConfigurationsOK) IsClientError

func (o *GetConfigurationsOK) IsClientError() bool

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

func (*GetConfigurationsOK) IsCode

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

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

func (*GetConfigurationsOK) IsRedirect

func (o *GetConfigurationsOK) IsRedirect() bool

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

func (*GetConfigurationsOK) IsServerError

func (o *GetConfigurationsOK) IsServerError() bool

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

func (*GetConfigurationsOK) IsSuccess

func (o *GetConfigurationsOK) IsSuccess() bool

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

func (*GetConfigurationsOK) String

func (o *GetConfigurationsOK) String() string

type GetConfigurationsParams

type GetConfigurationsParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

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

GetConfigurationsParams contains all the parameters to send to the API endpoint

for the get configurations operation.

Typically these are written to a http.Request.

func NewGetConfigurationsParams

func NewGetConfigurationsParams() *GetConfigurationsParams

NewGetConfigurationsParams creates a new GetConfigurationsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetConfigurationsParamsWithContext

func NewGetConfigurationsParamsWithContext(ctx context.Context) *GetConfigurationsParams

NewGetConfigurationsParamsWithContext creates a new GetConfigurationsParams object with the ability to set a context for a request.

func NewGetConfigurationsParamsWithHTTPClient

func NewGetConfigurationsParamsWithHTTPClient(client *http.Client) *GetConfigurationsParams

NewGetConfigurationsParamsWithHTTPClient creates a new GetConfigurationsParams object with the ability to set a custom HTTPClient for a request.

func NewGetConfigurationsParamsWithTimeout

func NewGetConfigurationsParamsWithTimeout(timeout time.Duration) *GetConfigurationsParams

NewGetConfigurationsParamsWithTimeout creates a new GetConfigurationsParams object with the ability to set a timeout on a request.

func (*GetConfigurationsParams) SetContext

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

SetContext adds the context to the get configurations params

func (*GetConfigurationsParams) SetDefaults

func (o *GetConfigurationsParams) SetDefaults()

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

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

func (*GetConfigurationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get configurations params

func (*GetConfigurationsParams) SetTimeout

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

SetTimeout adds the timeout to the get configurations params

func (*GetConfigurationsParams) SetXRequestID

func (o *GetConfigurationsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get configurations params

func (*GetConfigurationsParams) WithContext

WithContext adds the context to the get configurations params

func (*GetConfigurationsParams) WithDefaults

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

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

func (*GetConfigurationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get configurations params

func (*GetConfigurationsParams) WithTimeout

WithTimeout adds the timeout to the get configurations params

func (*GetConfigurationsParams) WithXRequestID

func (o *GetConfigurationsParams) WithXRequestID(xRequestID *string) *GetConfigurationsParams

WithXRequestID adds the xRequestID to the get configurations params

func (*GetConfigurationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetConfigurationsReader

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

GetConfigurationsReader is a Reader for the GetConfigurations structure.

func (*GetConfigurationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConfigurationsUnauthorized

type GetConfigurationsUnauthorized struct {
}

GetConfigurationsUnauthorized describes a response with status code 401, with default header values.

User need to log in first.

func NewGetConfigurationsUnauthorized

func NewGetConfigurationsUnauthorized() *GetConfigurationsUnauthorized

NewGetConfigurationsUnauthorized creates a GetConfigurationsUnauthorized with default headers values

func (*GetConfigurationsUnauthorized) Error

func (*GetConfigurationsUnauthorized) IsClientError

func (o *GetConfigurationsUnauthorized) IsClientError() bool

IsClientError returns true when this get configurations unauthorized response has a 4xx status code

func (*GetConfigurationsUnauthorized) IsCode

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

IsCode returns true when this get configurations unauthorized response a status code equal to that given

func (*GetConfigurationsUnauthorized) IsRedirect

func (o *GetConfigurationsUnauthorized) IsRedirect() bool

IsRedirect returns true when this get configurations unauthorized response has a 3xx status code

func (*GetConfigurationsUnauthorized) IsServerError

func (o *GetConfigurationsUnauthorized) IsServerError() bool

IsServerError returns true when this get configurations unauthorized response has a 5xx status code

func (*GetConfigurationsUnauthorized) IsSuccess

func (o *GetConfigurationsUnauthorized) IsSuccess() bool

IsSuccess returns true when this get configurations unauthorized response has a 2xx status code

func (*GetConfigurationsUnauthorized) String

type GetInternalconfigForbidden

type GetInternalconfigForbidden struct {
}

GetInternalconfigForbidden describes a response with status code 403, with default header values.

User does not have permission of admin role.

func NewGetInternalconfigForbidden

func NewGetInternalconfigForbidden() *GetInternalconfigForbidden

NewGetInternalconfigForbidden creates a GetInternalconfigForbidden with default headers values

func (*GetInternalconfigForbidden) Error

func (*GetInternalconfigForbidden) IsClientError

func (o *GetInternalconfigForbidden) IsClientError() bool

IsClientError returns true when this get internalconfig forbidden response has a 4xx status code

func (*GetInternalconfigForbidden) IsCode

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

IsCode returns true when this get internalconfig forbidden response a status code equal to that given

func (*GetInternalconfigForbidden) IsRedirect

func (o *GetInternalconfigForbidden) IsRedirect() bool

IsRedirect returns true when this get internalconfig forbidden response has a 3xx status code

func (*GetInternalconfigForbidden) IsServerError

func (o *GetInternalconfigForbidden) IsServerError() bool

IsServerError returns true when this get internalconfig forbidden response has a 5xx status code

func (*GetInternalconfigForbidden) IsSuccess

func (o *GetInternalconfigForbidden) IsSuccess() bool

IsSuccess returns true when this get internalconfig forbidden response has a 2xx status code

func (*GetInternalconfigForbidden) String

func (o *GetInternalconfigForbidden) String() string

type GetInternalconfigInternalServerError

type GetInternalconfigInternalServerError struct {
}

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

Unexpected internal errors.

func NewGetInternalconfigInternalServerError

func NewGetInternalconfigInternalServerError() *GetInternalconfigInternalServerError

NewGetInternalconfigInternalServerError creates a GetInternalconfigInternalServerError with default headers values

func (*GetInternalconfigInternalServerError) Error

func (*GetInternalconfigInternalServerError) IsClientError

func (o *GetInternalconfigInternalServerError) IsClientError() bool

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

func (*GetInternalconfigInternalServerError) IsCode

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

func (*GetInternalconfigInternalServerError) IsRedirect

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

func (*GetInternalconfigInternalServerError) IsServerError

func (o *GetInternalconfigInternalServerError) IsServerError() bool

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

func (*GetInternalconfigInternalServerError) IsSuccess

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

func (*GetInternalconfigInternalServerError) String

type GetInternalconfigOK

type GetInternalconfigOK struct {
	Payload models.InternalConfigurationsResponse
}

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

Get system configurations successfully. The response body is a map.

func NewGetInternalconfigOK

func NewGetInternalconfigOK() *GetInternalconfigOK

NewGetInternalconfigOK creates a GetInternalconfigOK with default headers values

func (*GetInternalconfigOK) Error

func (o *GetInternalconfigOK) Error() string

func (*GetInternalconfigOK) GetPayload

func (*GetInternalconfigOK) IsClientError

func (o *GetInternalconfigOK) IsClientError() bool

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

func (*GetInternalconfigOK) IsCode

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

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

func (*GetInternalconfigOK) IsRedirect

func (o *GetInternalconfigOK) IsRedirect() bool

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

func (*GetInternalconfigOK) IsServerError

func (o *GetInternalconfigOK) IsServerError() bool

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

func (*GetInternalconfigOK) IsSuccess

func (o *GetInternalconfigOK) IsSuccess() bool

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

func (*GetInternalconfigOK) String

func (o *GetInternalconfigOK) String() string

type GetInternalconfigParams

type GetInternalconfigParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

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

GetInternalconfigParams contains all the parameters to send to the API endpoint

for the get internalconfig operation.

Typically these are written to a http.Request.

func NewGetInternalconfigParams

func NewGetInternalconfigParams() *GetInternalconfigParams

NewGetInternalconfigParams creates a new GetInternalconfigParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetInternalconfigParamsWithContext

func NewGetInternalconfigParamsWithContext(ctx context.Context) *GetInternalconfigParams

NewGetInternalconfigParamsWithContext creates a new GetInternalconfigParams object with the ability to set a context for a request.

func NewGetInternalconfigParamsWithHTTPClient

func NewGetInternalconfigParamsWithHTTPClient(client *http.Client) *GetInternalconfigParams

NewGetInternalconfigParamsWithHTTPClient creates a new GetInternalconfigParams object with the ability to set a custom HTTPClient for a request.

func NewGetInternalconfigParamsWithTimeout

func NewGetInternalconfigParamsWithTimeout(timeout time.Duration) *GetInternalconfigParams

NewGetInternalconfigParamsWithTimeout creates a new GetInternalconfigParams object with the ability to set a timeout on a request.

func (*GetInternalconfigParams) SetContext

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

SetContext adds the context to the get internalconfig params

func (*GetInternalconfigParams) SetDefaults

func (o *GetInternalconfigParams) SetDefaults()

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

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

func (*GetInternalconfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get internalconfig params

func (*GetInternalconfigParams) SetTimeout

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

SetTimeout adds the timeout to the get internalconfig params

func (*GetInternalconfigParams) SetXRequestID

func (o *GetInternalconfigParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get internalconfig params

func (*GetInternalconfigParams) WithContext

WithContext adds the context to the get internalconfig params

func (*GetInternalconfigParams) WithDefaults

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

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

func (*GetInternalconfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get internalconfig params

func (*GetInternalconfigParams) WithTimeout

WithTimeout adds the timeout to the get internalconfig params

func (*GetInternalconfigParams) WithXRequestID

func (o *GetInternalconfigParams) WithXRequestID(xRequestID *string) *GetInternalconfigParams

WithXRequestID adds the xRequestID to the get internalconfig params

func (*GetInternalconfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInternalconfigReader

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

GetInternalconfigReader is a Reader for the GetInternalconfig structure.

func (*GetInternalconfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInternalconfigUnauthorized

type GetInternalconfigUnauthorized struct {
}

GetInternalconfigUnauthorized describes a response with status code 401, with default header values.

User need to log in first.

func NewGetInternalconfigUnauthorized

func NewGetInternalconfigUnauthorized() *GetInternalconfigUnauthorized

NewGetInternalconfigUnauthorized creates a GetInternalconfigUnauthorized with default headers values

func (*GetInternalconfigUnauthorized) Error

func (*GetInternalconfigUnauthorized) IsClientError

func (o *GetInternalconfigUnauthorized) IsClientError() bool

IsClientError returns true when this get internalconfig unauthorized response has a 4xx status code

func (*GetInternalconfigUnauthorized) IsCode

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

IsCode returns true when this get internalconfig unauthorized response a status code equal to that given

func (*GetInternalconfigUnauthorized) IsRedirect

func (o *GetInternalconfigUnauthorized) IsRedirect() bool

IsRedirect returns true when this get internalconfig unauthorized response has a 3xx status code

func (*GetInternalconfigUnauthorized) IsServerError

func (o *GetInternalconfigUnauthorized) IsServerError() bool

IsServerError returns true when this get internalconfig unauthorized response has a 5xx status code

func (*GetInternalconfigUnauthorized) IsSuccess

func (o *GetInternalconfigUnauthorized) IsSuccess() bool

IsSuccess returns true when this get internalconfig unauthorized response has a 2xx status code

func (*GetInternalconfigUnauthorized) String

type UpdateConfigurationsForbidden

type UpdateConfigurationsForbidden struct {
}

UpdateConfigurationsForbidden describes a response with status code 403, with default header values.

User does not have permission of admin role.

func NewUpdateConfigurationsForbidden

func NewUpdateConfigurationsForbidden() *UpdateConfigurationsForbidden

NewUpdateConfigurationsForbidden creates a UpdateConfigurationsForbidden with default headers values

func (*UpdateConfigurationsForbidden) Error

func (*UpdateConfigurationsForbidden) IsClientError

func (o *UpdateConfigurationsForbidden) IsClientError() bool

IsClientError returns true when this update configurations forbidden response has a 4xx status code

func (*UpdateConfigurationsForbidden) IsCode

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

IsCode returns true when this update configurations forbidden response a status code equal to that given

func (*UpdateConfigurationsForbidden) IsRedirect

func (o *UpdateConfigurationsForbidden) IsRedirect() bool

IsRedirect returns true when this update configurations forbidden response has a 3xx status code

func (*UpdateConfigurationsForbidden) IsServerError

func (o *UpdateConfigurationsForbidden) IsServerError() bool

IsServerError returns true when this update configurations forbidden response has a 5xx status code

func (*UpdateConfigurationsForbidden) IsSuccess

func (o *UpdateConfigurationsForbidden) IsSuccess() bool

IsSuccess returns true when this update configurations forbidden response has a 2xx status code

func (*UpdateConfigurationsForbidden) String

type UpdateConfigurationsInternalServerError

type UpdateConfigurationsInternalServerError struct {
}

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

Unexpected internal errors.

func NewUpdateConfigurationsInternalServerError

func NewUpdateConfigurationsInternalServerError() *UpdateConfigurationsInternalServerError

NewUpdateConfigurationsInternalServerError creates a UpdateConfigurationsInternalServerError with default headers values

func (*UpdateConfigurationsInternalServerError) Error

func (*UpdateConfigurationsInternalServerError) IsClientError

func (o *UpdateConfigurationsInternalServerError) IsClientError() bool

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

func (*UpdateConfigurationsInternalServerError) IsCode

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

func (*UpdateConfigurationsInternalServerError) IsRedirect

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

func (*UpdateConfigurationsInternalServerError) IsServerError

func (o *UpdateConfigurationsInternalServerError) IsServerError() bool

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

func (*UpdateConfigurationsInternalServerError) IsSuccess

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

func (*UpdateConfigurationsInternalServerError) String

type UpdateConfigurationsOK

type UpdateConfigurationsOK struct {
}

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

Modify system configurations successfully.

func NewUpdateConfigurationsOK

func NewUpdateConfigurationsOK() *UpdateConfigurationsOK

NewUpdateConfigurationsOK creates a UpdateConfigurationsOK with default headers values

func (*UpdateConfigurationsOK) Error

func (o *UpdateConfigurationsOK) Error() string

func (*UpdateConfigurationsOK) IsClientError

func (o *UpdateConfigurationsOK) IsClientError() bool

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

func (*UpdateConfigurationsOK) IsCode

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

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

func (*UpdateConfigurationsOK) IsRedirect

func (o *UpdateConfigurationsOK) IsRedirect() bool

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

func (*UpdateConfigurationsOK) IsServerError

func (o *UpdateConfigurationsOK) IsServerError() bool

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

func (*UpdateConfigurationsOK) IsSuccess

func (o *UpdateConfigurationsOK) IsSuccess() bool

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

func (*UpdateConfigurationsOK) String

func (o *UpdateConfigurationsOK) String() string

type UpdateConfigurationsParams

type UpdateConfigurationsParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Configurations.

	   The configuration map can contain a subset of the attributes of the schema, which are to be updated.
	*/
	Configurations *models.Configurations

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

UpdateConfigurationsParams contains all the parameters to send to the API endpoint

for the update configurations operation.

Typically these are written to a http.Request.

func NewUpdateConfigurationsParams

func NewUpdateConfigurationsParams() *UpdateConfigurationsParams

NewUpdateConfigurationsParams creates a new UpdateConfigurationsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateConfigurationsParamsWithContext

func NewUpdateConfigurationsParamsWithContext(ctx context.Context) *UpdateConfigurationsParams

NewUpdateConfigurationsParamsWithContext creates a new UpdateConfigurationsParams object with the ability to set a context for a request.

func NewUpdateConfigurationsParamsWithHTTPClient

func NewUpdateConfigurationsParamsWithHTTPClient(client *http.Client) *UpdateConfigurationsParams

NewUpdateConfigurationsParamsWithHTTPClient creates a new UpdateConfigurationsParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateConfigurationsParamsWithTimeout

func NewUpdateConfigurationsParamsWithTimeout(timeout time.Duration) *UpdateConfigurationsParams

NewUpdateConfigurationsParamsWithTimeout creates a new UpdateConfigurationsParams object with the ability to set a timeout on a request.

func (*UpdateConfigurationsParams) SetConfigurations

func (o *UpdateConfigurationsParams) SetConfigurations(configurations *models.Configurations)

SetConfigurations adds the configurations to the update configurations params

func (*UpdateConfigurationsParams) SetContext

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

SetContext adds the context to the update configurations params

func (*UpdateConfigurationsParams) SetDefaults

func (o *UpdateConfigurationsParams) SetDefaults()

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

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

func (*UpdateConfigurationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update configurations params

func (*UpdateConfigurationsParams) SetTimeout

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

SetTimeout adds the timeout to the update configurations params

func (*UpdateConfigurationsParams) SetXRequestID

func (o *UpdateConfigurationsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update configurations params

func (*UpdateConfigurationsParams) WithConfigurations

func (o *UpdateConfigurationsParams) WithConfigurations(configurations *models.Configurations) *UpdateConfigurationsParams

WithConfigurations adds the configurations to the update configurations params

func (*UpdateConfigurationsParams) WithContext

WithContext adds the context to the update configurations params

func (*UpdateConfigurationsParams) WithDefaults

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

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

func (*UpdateConfigurationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update configurations params

func (*UpdateConfigurationsParams) WithTimeout

WithTimeout adds the timeout to the update configurations params

func (*UpdateConfigurationsParams) WithXRequestID

func (o *UpdateConfigurationsParams) WithXRequestID(xRequestID *string) *UpdateConfigurationsParams

WithXRequestID adds the xRequestID to the update configurations params

func (*UpdateConfigurationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateConfigurationsReader

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

UpdateConfigurationsReader is a Reader for the UpdateConfigurations structure.

func (*UpdateConfigurationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateConfigurationsUnauthorized

type UpdateConfigurationsUnauthorized struct {
}

UpdateConfigurationsUnauthorized describes a response with status code 401, with default header values.

User need to log in first.

func NewUpdateConfigurationsUnauthorized

func NewUpdateConfigurationsUnauthorized() *UpdateConfigurationsUnauthorized

NewUpdateConfigurationsUnauthorized creates a UpdateConfigurationsUnauthorized with default headers values

func (*UpdateConfigurationsUnauthorized) Error

func (*UpdateConfigurationsUnauthorized) IsClientError

func (o *UpdateConfigurationsUnauthorized) IsClientError() bool

IsClientError returns true when this update configurations unauthorized response has a 4xx status code

func (*UpdateConfigurationsUnauthorized) IsCode

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

IsCode returns true when this update configurations unauthorized response a status code equal to that given

func (*UpdateConfigurationsUnauthorized) IsRedirect

func (o *UpdateConfigurationsUnauthorized) IsRedirect() bool

IsRedirect returns true when this update configurations unauthorized response has a 3xx status code

func (*UpdateConfigurationsUnauthorized) IsServerError

func (o *UpdateConfigurationsUnauthorized) IsServerError() bool

IsServerError returns true when this update configurations unauthorized response has a 5xx status code

func (*UpdateConfigurationsUnauthorized) IsSuccess

func (o *UpdateConfigurationsUnauthorized) IsSuccess() bool

IsSuccess returns true when this update configurations unauthorized response has a 2xx status code

func (*UpdateConfigurationsUnauthorized) String

Jump to

Keyboard shortcuts

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