redis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

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

Overview

Package redis provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterServiceCreateRequest

func NewClusterServiceCreateRequest(server string, body ClusterServiceCreateJSONRequestBody) (*http.Request, error)

NewClusterServiceCreateRequest calls the generic ClusterServiceCreate builder with application/json body

func NewClusterServiceCreateRequestWithBody

func NewClusterServiceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewClusterServiceCreateRequestWithBody constructs an http.Request for the ClusterServiceCreate method, with any body, and a specified content type

func NewClusterServiceDeleteRequest

func NewClusterServiceDeleteRequest(server string, clusterId string) (*http.Request, error)

NewClusterServiceDeleteRequest constructs an http.Request for the ClusterServiceDelete method

func NewClusterServiceGetRequest

func NewClusterServiceGetRequest(server string, clusterId string) (*http.Request, error)

NewClusterServiceGetRequest constructs an http.Request for the ClusterServiceGet method

func NewClusterServiceListOperationsRequest

func NewClusterServiceListOperationsRequest(server string, clusterId string, params *ClusterServiceListOperationsParams) (*http.Request, error)

NewClusterServiceListOperationsRequest constructs an http.Request for the ClusterServiceListOperations method

func NewClusterServiceListRequest

func NewClusterServiceListRequest(server string, params *ClusterServiceListParams) (*http.Request, error)

NewClusterServiceListRequest constructs an http.Request for the ClusterServiceList method

func NewClusterServiceUpdateRequest

func NewClusterServiceUpdateRequest(server string, clusterId string, body ClusterServiceUpdateJSONRequestBody) (*http.Request, error)

NewClusterServiceUpdateRequest calls the generic ClusterServiceUpdate builder with application/json body

func NewClusterServiceUpdateRequestWithBody

func NewClusterServiceUpdateRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewClusterServiceUpdateRequestWithBody constructs an http.Request for the ClusterServiceUpdate method, with any body, and a specified content type

func NewOperationServiceGetRequest

func NewOperationServiceGetRequest(server string, operationId string) (*http.Request, error)

NewOperationServiceGetRequest constructs an http.Request for the OperationServiceGet method

func NewRoleServiceListRequest

func NewRoleServiceListRequest(server string, clusterId string) (*http.Request, error)

NewRoleServiceListRequest constructs an http.Request for the RoleServiceList method

func NewSpecificationServiceListRequest

func NewSpecificationServiceListRequest(server string, params *SpecificationServiceListParams) (*http.Request, error)

NewSpecificationServiceListRequest constructs an http.Request for the SpecificationServiceList method

func NewUserServiceCreateRequest

func NewUserServiceCreateRequest(server string, clusterId string, body UserServiceCreateJSONRequestBody) (*http.Request, error)

NewUserServiceCreateRequest calls the generic UserServiceCreate builder with application/json body

func NewUserServiceCreateRequestWithBody

func NewUserServiceCreateRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)

NewUserServiceCreateRequestWithBody constructs an http.Request for the UserServiceCreate method, with any body, and a specified content type

func NewUserServiceDeleteRequest

func NewUserServiceDeleteRequest(server string, clusterId string, userName string) (*http.Request, error)

NewUserServiceDeleteRequest constructs an http.Request for the UserServiceDelete method

func NewUserServiceGetRequest

func NewUserServiceGetRequest(server string, clusterId string, name string) (*http.Request, error)

NewUserServiceGetRequest constructs an http.Request for the UserServiceGet method

func NewUserServiceListRequest

func NewUserServiceListRequest(server string, clusterId string) (*http.Request, error)

NewUserServiceListRequest constructs an http.Request for the UserServiceList method

func NewUserServiceUpdateRequest

func NewUserServiceUpdateRequest(server string, clusterId string, userName string, body UserServiceUpdateJSONRequestBody) (*http.Request, error)

NewUserServiceUpdateRequest calls the generic UserServiceUpdate builder with application/json body

func NewUserServiceUpdateRequestWithBody

func NewUserServiceUpdateRequestWithBody(server string, clusterId string, userName string, contentType string, body io.Reader) (*http.Request, error)

NewUserServiceUpdateRequestWithBody constructs an http.Request for the UserServiceUpdate method, with any body, and a specified content type

func NewVersionServiceListRequest

func NewVersionServiceListRequest(server string) (*http.Request, error)

NewVersionServiceListRequest constructs an http.Request for the VersionServiceList method

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ClusterServiceCreate

func (c *Client) ClusterServiceCreate(ctx context.Context, body ClusterServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceCreate performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request. Takes a body of the `application/json` content type.

Создание кластера.

func (*Client) ClusterServiceCreateWithBody

func (c *Client) ClusterServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceCreateWithBody performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request, with any type of body and a specified content type.

Создание кластера.

func (*Client) ClusterServiceDelete

func (c *Client) ClusterServiceDelete(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceDelete performs a DELETE /v1/clusters/{cluster_id} (the `ClusterServiceDelete` operationId) request.

Удаление кластера.

func (*Client) ClusterServiceGet

func (c *Client) ClusterServiceGet(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceGet performs a GET /v1/clusters/{cluster_id} (the `ClusterServiceGet` operationId) request.

Получение информации о кластере.

func (*Client) ClusterServiceList

func (c *Client) ClusterServiceList(ctx context.Context, params *ClusterServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceList performs a GET /v1/clusters (the `ClusterServiceList` operationId) request.

Получение списка кластеров.

func (*Client) ClusterServiceListOperations

func (c *Client) ClusterServiceListOperations(ctx context.Context, clusterId string, params *ClusterServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceListOperations performs a GET /v1/clusters/{cluster_id}/operations (the `ClusterServiceListOperations` operationId) request.

Получение списка операций, произведенных над кластером.

func (*Client) ClusterServiceUpdate

func (c *Client) ClusterServiceUpdate(ctx context.Context, clusterId string, body ClusterServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceUpdate performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request. Takes a body of the `application/json` content type.

Изменение ресурсов кластера.

func (*Client) ClusterServiceUpdateWithBody

func (c *Client) ClusterServiceUpdateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ClusterServiceUpdateWithBody performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request, with any type of body and a specified content type.

Изменение ресурсов кластера.

func (*Client) OperationServiceGet

func (c *Client) OperationServiceGet(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*http.Response, error)

OperationServiceGet performs a GET /v1/operations/{operation_id} (the `OperationServiceGet` operationId) request.

Получение информации об операции по идентификатору.

func (*Client) RoleServiceList

func (c *Client) RoleServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

RoleServiceList performs a GET /v1/clusters/{cluster_id}/roles (the `RoleServiceList` operationId) request.

Список ролей кластера.

func (*Client) SpecificationServiceList

func (c *Client) SpecificationServiceList(ctx context.Context, params *SpecificationServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SpecificationServiceList performs a GET /v1/specifications (the `SpecificationServiceList` operationId) request.

Получение списка спецификаций без пагинации.

func (*Client) UserServiceCreate

func (c *Client) UserServiceCreate(ctx context.Context, clusterId string, body UserServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UserServiceCreate performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request. Takes a body of the `application/json` content type.

Создание пользователя.

func (*Client) UserServiceCreateWithBody

func (c *Client) UserServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UserServiceCreateWithBody performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request, with any type of body and a specified content type.

Создание пользователя.

func (*Client) UserServiceDelete

func (c *Client) UserServiceDelete(ctx context.Context, clusterId string, userName string, reqEditors ...RequestEditorFn) (*http.Response, error)

UserServiceDelete performs a DELETE /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceDelete` operationId) request.

Удаление пользователя в кластере.

func (*Client) UserServiceGet

func (c *Client) UserServiceGet(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

UserServiceGet performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.

Получение информации о пользователе.

func (*Client) UserServiceList

func (c *Client) UserServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

UserServiceList performs a GET /v1/clusters/{cluster_id}/users (the `UserServiceList` operationId) request.

Список пользователей кластера.

func (*Client) UserServiceUpdate

func (c *Client) UserServiceUpdate(ctx context.Context, clusterId string, userName string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UserServiceUpdate performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request. Takes a body of the `application/json` content type.

Изменение пользователя кластера.

func (*Client) UserServiceUpdateWithBody

func (c *Client) UserServiceUpdateWithBody(ctx context.Context, clusterId string, userName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UserServiceUpdateWithBody performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request, with any type of body and a specified content type.

Изменение пользователя кластера.

func (*Client) VersionServiceList

func (c *Client) VersionServiceList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

VersionServiceList performs a GET /v1/versions (the `VersionServiceList` operationId) request.

Получение списка версий без пагинации.

type ClientInterface

type ClientInterface interface {

	// ClusterServiceList performs a GET /v1/clusters (the `ClusterServiceList` operationId) request.
	//
	// Получение списка кластеров.
	ClusterServiceList(ctx context.Context, params *ClusterServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClusterServiceCreateWithBody performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Создание кластера.
	ClusterServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClusterServiceCreate performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Создание кластера.
	ClusterServiceCreate(ctx context.Context, body ClusterServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClusterServiceDelete performs a DELETE /v1/clusters/{cluster_id} (the `ClusterServiceDelete` operationId) request.
	//
	// Удаление кластера.
	ClusterServiceDelete(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClusterServiceGet performs a GET /v1/clusters/{cluster_id} (the `ClusterServiceGet` operationId) request.
	//
	// Получение информации о кластере.
	ClusterServiceGet(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClusterServiceUpdateWithBody performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Изменение ресурсов кластера.
	ClusterServiceUpdateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClusterServiceUpdate performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Изменение ресурсов кластера.
	ClusterServiceUpdate(ctx context.Context, clusterId string, body ClusterServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClusterServiceListOperations performs a GET /v1/clusters/{cluster_id}/operations (the `ClusterServiceListOperations` operationId) request.
	//
	// Получение списка операций, произведенных над кластером.
	ClusterServiceListOperations(ctx context.Context, clusterId string, params *ClusterServiceListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RoleServiceList performs a GET /v1/clusters/{cluster_id}/roles (the `RoleServiceList` operationId) request.
	//
	// Список ролей кластера.
	RoleServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceList performs a GET /v1/clusters/{cluster_id}/users (the `UserServiceList` operationId) request.
	//
	// Список пользователей кластера.
	UserServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceCreateWithBody performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Создание пользователя.
	UserServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceCreate performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Создание пользователя.
	UserServiceCreate(ctx context.Context, clusterId string, body UserServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceGet performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.
	//
	// Получение информации о пользователе.
	UserServiceGet(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceDelete performs a DELETE /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceDelete` operationId) request.
	//
	// Удаление пользователя в кластере.
	UserServiceDelete(ctx context.Context, clusterId string, userName string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceUpdateWithBody performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Изменение пользователя кластера.
	UserServiceUpdateWithBody(ctx context.Context, clusterId string, userName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceUpdate performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Изменение пользователя кластера.
	UserServiceUpdate(ctx context.Context, clusterId string, userName string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OperationServiceGet performs a GET /v1/operations/{operation_id} (the `OperationServiceGet` operationId) request.
	//
	// Получение информации об операции по идентификатору.
	OperationServiceGet(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SpecificationServiceList performs a GET /v1/specifications (the `SpecificationServiceList` operationId) request.
	//
	// Получение списка спецификаций без пагинации.
	SpecificationServiceList(ctx context.Context, params *SpecificationServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VersionServiceList performs a GET /v1/versions (the `VersionServiceList` operationId) request.
	//
	// Получение списка версий без пагинации.
	VersionServiceList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ClusterServiceCreateWithBodyWithResponse

func (c *ClientWithResponses) ClusterServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClusterServiceCreateResponse, error)

ClusterServiceCreateWithBodyWithResponse performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request, with any type of body and a specified content type.

Создание кластера.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ClusterServiceCreateWithResponse

func (c *ClientWithResponses) ClusterServiceCreateWithResponse(ctx context.Context, body ClusterServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ClusterServiceCreateResponse, error)

ClusterServiceCreateWithResponse performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Создание кластера.

func (*ClientWithResponses) ClusterServiceDeleteWithResponse

func (c *ClientWithResponses) ClusterServiceDeleteWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceDeleteResponse, error)

ClusterServiceDeleteWithResponse performs a DELETE /v1/clusters/{cluster_id} (the `ClusterServiceDelete` operationId) request.

Удаление кластера.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ClusterServiceGetWithResponse

func (c *ClientWithResponses) ClusterServiceGetWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceGetResponse, error)

ClusterServiceGetWithResponse performs a GET /v1/clusters/{cluster_id} (the `ClusterServiceGet` operationId) request.

Получение информации о кластере.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ClusterServiceListOperationsWithResponse

func (c *ClientWithResponses) ClusterServiceListOperationsWithResponse(ctx context.Context, clusterId string, params *ClusterServiceListOperationsParams, reqEditors ...RequestEditorFn) (*ClusterServiceListOperationsResponse, error)

ClusterServiceListOperationsWithResponse performs a GET /v1/clusters/{cluster_id}/operations (the `ClusterServiceListOperations` operationId) request.

Получение списка операций, произведенных над кластером.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ClusterServiceListWithResponse

func (c *ClientWithResponses) ClusterServiceListWithResponse(ctx context.Context, params *ClusterServiceListParams, reqEditors ...RequestEditorFn) (*ClusterServiceListResponse, error)

ClusterServiceListWithResponse performs a GET /v1/clusters (the `ClusterServiceList` operationId) request.

Получение списка кластеров.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ClusterServiceUpdateWithBodyWithResponse

func (c *ClientWithResponses) ClusterServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClusterServiceUpdateResponse, error)

ClusterServiceUpdateWithBodyWithResponse performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request, with any type of body and a specified content type.

Изменение ресурсов кластера.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) ClusterServiceUpdateWithResponse

func (c *ClientWithResponses) ClusterServiceUpdateWithResponse(ctx context.Context, clusterId string, body ClusterServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ClusterServiceUpdateResponse, error)

ClusterServiceUpdateWithResponse performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Изменение ресурсов кластера.

func (*ClientWithResponses) OperationServiceGetWithResponse

func (c *ClientWithResponses) OperationServiceGetWithResponse(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*OperationServiceGetResponse, error)

OperationServiceGetWithResponse performs a GET /v1/operations/{operation_id} (the `OperationServiceGet` operationId) request.

Получение информации об операции по идентификатору.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) RoleServiceListWithResponse

func (c *ClientWithResponses) RoleServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*RoleServiceListResponse, error)

RoleServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/roles (the `RoleServiceList` operationId) request.

Список ролей кластера.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) SpecificationServiceListWithResponse

func (c *ClientWithResponses) SpecificationServiceListWithResponse(ctx context.Context, params *SpecificationServiceListParams, reqEditors ...RequestEditorFn) (*SpecificationServiceListResponse, error)

SpecificationServiceListWithResponse performs a GET /v1/specifications (the `SpecificationServiceList` operationId) request.

Получение списка спецификаций без пагинации.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UserServiceCreateWithBodyWithResponse

func (c *ClientWithResponses) UserServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceCreateResponse, error)

UserServiceCreateWithBodyWithResponse performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request, with any type of body and a specified content type.

Создание пользователя.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UserServiceCreateWithResponse

func (c *ClientWithResponses) UserServiceCreateWithResponse(ctx context.Context, clusterId string, body UserServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceCreateResponse, error)

UserServiceCreateWithResponse performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Создание пользователя.

func (*ClientWithResponses) UserServiceDeleteWithResponse

func (c *ClientWithResponses) UserServiceDeleteWithResponse(ctx context.Context, clusterId string, userName string, reqEditors ...RequestEditorFn) (*UserServiceDeleteResponse, error)

UserServiceDeleteWithResponse performs a DELETE /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceDelete` operationId) request.

Удаление пользователя в кластере.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UserServiceGetWithResponse

func (c *ClientWithResponses) UserServiceGetWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*UserServiceGetResponse, error)

UserServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.

Получение информации о пользователе.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UserServiceListWithResponse

func (c *ClientWithResponses) UserServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*UserServiceListResponse, error)

UserServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/users (the `UserServiceList` operationId) request.

Список пользователей кластера.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UserServiceUpdateWithBodyWithResponse

func (c *ClientWithResponses) UserServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, userName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)

UserServiceUpdateWithBodyWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request, with any type of body and a specified content type.

Изменение пользователя кластера.

Returns a wrapper object for the known response body format(s).

func (*ClientWithResponses) UserServiceUpdateWithResponse

func (c *ClientWithResponses) UserServiceUpdateWithResponse(ctx context.Context, clusterId string, userName string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)

UserServiceUpdateWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Изменение пользователя кластера.

func (*ClientWithResponses) VersionServiceListWithResponse

func (c *ClientWithResponses) VersionServiceListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*VersionServiceListResponse, error)

VersionServiceListWithResponse performs a GET /v1/versions (the `VersionServiceList` operationId) request.

Получение списка версий без пагинации.

Returns a wrapper object for the known response body format(s).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ClusterServiceListWithResponse performs a GET /v1/clusters (the `ClusterServiceList` operationId) request.
	//
	// Получение списка кластеров.
	//
	// Returns a wrapper object for the known response body format(s).
	ClusterServiceListWithResponse(ctx context.Context, params *ClusterServiceListParams, reqEditors ...RequestEditorFn) (*ClusterServiceListResponse, error)

	// ClusterServiceCreateWithBodyWithResponse performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Создание кластера.
	//
	// Returns a wrapper object for the known response body format(s).
	ClusterServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClusterServiceCreateResponse, error)

	// ClusterServiceCreateWithResponse performs a POST /v1/clusters (the `ClusterServiceCreate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Создание кластера.
	ClusterServiceCreateWithResponse(ctx context.Context, body ClusterServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*ClusterServiceCreateResponse, error)

	// ClusterServiceDeleteWithResponse performs a DELETE /v1/clusters/{cluster_id} (the `ClusterServiceDelete` operationId) request.
	//
	// Удаление кластера.
	//
	// Returns a wrapper object for the known response body format(s).
	ClusterServiceDeleteWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceDeleteResponse, error)

	// ClusterServiceGetWithResponse performs a GET /v1/clusters/{cluster_id} (the `ClusterServiceGet` operationId) request.
	//
	// Получение информации о кластере.
	//
	// Returns a wrapper object for the known response body format(s).
	ClusterServiceGetWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceGetResponse, error)

	// ClusterServiceUpdateWithBodyWithResponse performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Изменение ресурсов кластера.
	//
	// Returns a wrapper object for the known response body format(s).
	ClusterServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClusterServiceUpdateResponse, error)

	// ClusterServiceUpdateWithResponse performs a PATCH /v1/clusters/{cluster_id} (the `ClusterServiceUpdate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Изменение ресурсов кластера.
	ClusterServiceUpdateWithResponse(ctx context.Context, clusterId string, body ClusterServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ClusterServiceUpdateResponse, error)

	// ClusterServiceListOperationsWithResponse performs a GET /v1/clusters/{cluster_id}/operations (the `ClusterServiceListOperations` operationId) request.
	//
	// Получение списка операций, произведенных над кластером.
	//
	// Returns a wrapper object for the known response body format(s).
	ClusterServiceListOperationsWithResponse(ctx context.Context, clusterId string, params *ClusterServiceListOperationsParams, reqEditors ...RequestEditorFn) (*ClusterServiceListOperationsResponse, error)

	// RoleServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/roles (the `RoleServiceList` operationId) request.
	//
	// Список ролей кластера.
	//
	// Returns a wrapper object for the known response body format(s).
	RoleServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*RoleServiceListResponse, error)

	// UserServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/users (the `UserServiceList` operationId) request.
	//
	// Список пользователей кластера.
	//
	// Returns a wrapper object for the known response body format(s).
	UserServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*UserServiceListResponse, error)

	// UserServiceCreateWithBodyWithResponse performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Создание пользователя.
	//
	// Returns a wrapper object for the known response body format(s).
	UserServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceCreateResponse, error)

	// UserServiceCreateWithResponse performs a POST /v1/clusters/{cluster_id}/users (the `UserServiceCreate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Создание пользователя.
	UserServiceCreateWithResponse(ctx context.Context, clusterId string, body UserServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceCreateResponse, error)

	// UserServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.
	//
	// Получение информации о пользователе.
	//
	// Returns a wrapper object for the known response body format(s).
	UserServiceGetWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*UserServiceGetResponse, error)

	// UserServiceDeleteWithResponse performs a DELETE /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceDelete` operationId) request.
	//
	// Удаление пользователя в кластере.
	//
	// Returns a wrapper object for the known response body format(s).
	UserServiceDeleteWithResponse(ctx context.Context, clusterId string, userName string, reqEditors ...RequestEditorFn) (*UserServiceDeleteResponse, error)

	// UserServiceUpdateWithBodyWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Изменение пользователя кластера.
	//
	// Returns a wrapper object for the known response body format(s).
	UserServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, userName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)

	// UserServiceUpdateWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{user_name} (the `UserServiceUpdate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Изменение пользователя кластера.
	UserServiceUpdateWithResponse(ctx context.Context, clusterId string, userName string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)

	// OperationServiceGetWithResponse performs a GET /v1/operations/{operation_id} (the `OperationServiceGet` operationId) request.
	//
	// Получение информации об операции по идентификатору.
	//
	// Returns a wrapper object for the known response body format(s).
	OperationServiceGetWithResponse(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*OperationServiceGetResponse, error)

	// SpecificationServiceListWithResponse performs a GET /v1/specifications (the `SpecificationServiceList` operationId) request.
	//
	// Получение списка спецификаций без пагинации.
	//
	// Returns a wrapper object for the known response body format(s).
	SpecificationServiceListWithResponse(ctx context.Context, params *SpecificationServiceListParams, reqEditors ...RequestEditorFn) (*SpecificationServiceListResponse, error)

	// VersionServiceListWithResponse performs a GET /v1/versions (the `VersionServiceList` operationId) request.
	//
	// Получение списка версий без пагинации.
	//
	// Returns a wrapper object for the known response body format(s).
	VersionServiceListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*VersionServiceListResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CloudruDbaasOperationOperation

type CloudruDbaasOperationOperation struct {
	// CreatedAt Время создания операции.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Description Описание операции. От 0 до 255 символов.
	Description *string `json:"description,omitempty"`

	// Done Флаг завершенности операции:
	//  - `true` — операция завершена. Операция считается завершенной, даже если в ходе ее выполнения возникла ошибка.
	//  - `false` — операция не завершена.
	Done *bool `json:"done,omitempty"`

	// Error Результат операции в случае ошибки.
	Error *GoogleRpcStatus `json:"error,omitempty"`

	// Id Идентификатор операции.
	Id string `json:"id"`

	// ResourceId Уникальный идентификатор ресурса, над которым производится операция.
	//
	// Example: 54295782-7aef-43e6-b33b-c9735938677a
	ResourceId *string `json:"resource_id,omitempty"`

	// ResourceName Информация о ресурсе, над которым производится операция.
	//
	// Example: urn:cloud:postgresql::265c6f28-9c84-4cef-bbc5-4472c1743bc0:backend
	ResourceName *string `json:"resource_name,omitempty"`

	// UpdatedAt Время последнего изменения операции.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

CloudruDbaasOperationOperation defines model for cloudru.dbaas.operation.Operation.

type CloudruDbaasRedisV1Cluster

type CloudruDbaasRedisV1Cluster struct {
	// CreatedAt Дата создания кластера.
	//
	// Example: 2026-02-14T17:17:45.000Z
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Description Описание кластера.
	//
	// Example: Some short text.
	Description *string `json:"description,omitempty"`

	// Health Состояние здоровья.
	//
	// Example: HEALTHY
	Health *CloudruDbaasRedisV1ClusterHealth `json:"health,omitempty"`

	// Id Идентификатор кластера.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	Id *string `json:"id,omitempty"`

	// Logging Параметры интеграции с сервисом Клиентского логирования.
	Logging *CloudruDbaasRedisV1LoggingConfig `json:"logging,omitempty"`

	// Name Название кластера.
	//
	// Example: name-of-cluster_1
	Name string `json:"name"`

	// Parameters Параметры кластера <параметр, значение>. Список поддерживаемых параметров и их описание доступны
	//  в разделе документации [Параметры кластера](https://cloud.ru/docs/redis/ug/topics/guides__parameters__available-parameters-list).
	//
	// Example: {"appendonly":"false","client-output-buffer-limit-normal|hard-limit":"1048576"}
	Parameters *map[string]string `json:"parameters,omitempty"`

	// RedisHosts Адреса кластера.
	//
	// Example: ["redis-node1.example.com:31926","redis-node2.example.com:31926"]
	RedisHosts *[]string `json:"redis_hosts,omitempty"`

	// Replicas Количество реплик.
	//
	// Example: 2
	Replicas int32 `json:"replicas"`

	// Shards Количество шардов.
	//
	// Example: 3
	Shards int32 `json:"shards"`

	// SpecificationId Идентификатор спецификации кластера.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SpecificationId string `json:"specification_id"`

	// Status Статус кластера.
	//
	// Example: READY
	Status *CloudruDbaasRedisV1ClusterStatus `json:"status,omitempty"`

	// StorageGb Размер диска в гигабайтах.
	//  Используйте поле `storage_gib` вместо `storage_gb`.
	//
	// Example: 15
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	StorageGb *int32 `json:"storage_gb,omitempty"`

	// StorageGib Размер диска в гибибайтах.
	//
	// Example: 15
	StorageGib *int32 `json:"storage_gib,omitempty"`

	// StorageSizeGigs Размер диска в гигабайтах.
	//  Используйте поле `storage_gib` вместо `storage_size_gigs`.
	//
	// Example: 15
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	StorageSizeGigs *int32 `json:"storage_size_gigs,omitempty"`

	// SubnetIds Идентификаторы подсетей кластера.
	//
	// Example: ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000000"]
	SubnetIds *[]string `json:"subnet_ids,omitempty"`

	// Type Тип кластера.
	//
	// Example: STANDALONE
	Type CloudruDbaasRedisV1ClusterType `json:"type"`

	// VersionId Идентификатор версии.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	VersionId string `json:"version_id"`

	// ZoneIds Идентификаторы зон доступности кластера.
	//
	// Example: ["00000000-0000-0000-0000-000000000000","00000000-0000-0000-0000-000000000000"]
	ZoneIds *[]string `json:"zone_ids,omitempty"`
}

CloudruDbaasRedisV1Cluster Кластер Redis.

type CloudruDbaasRedisV1ClusterHealth

type CloudruDbaasRedisV1ClusterHealth string

CloudruDbaasRedisV1ClusterHealth Состояние здоровья.

Example: HEALTHY

const (
	HEALTHUNSPECIFIED CloudruDbaasRedisV1ClusterHealth = "HEALTH_UNSPECIFIED"
	HEALTHY           CloudruDbaasRedisV1ClusterHealth = "HEALTHY"
	UNHEALTHY         CloudruDbaasRedisV1ClusterHealth = "UNHEALTHY"
)

Defines values for CloudruDbaasRedisV1ClusterHealth.

func (CloudruDbaasRedisV1ClusterHealth) Valid

Valid indicates whether the value is a known member of the CloudruDbaasRedisV1ClusterHealth enum.

type CloudruDbaasRedisV1ClusterStatus

type CloudruDbaasRedisV1ClusterStatus string

CloudruDbaasRedisV1ClusterStatus Статус кластера.

Example: READY

const (
	DEPLOYING         CloudruDbaasRedisV1ClusterStatus = "DEPLOYING"
	ERASED            CloudruDbaasRedisV1ClusterStatus = "ERASED"
	ERASING           CloudruDbaasRedisV1ClusterStatus = "ERASING"
	FAILED            CloudruDbaasRedisV1ClusterStatus = "FAILED"
	PENDING           CloudruDbaasRedisV1ClusterStatus = "PENDING"
	READY             CloudruDbaasRedisV1ClusterStatus = "READY"
	ROLLINGBACK       CloudruDbaasRedisV1ClusterStatus = "ROLLING_BACK"
	STATUSUNSPECIFIED CloudruDbaasRedisV1ClusterStatus = "STATUS_UNSPECIFIED"
	SUSPENDED         CloudruDbaasRedisV1ClusterStatus = "SUSPENDED"
	SUSPENDING        CloudruDbaasRedisV1ClusterStatus = "SUSPENDING"
	UPDATING          CloudruDbaasRedisV1ClusterStatus = "UPDATING"
)

Defines values for CloudruDbaasRedisV1ClusterStatus.

func (CloudruDbaasRedisV1ClusterStatus) Valid

Valid indicates whether the value is a known member of the CloudruDbaasRedisV1ClusterStatus enum.

type CloudruDbaasRedisV1ClusterType

type CloudruDbaasRedisV1ClusterType string

CloudruDbaasRedisV1ClusterType Тип кластера.

Example: STANDALONE

const (
	CloudruDbaasRedisV1ClusterTypeMASTERREPLICA               CloudruDbaasRedisV1ClusterType = "MASTER_REPLICA"
	CloudruDbaasRedisV1ClusterTypeREDISCLUSTERTYPEUNSPECIFIED CloudruDbaasRedisV1ClusterType = "REDIS_CLUSTER_TYPE_UNSPECIFIED"
	CloudruDbaasRedisV1ClusterTypeSTANDALONE                  CloudruDbaasRedisV1ClusterType = "STANDALONE"
)

Defines values for CloudruDbaasRedisV1ClusterType.

func (CloudruDbaasRedisV1ClusterType) Valid

Valid indicates whether the value is a known member of the CloudruDbaasRedisV1ClusterType enum.

type CloudruDbaasRedisV1CreateClusterRequest

type CloudruDbaasRedisV1CreateClusterRequest struct {
	// Description Пользовательское описание кластера.
	//
	// Example: Some short text.
	Description *string `json:"description,omitempty"`

	// Logging Параметры интеграции с сервисом Клиентского логирования.
	Logging *CloudruDbaasRedisV1LoggingConfig `json:"logging,omitempty"`

	// Name Название кластера.
	//
	// Example: name-of-cluster_1
	Name string `json:"name"`

	// Parameters Параметры кластера <параметр, значение>. Список поддерживаемых параметров и их описание доступны
	//  в разделе документации [Параметры кластера](https://cloud.ru/docs/redis/ug/topics/guides__parameters__available-parameters-list).
	//
	// Example: {"appendonly":"false","client-output-buffer-limit-normal|hard-limit":"1048576"}
	Parameters *map[string]string `json:"parameters,omitempty"`

	// ProjectId Идентификатор проекта.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	ProjectId string `json:"project_id"`

	// Replicas Количество реплик.
	//
	// Example: 2
	Replicas int32 `json:"replicas"`

	// Shards Количество шардов.
	//
	// Example: 3
	Shards int32 `json:"shards"`

	// SpecificationId Идентификатор спецификации кластера.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SpecificationId string `json:"specification_id"`

	// StorageGb Размер диска в гигабайтах.
	//  Используйте поле `storage_gib` вместо `storage_gb`.
	//
	// Example: 15
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	StorageGb *int32 `json:"storage_gb,omitempty"`

	// StorageGib Размер диска в гибибайтах.
	//
	// Example: 15
	StorageGib *int32 `json:"storage_gib,omitempty"`

	// StorageSizeGigs Размер диска в гигабайтах.
	//  Используйте поле `storage_gib` вместо `storage_size_gigs`.
	//
	// Example: 15
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	StorageSizeGigs *int32 `json:"storage_size_gigs,omitempty"`

	// SubnetId Идентификатор подсети.
	//
	//  Список подсетей и их описание можно получить через API сервиса виртуальных машин
	//  в разделе [Subnets](https://cloud.ru/docs/virtual-machines/ug/topics/api-ref-v3#tag/Subnets).
	//
	// Example: 00000000-0000-0000-0000-000000000000
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	SubnetId *string `json:"subnet_id,omitempty"`

	// SubnetIds Идентификаторы подсетей.
	//
	//  Список подсетей и их описание можно получить через API сервиса виртуальных машин
	//  в разделе [Subnets](https://cloud.ru/docs/virtual-machines/ug/topics/api-ref-v3#tag/Subnets).
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SubnetIds *[]string `json:"subnet_ids,omitempty"`

	// Type Тип кластера Redis.
	//
	// Example: STANDALONE
	Type CloudruDbaasRedisV1CreateClusterRequestType `json:"type"`

	// VersionId Идентификатор версии продукта.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	VersionId string `json:"version_id"`
}

CloudruDbaasRedisV1CreateClusterRequest Запрос на создание кластера.

type CloudruDbaasRedisV1CreateClusterRequestType

type CloudruDbaasRedisV1CreateClusterRequestType string

CloudruDbaasRedisV1CreateClusterRequestType Тип кластера Redis.

Example: STANDALONE

const (
	CloudruDbaasRedisV1CreateClusterRequestTypeMASTERREPLICA               CloudruDbaasRedisV1CreateClusterRequestType = "MASTER_REPLICA"
	CloudruDbaasRedisV1CreateClusterRequestTypeREDISCLUSTERTYPEUNSPECIFIED CloudruDbaasRedisV1CreateClusterRequestType = "REDIS_CLUSTER_TYPE_UNSPECIFIED"
	CloudruDbaasRedisV1CreateClusterRequestTypeSTANDALONE                  CloudruDbaasRedisV1CreateClusterRequestType = "STANDALONE"
)

Defines values for CloudruDbaasRedisV1CreateClusterRequestType.

func (CloudruDbaasRedisV1CreateClusterRequestType) Valid

Valid indicates whether the value is a known member of the CloudruDbaasRedisV1CreateClusterRequestType enum.

type CloudruDbaasRedisV1CreateUserRequest

type CloudruDbaasRedisV1CreateUserRequest struct {
	// ClusterId Идентификатор кластера.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	ClusterId string `json:"cluster_id"`

	// GrantedRoles Список ролей, назначенных пользователю. Если список пуст, пользователь не может выполнять никакие действия.
	//
	// Example: {"value":["cloud_writer","cloud_reader"]}
	GrantedRoles *CloudruProtobufV1RepeatedString `json:"granted_roles,omitempty"`

	// Password Пароль.
	//
	// Example: some_pass
	Password string `json:"password"`

	// Roles Роли.
	//  Используйте поле `granted_roles` вместо `roles`.
	//
	// Example: {"value":["cloud_writer","cloud_reader"]}
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Roles *CloudruProtobufV1RepeatedString `json:"roles,omitempty"`

	// UserName Имя пользователя.
	//
	// Example: some_user-1
	UserName string `json:"user_name"`
}

CloudruDbaasRedisV1CreateUserRequest Запрос на создание пользователя в кластере.

type CloudruDbaasRedisV1DeleteUserResponse

type CloudruDbaasRedisV1DeleteUserResponse = map[string]interface{}

CloudruDbaasRedisV1DeleteUserResponse Ответ на запрос на удаление пользователя в кластере.

type CloudruDbaasRedisV1ListClustersResponse

type CloudruDbaasRedisV1ListClustersResponse struct {
	// Clusters Список кластеров в текущем проекте.
	Clusters *[]CloudruDbaasRedisV1Cluster `json:"clusters,omitempty"`

	// NextPageToken Токен следующей страницы с результатами.
	//
	// Example: abcdefghabcdefghabcdefghabcdefgh
	NextPageToken *string `json:"next_page_token,omitempty"`
}

CloudruDbaasRedisV1ListClustersResponse Ответ на запрос на получение списка кластеров текущего проекта.

type CloudruDbaasRedisV1ListOperationsResponse

type CloudruDbaasRedisV1ListOperationsResponse struct {
	// NextPageToken Токен следующей страницы с результатами.
	//
	// Example: abcdefghabcdefghabcdefghabcdefgh
	NextPageToken *string `json:"next_page_token,omitempty"`

	// Operations Список операций, выполненных над заданным кластером.
	Operations *[]CloudruDbaasOperationOperation `json:"operations,omitempty"`
}

CloudruDbaasRedisV1ListOperationsResponse Ответ на запрос на получение списка операций кластера.

type CloudruDbaasRedisV1ListRolesResponse

type CloudruDbaasRedisV1ListRolesResponse struct {
	// Roles Список ролей кластера.
	Roles *[]CloudruDbaasRedisV1Role `json:"roles,omitempty"`
}

CloudruDbaasRedisV1ListRolesResponse Ответ на запрос на получение списка ролей кластера.

type CloudruDbaasRedisV1ListSpecificationsResponse

type CloudruDbaasRedisV1ListSpecificationsResponse struct {
	// Specifications Cписок спецификаций, доступных для определенной версии.
	Specifications *[]CloudruDbaasRedisV1Specification `json:"specifications,omitempty"`
}

CloudruDbaasRedisV1ListSpecificationsResponse Ответ на запрос на получение спецификаций.

type CloudruDbaasRedisV1ListUsersResponse

type CloudruDbaasRedisV1ListUsersResponse struct {
	// Users Список пользователей кластера.
	Users *[]CloudruDbaasRedisV1User `json:"users,omitempty"`
}

CloudruDbaasRedisV1ListUsersResponse Ответ на запрос на получение списка пользователей кластера.

type CloudruDbaasRedisV1ListVersionsResponse

type CloudruDbaasRedisV1ListVersionsResponse struct {
	// Versions Список версий, доступных для продукта.
	Versions *[]CloudruDbaasRedisV1Version `json:"versions,omitempty"`
}

CloudruDbaasRedisV1ListVersionsResponse Ответ на запрос на получение списка доступных версий продукта.

type CloudruDbaasRedisV1LoggingConfig

type CloudruDbaasRedisV1LoggingConfig struct {
	// Enabled Признак отправки логов кластера.
	//  По умолчанию `false` — логи не отправляются.
	//
	// Example: true
	Enabled *bool `json:"enabled,omitempty"`

	// LogGroupId Идентификатор лог-группы, в которую отправляются логи.
	//  Если значение не задано, будет использоваться лог-группа проекта по умолчанию — `default`.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	LogGroupId *string `json:"log_group_id,omitempty"`
}

CloudruDbaasRedisV1LoggingConfig Параметры интеграции с сервисом Клиентского логирования.

type CloudruDbaasRedisV1Role

type CloudruDbaasRedisV1Role struct {
	// Name Название роли.
	//
	// Example: cloud_writer
	Name string `json:"name"`
}

CloudruDbaasRedisV1Role Роль в Redis, представляющая набор привилегий, которую можно назначать пользователям.

type CloudruDbaasRedisV1Specification

type CloudruDbaasRedisV1Specification struct {
	// Cpu Количество виртуальных ядер процессора.
	//
	// Example: 4
	Cpu *float64 `json:"cpu,omitempty"`

	// DeploymentMode Режим развертывания кластера (Business или Standard).
	//
	// Example: BUSINESS
	DeploymentMode *CloudruDbaasRedisV1SpecificationDeploymentMode `json:"deployment_mode,omitempty"`

	// FlavorType Категория флейвора дата-узлов. Возможные значения:
	//   - `cpu` — содержит флейворы с увеличенной долей ядер процессора. Соотношение vCPU к RAM 1:1 и 1:2.
	//   - `balance` — содержит флейворы с оптимальным соотношением vCPU к RAM 1:4.
	//   - `memory` — содержит флейворы с увеличенной долей оперативной памяти. Соотношение vCPU к RAM 1:8 и 1:16.
	//
	//  Deprecated: Поле будет удалено в будущем.
	//
	// Example: BALANCE
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	FlavorType *CloudruDbaasRedisV1SpecificationFlavorType `json:"flavor_type,omitempty"`

	// Id Идентификатор спецификации.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	Id *string `json:"id,omitempty"`

	// Memory Объем оперативной памяти в гигабайтах.
	//
	// Example: 16
	Memory *float64 `json:"memory,omitempty"`

	// MinStorageGb Минимальный размер диска в гигабайтах.
	//
	// Example: 40
	MinStorageGb *int32 `json:"min_storage_gb,omitempty"`

	// MinStorageGigs Минимальный размер диска в гигабайтах.
	//  Используйте поле `min_storage_gb` вместо `min_storage_gigs`. Поле будет удалено в будущем.
	//
	// Example: 40
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	MinStorageGigs *int32 `json:"min_storage_gigs,omitempty"`

	// Name Название спецификации.
	//
	// Example: 4vCPU/16GB RAM (Business)
	Name *string `json:"name,omitempty"`
}

CloudruDbaasRedisV1Specification Спецификация Redis.

type CloudruDbaasRedisV1SpecificationDeploymentMode

type CloudruDbaasRedisV1SpecificationDeploymentMode string

CloudruDbaasRedisV1SpecificationDeploymentMode Режим развертывания кластера (Business или Standard).

Example: BUSINESS

const (
	BUSINESS                  CloudruDbaasRedisV1SpecificationDeploymentMode = "BUSINESS"
	DEPLOYMENTMODEUNSPECIFIED CloudruDbaasRedisV1SpecificationDeploymentMode = "DEPLOYMENT_MODE_UNSPECIFIED"
	STANDARD                  CloudruDbaasRedisV1SpecificationDeploymentMode = "STANDARD"
)

Defines values for CloudruDbaasRedisV1SpecificationDeploymentMode.

func (CloudruDbaasRedisV1SpecificationDeploymentMode) Valid

Valid indicates whether the value is a known member of the CloudruDbaasRedisV1SpecificationDeploymentMode enum.

type CloudruDbaasRedisV1SpecificationFlavorType deprecated

type CloudruDbaasRedisV1SpecificationFlavorType string

CloudruDbaasRedisV1SpecificationFlavorType Категория флейвора дата-узлов. Возможные значения:

  • `cpu` — содержит флейворы с увеличенной долей ядер процессора. Соотношение vCPU к RAM 1:1 и 1:2.

  • `balance` — содержит флейворы с оптимальным соотношением vCPU к RAM 1:4.

  • `memory` — содержит флейворы с увеличенной долей оперативной памяти. Соотношение vCPU к RAM 1:8 и 1:16.

    Deprecated: Поле будет удалено в будущем.

Example: BALANCE

Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set

const (
	BALANCE               CloudruDbaasRedisV1SpecificationFlavorType = "BALANCE"
	CPU                   CloudruDbaasRedisV1SpecificationFlavorType = "CPU"
	FLAVORTYPEUNSPECIFIED CloudruDbaasRedisV1SpecificationFlavorType = "FLAVOR_TYPE_UNSPECIFIED"
	MEMORY                CloudruDbaasRedisV1SpecificationFlavorType = "MEMORY"
)

Defines values for CloudruDbaasRedisV1SpecificationFlavorType.

func (CloudruDbaasRedisV1SpecificationFlavorType) Valid

Valid indicates whether the value is a known member of the CloudruDbaasRedisV1SpecificationFlavorType enum.

type CloudruDbaasRedisV1UpdateClusterRequest

type CloudruDbaasRedisV1UpdateClusterRequest struct {
	// ClusterId Идентификатор кластера.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	ClusterId string `json:"cluster_id"`

	// Parameters Параметры кластера <параметр, значение>. Список поддерживаемых параметров и их описание доступны
	//  в разделе документации [Параметры кластера](https://cloud.ru/docs/redis/ug/topics/guides__parameters__available-parameters-list).
	//
	// Example: {"appendonly":"false","client-output-buffer-limit-normal|hard-limit":"1048576"}
	Parameters *map[string]string `json:"parameters,omitempty"`

	// SpecificationId Идентификатор спецификации, назначенной кластеру.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SpecificationId *string `json:"specification_id,omitempty"`

	// StorageGb Размер диска в гигабайтах.
	//  Используйте поле `storage_gib` вместо `storage_gb`.
	//
	// Example: 15
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	StorageGb *int32 `json:"storage_gb,omitempty"`

	// StorageGib Размер диска в гибибайтах.
	//
	// Example: 15
	StorageGib *int32 `json:"storage_gib,omitempty"`
}

CloudruDbaasRedisV1UpdateClusterRequest Запрос на изменение ресурсов кластера.

type CloudruDbaasRedisV1UpdateUserRequest

type CloudruDbaasRedisV1UpdateUserRequest struct {
	// ClusterId Идентификатор кластера.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	ClusterId string `json:"cluster_id"`

	// GrantedRoles Список ролей, назначенных пользователю. Если список пуст, пользователь не может выполнять никакие действия.
	//
	// Example: {"value":["cloud_writer","cloud_reader"]}
	GrantedRoles *CloudruProtobufV1RepeatedString `json:"granted_roles,omitempty"`

	// Password Пароль.
	//
	// Example: some_pass
	Password *string `json:"password,omitempty"`

	// Roles Роли.
	//  Используйте поле `granted_roles` вместо `roles`.
	//
	// Example: {"value":["cloud_writer","cloud_reader"]}
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Roles *CloudruProtobufV1RepeatedString `json:"roles,omitempty"`

	// UserName Имя пользователя.
	//
	// Example: some_user-1
	UserName string `json:"user_name"`
}

CloudruDbaasRedisV1UpdateUserRequest Запрос на изменение пользователя в кластере.

type CloudruDbaasRedisV1User

type CloudruDbaasRedisV1User struct {
	// GrantedRoles Список ролей, назначенных пользователю. Если список пуст, пользователь не может выполнять никакие действия.
	//
	// Example: {"value":["cloud_writer","cloud_reader"]}
	GrantedRoles *CloudruProtobufV1RepeatedString `json:"granted_roles,omitempty"`

	// Name Имя пользователя.
	//
	// Example: some_user-1
	Name string `json:"name"`

	// Roles Назначенные роли.
	//  Используйте поле `granted_roles` вместо `roles`.
	//
	// Example: ["cloud_writer","cloud_reader"]
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Roles *[]string `json:"roles,omitempty"`
}

CloudruDbaasRedisV1User Пользователь базы данных Redis.

type CloudruDbaasRedisV1Version

type CloudruDbaasRedisV1Version struct {
	// Id Идентификатор версии продукта.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	Id *string `json:"id,omitempty"`

	// Name Название версии продукта.
	//
	// Example: 7.2.11
	Name *string `json:"name,omitempty"`
}

CloudruDbaasRedisV1Version Версия Redis.

type CloudruProtobufV1RepeatedString

type CloudruProtobufV1RepeatedString struct {
	// Value The repeated string value.
	Value *[]string `json:"value,omitempty"`
}

CloudruProtobufV1RepeatedString defines model for cloudru.protobuf.v1.RepeatedString.

type ClusterServiceCreateJSONRequestBody

type ClusterServiceCreateJSONRequestBody = CloudruDbaasRedisV1CreateClusterRequest

ClusterServiceCreateJSONRequestBody defines body for ClusterServiceCreate for application/json ContentType.

type ClusterServiceCreateResponse

type ClusterServiceCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasOperationOperation
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseClusterServiceCreateResponse

func ParseClusterServiceCreateResponse(rsp *http.Response) (*ClusterServiceCreateResponse, error)

ParseClusterServiceCreateResponse parses an HTTP response from a ClusterServiceCreateWithResponse call

func (ClusterServiceCreateResponse) ContentType

func (r ClusterServiceCreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ClusterServiceCreateResponse) GetBody

func (r ClusterServiceCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ClusterServiceCreateResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ClusterServiceCreateResponse) GetJSONDefault

func (r ClusterServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ClusterServiceCreateResponse) Status

Status returns HTTPResponse.Status

func (ClusterServiceCreateResponse) StatusCode

func (r ClusterServiceCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClusterServiceDeleteResponse

type ClusterServiceDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasOperationOperation
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseClusterServiceDeleteResponse

func ParseClusterServiceDeleteResponse(rsp *http.Response) (*ClusterServiceDeleteResponse, error)

ParseClusterServiceDeleteResponse parses an HTTP response from a ClusterServiceDeleteWithResponse call

func (ClusterServiceDeleteResponse) ContentType

func (r ClusterServiceDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ClusterServiceDeleteResponse) GetBody

func (r ClusterServiceDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ClusterServiceDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ClusterServiceDeleteResponse) GetJSONDefault

func (r ClusterServiceDeleteResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ClusterServiceDeleteResponse) Status

Status returns HTTPResponse.Status

func (ClusterServiceDeleteResponse) StatusCode

func (r ClusterServiceDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClusterServiceGetResponse

type ClusterServiceGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1Cluster
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseClusterServiceGetResponse

func ParseClusterServiceGetResponse(rsp *http.Response) (*ClusterServiceGetResponse, error)

ParseClusterServiceGetResponse parses an HTTP response from a ClusterServiceGetWithResponse call

func (ClusterServiceGetResponse) ContentType

func (r ClusterServiceGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ClusterServiceGetResponse) GetBody

func (r ClusterServiceGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ClusterServiceGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ClusterServiceGetResponse) GetJSONDefault

func (r ClusterServiceGetResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ClusterServiceGetResponse) Status

func (r ClusterServiceGetResponse) Status() string

Status returns HTTPResponse.Status

func (ClusterServiceGetResponse) StatusCode

func (r ClusterServiceGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClusterServiceListOperationsParams

type ClusterServiceListOperationsParams struct {
	// PageSize Максимальное количество результатов на странице ответа.
	PageSize *string `form:"page_size,omitempty" json:"page_size,omitempty"`

	// PageToken Токен запрашиваемой страницы с результатами.
	//  При первом запросе оставьте поле пустым.
	//  При последующих запросах укажите значение параметра `next_page_token` из ответа метода.
	PageToken *string `form:"page_token,omitempty" json:"page_token,omitempty"`
}

ClusterServiceListOperationsParams defines parameters for ClusterServiceListOperations.

type ClusterServiceListOperationsResponse

type ClusterServiceListOperationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1ListOperationsResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseClusterServiceListOperationsResponse

func ParseClusterServiceListOperationsResponse(rsp *http.Response) (*ClusterServiceListOperationsResponse, error)

ParseClusterServiceListOperationsResponse parses an HTTP response from a ClusterServiceListOperationsWithResponse call

func (ClusterServiceListOperationsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ClusterServiceListOperationsResponse) GetBody

GetBody returns the raw response body bytes

func (ClusterServiceListOperationsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ClusterServiceListOperationsResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ClusterServiceListOperationsResponse) Status

Status returns HTTPResponse.Status

func (ClusterServiceListOperationsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ClusterServiceListParams

type ClusterServiceListParams struct {
	// ProjectId Идентификатор проекта.
	ProjectId *string `form:"project_id,omitempty" json:"project_id,omitempty"`

	// PageSize Максимальное количество результатов на странице ответа.
	PageSize *string `form:"page_size,omitempty" json:"page_size,omitempty"`

	// PageToken Токен запрашиваемой страницы с результатами.
	//  При первом запросе оставьте поле пустым.
	//  При последующих запросах укажите значение параметра `next_page_token` из ответа метода.
	PageToken *string `form:"page_token,omitempty" json:"page_token,omitempty"`
}

ClusterServiceListParams defines parameters for ClusterServiceList.

type ClusterServiceListResponse

type ClusterServiceListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1ListClustersResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseClusterServiceListResponse

func ParseClusterServiceListResponse(rsp *http.Response) (*ClusterServiceListResponse, error)

ParseClusterServiceListResponse parses an HTTP response from a ClusterServiceListWithResponse call

func (ClusterServiceListResponse) ContentType

func (r ClusterServiceListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ClusterServiceListResponse) GetBody

func (r ClusterServiceListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ClusterServiceListResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ClusterServiceListResponse) GetJSONDefault

func (r ClusterServiceListResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ClusterServiceListResponse) Status

Status returns HTTPResponse.Status

func (ClusterServiceListResponse) StatusCode

func (r ClusterServiceListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClusterServiceUpdateJSONRequestBody

type ClusterServiceUpdateJSONRequestBody = CloudruDbaasRedisV1UpdateClusterRequest

ClusterServiceUpdateJSONRequestBody defines body for ClusterServiceUpdate for application/json ContentType.

type ClusterServiceUpdateResponse

type ClusterServiceUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasOperationOperation
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseClusterServiceUpdateResponse

func ParseClusterServiceUpdateResponse(rsp *http.Response) (*ClusterServiceUpdateResponse, error)

ParseClusterServiceUpdateResponse parses an HTTP response from a ClusterServiceUpdateWithResponse call

func (ClusterServiceUpdateResponse) ContentType

func (r ClusterServiceUpdateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ClusterServiceUpdateResponse) GetBody

func (r ClusterServiceUpdateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ClusterServiceUpdateResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ClusterServiceUpdateResponse) GetJSONDefault

func (r ClusterServiceUpdateResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ClusterServiceUpdateResponse) Status

Status returns HTTPResponse.Status

func (ClusterServiceUpdateResponse) StatusCode

func (r ClusterServiceUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GoogleProtobufAny

type GoogleProtobufAny struct {
	// Type URL-адрес или имя ресурса, которое определяет тип сериализованного сообщения.
	Type                 *string                `json:"@type,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

GoogleProtobufAny defines model for google.protobuf.Any.

func (GoogleProtobufAny) Get

func (a GoogleProtobufAny) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for GoogleProtobufAny. Returns the specified element and whether it was found

func (GoogleProtobufAny) MarshalJSON

func (a GoogleProtobufAny) MarshalJSON() ([]byte, error)

Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties

func (*GoogleProtobufAny) Set

func (a *GoogleProtobufAny) Set(fieldName string, value interface{})

Setter for additional properties for GoogleProtobufAny

func (*GoogleProtobufAny) UnmarshalJSON

func (a *GoogleProtobufAny) UnmarshalJSON(b []byte) error

Override default JSON handling for GoogleProtobufAny to handle AdditionalProperties

type GoogleRpcStatus

type GoogleRpcStatus struct {
	// Code Код ошибки.
	Code *int32 `json:"code,omitempty"`

	// Details Дополнительная информация об ошибке.
	Details *[]GoogleProtobufAny `json:"details,omitempty"`

	// Message Описание ошибки.
	Message *string `json:"message,omitempty"`
}

GoogleRpcStatus Ошибка.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type OperationServiceGetResponse

type OperationServiceGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasOperationOperation
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseOperationServiceGetResponse

func ParseOperationServiceGetResponse(rsp *http.Response) (*OperationServiceGetResponse, error)

ParseOperationServiceGetResponse parses an HTTP response from a OperationServiceGetWithResponse call

func (OperationServiceGetResponse) ContentType

func (r OperationServiceGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (OperationServiceGetResponse) GetBody

func (r OperationServiceGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (OperationServiceGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (OperationServiceGetResponse) GetJSONDefault

func (r OperationServiceGetResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (OperationServiceGetResponse) Status

Status returns HTTPResponse.Status

func (OperationServiceGetResponse) StatusCode

func (r OperationServiceGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RoleServiceListResponse

type RoleServiceListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1ListRolesResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseRoleServiceListResponse

func ParseRoleServiceListResponse(rsp *http.Response) (*RoleServiceListResponse, error)

ParseRoleServiceListResponse parses an HTTP response from a RoleServiceListWithResponse call

func (RoleServiceListResponse) ContentType

func (r RoleServiceListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RoleServiceListResponse) GetBody

func (r RoleServiceListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RoleServiceListResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RoleServiceListResponse) GetJSONDefault

func (r RoleServiceListResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RoleServiceListResponse) Status

func (r RoleServiceListResponse) Status() string

Status returns HTTPResponse.Status

func (RoleServiceListResponse) StatusCode

func (r RoleServiceListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SpecificationServiceListParams

type SpecificationServiceListParams struct {
	// VersionId Идентификатор версии.
	VersionId *string `form:"version_id,omitempty" json:"version_id,omitempty"`

	// AvailabilityZoneId Идентификатор зоны доступности.
	//
	//  Список зон доступности и их описание можно получить через API сервиса виртуальных машин
	//  в разделе [Availability Zones](https://cloud.ru/docs/virtual-machines/ug/topics/api-ref-v3#tag/Availability-Zones).
	AvailabilityZoneId *string `form:"availability_zone_id,omitempty" json:"availability_zone_id,omitempty"`

	// ClusterId Идентификатор кластера.
	//  Укажите для получения спецификаций, доступных для вертикального масштабирования кластера.
	ClusterId *string `form:"cluster_id,omitempty" json:"cluster_id,omitempty"`
}

SpecificationServiceListParams defines parameters for SpecificationServiceList.

type SpecificationServiceListResponse

type SpecificationServiceListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1ListSpecificationsResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseSpecificationServiceListResponse

func ParseSpecificationServiceListResponse(rsp *http.Response) (*SpecificationServiceListResponse, error)

ParseSpecificationServiceListResponse parses an HTTP response from a SpecificationServiceListWithResponse call

func (SpecificationServiceListResponse) ContentType

func (r SpecificationServiceListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SpecificationServiceListResponse) GetBody

func (r SpecificationServiceListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SpecificationServiceListResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SpecificationServiceListResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SpecificationServiceListResponse) Status

Status returns HTTPResponse.Status

func (SpecificationServiceListResponse) StatusCode

func (r SpecificationServiceListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserServiceCreateJSONRequestBody

type UserServiceCreateJSONRequestBody = CloudruDbaasRedisV1CreateUserRequest

UserServiceCreateJSONRequestBody defines body for UserServiceCreate for application/json ContentType.

type UserServiceCreateResponse

type UserServiceCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1User
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseUserServiceCreateResponse

func ParseUserServiceCreateResponse(rsp *http.Response) (*UserServiceCreateResponse, error)

ParseUserServiceCreateResponse parses an HTTP response from a UserServiceCreateWithResponse call

func (UserServiceCreateResponse) ContentType

func (r UserServiceCreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UserServiceCreateResponse) GetBody

func (r UserServiceCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UserServiceCreateResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UserServiceCreateResponse) GetJSONDefault

func (r UserServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UserServiceCreateResponse) Status

func (r UserServiceCreateResponse) Status() string

Status returns HTTPResponse.Status

func (UserServiceCreateResponse) StatusCode

func (r UserServiceCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserServiceDeleteResponse

type UserServiceDeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1DeleteUserResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseUserServiceDeleteResponse

func ParseUserServiceDeleteResponse(rsp *http.Response) (*UserServiceDeleteResponse, error)

ParseUserServiceDeleteResponse parses an HTTP response from a UserServiceDeleteWithResponse call

func (UserServiceDeleteResponse) ContentType

func (r UserServiceDeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UserServiceDeleteResponse) GetBody

func (r UserServiceDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UserServiceDeleteResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UserServiceDeleteResponse) GetJSONDefault

func (r UserServiceDeleteResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UserServiceDeleteResponse) Status

func (r UserServiceDeleteResponse) Status() string

Status returns HTTPResponse.Status

func (UserServiceDeleteResponse) StatusCode

func (r UserServiceDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserServiceGetResponse

type UserServiceGetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1User
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseUserServiceGetResponse

func ParseUserServiceGetResponse(rsp *http.Response) (*UserServiceGetResponse, error)

ParseUserServiceGetResponse parses an HTTP response from a UserServiceGetWithResponse call

func (UserServiceGetResponse) ContentType

func (r UserServiceGetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UserServiceGetResponse) GetBody

func (r UserServiceGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UserServiceGetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UserServiceGetResponse) GetJSONDefault

func (r UserServiceGetResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UserServiceGetResponse) Status

func (r UserServiceGetResponse) Status() string

Status returns HTTPResponse.Status

func (UserServiceGetResponse) StatusCode

func (r UserServiceGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserServiceListResponse

type UserServiceListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1ListUsersResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseUserServiceListResponse

func ParseUserServiceListResponse(rsp *http.Response) (*UserServiceListResponse, error)

ParseUserServiceListResponse parses an HTTP response from a UserServiceListWithResponse call

func (UserServiceListResponse) ContentType

func (r UserServiceListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UserServiceListResponse) GetBody

func (r UserServiceListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UserServiceListResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UserServiceListResponse) GetJSONDefault

func (r UserServiceListResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UserServiceListResponse) Status

func (r UserServiceListResponse) Status() string

Status returns HTTPResponse.Status

func (UserServiceListResponse) StatusCode

func (r UserServiceListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserServiceUpdateJSONRequestBody

type UserServiceUpdateJSONRequestBody = CloudruDbaasRedisV1UpdateUserRequest

UserServiceUpdateJSONRequestBody defines body for UserServiceUpdate for application/json ContentType.

type UserServiceUpdateResponse

type UserServiceUpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1User
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseUserServiceUpdateResponse

func ParseUserServiceUpdateResponse(rsp *http.Response) (*UserServiceUpdateResponse, error)

ParseUserServiceUpdateResponse parses an HTTP response from a UserServiceUpdateWithResponse call

func (UserServiceUpdateResponse) ContentType

func (r UserServiceUpdateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UserServiceUpdateResponse) GetBody

func (r UserServiceUpdateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UserServiceUpdateResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UserServiceUpdateResponse) GetJSONDefault

func (r UserServiceUpdateResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UserServiceUpdateResponse) Status

func (r UserServiceUpdateResponse) Status() string

Status returns HTTPResponse.Status

func (UserServiceUpdateResponse) StatusCode

func (r UserServiceUpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VersionServiceListResponse

type VersionServiceListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasRedisV1ListVersionsResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *GoogleRpcStatus
}

func ParseVersionServiceListResponse

func ParseVersionServiceListResponse(rsp *http.Response) (*VersionServiceListResponse, error)

ParseVersionServiceListResponse parses an HTTP response from a VersionServiceListWithResponse call

func (VersionServiceListResponse) ContentType

func (r VersionServiceListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VersionServiceListResponse) GetBody

func (r VersionServiceListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VersionServiceListResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VersionServiceListResponse) GetJSONDefault

func (r VersionServiceListResponse) GetJSONDefault() *GoogleRpcStatus

GetJSONDefault returns the response for an HTTP default `application/json` response

func (VersionServiceListResponse) Status

Status returns HTTPResponse.Status

func (VersionServiceListResponse) StatusCode

func (r VersionServiceListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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