clickhouse

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: 11 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 clickhouse 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 NewDatabaseServiceCreateRequest

func NewDatabaseServiceCreateRequest(server string, clusterId string, body DatabaseServiceCreateJSONRequestBody) (*http.Request, error)

NewDatabaseServiceCreateRequest calls the generic DatabaseServiceCreate builder with application/json body

func NewDatabaseServiceCreateRequestWithBody

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

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

func NewDatabaseServiceDeleteRequest

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

NewDatabaseServiceDeleteRequest constructs an http.Request for the DatabaseServiceDelete method

func NewDatabaseServiceGetRequest

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

NewDatabaseServiceGetRequest constructs an http.Request for the DatabaseServiceGet method

func NewDatabaseServiceListRequest

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

NewDatabaseServiceListRequest constructs an http.Request for the DatabaseServiceList method

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, userName string) (*http.Request, error)

NewUserServiceGetRequest constructs an http.Request for the UserServiceGet method

func NewUserServiceGrantRoleRequest

func NewUserServiceGrantRoleRequest(server string, clusterId string, userName string, params *UserServiceGrantRoleParams) (*http.Request, error)

NewUserServiceGrantRoleRequest constructs an http.Request for the UserServiceGrantRole method

func NewUserServiceListRequest

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

NewUserServiceListRequest constructs an http.Request for the UserServiceList method

func NewUserServiceRevokeRoleRequest

func NewUserServiceRevokeRoleRequest(server string, clusterId string, userName string, params *UserServiceRevokeRoleParams) (*http.Request, error)

NewUserServiceRevokeRoleRequest constructs an http.Request for the UserServiceRevokeRole 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) DatabaseServiceCreate

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

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

Создание базы данных.

func (*Client) DatabaseServiceCreateWithBody

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

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

Создание базы данных.

func (*Client) DatabaseServiceDelete

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

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

Удаление базы данных.

func (*Client) DatabaseServiceGet

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

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

Получение информации о базе данных.

func (*Client) DatabaseServiceList

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

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

Получение списка баз данных.

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, userName string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

func (*Client) UserServiceGrantRole

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

UserServiceGrantRole performs a POST /v1/clusters/{cluster_id}/users/{user_name}:grantRole (the `UserServiceGrantRole` 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) UserServiceRevokeRole

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

UserServiceRevokeRole performs a POST /v1/clusters/{cluster_id}/users/{user_name}:revokeRole (the `UserServiceRevokeRole` 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 PATCH /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 PATCH /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)

	// DatabaseServiceList performs a GET /v1/clusters/{cluster_id}/databases (the `DatabaseServiceList` operationId) request.
	//
	// Получение списка баз данных.
	DatabaseServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DatabaseServiceCreateWithBody performs a POST /v1/clusters/{cluster_id}/databases (the `DatabaseServiceCreate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Создание базы данных.
	DatabaseServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DatabaseServiceCreate performs a POST /v1/clusters/{cluster_id}/databases (the `DatabaseServiceCreate` operationId) request.
	// Takes a body of the `application/json` content type.
	//
	// Создание базы данных.
	DatabaseServiceCreate(ctx context.Context, clusterId string, body DatabaseServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DatabaseServiceDelete performs a DELETE /v1/clusters/{cluster_id}/databases/{name} (the `DatabaseServiceDelete` operationId) request.
	//
	// Удаление базы данных.
	DatabaseServiceDelete(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DatabaseServiceGet performs a GET /v1/clusters/{cluster_id}/databases/{name} (the `DatabaseServiceGet` operationId) request.
	//
	// Получение информации о базе данных.
	DatabaseServiceGet(ctx context.Context, clusterId string, name string, 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)

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

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

	// UserServiceUpdateWithBody performs a PATCH /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 PATCH /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)

	// UserServiceGrantRole performs a POST /v1/clusters/{cluster_id}/users/{user_name}:grantRole (the `UserServiceGrantRole` operationId) request.
	//
	// Предоставление роли пользователю.
	UserServiceGrantRole(ctx context.Context, clusterId string, userName string, params *UserServiceGrantRoleParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UserServiceRevokeRole performs a POST /v1/clusters/{cluster_id}/users/{user_name}:revokeRole (the `UserServiceRevokeRole` operationId) request.
	//
	// Отзыв роли у пользователя.
	UserServiceRevokeRole(ctx context.Context, clusterId string, userName string, params *UserServiceRevokeRoleParams, 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) DatabaseServiceCreateWithBodyWithResponse

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

DatabaseServiceCreateWithBodyWithResponse performs a POST /v1/clusters/{cluster_id}/databases (the `DatabaseServiceCreate` 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) DatabaseServiceCreateWithResponse

func (c *ClientWithResponses) DatabaseServiceCreateWithResponse(ctx context.Context, clusterId string, body DatabaseServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatabaseServiceCreateResponse, error)

DatabaseServiceCreateWithResponse performs a POST /v1/clusters/{cluster_id}/databases (the `DatabaseServiceCreate` 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) DatabaseServiceDeleteWithResponse

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

DatabaseServiceDeleteWithResponse performs a DELETE /v1/clusters/{cluster_id}/databases/{name} (the `DatabaseServiceDelete` operationId) request.

Удаление базы данных.

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

func (*ClientWithResponses) DatabaseServiceGetWithResponse

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

DatabaseServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/databases/{name} (the `DatabaseServiceGet` operationId) request.

Получение информации о базе данных.

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

func (*ClientWithResponses) DatabaseServiceListWithResponse

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

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

Получение списка баз данных.

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, userName string, reqEditors ...RequestEditorFn) (*UserServiceGetResponse, error)

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

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

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

func (*ClientWithResponses) UserServiceGrantRoleWithResponse

func (c *ClientWithResponses) UserServiceGrantRoleWithResponse(ctx context.Context, clusterId string, userName string, params *UserServiceGrantRoleParams, reqEditors ...RequestEditorFn) (*UserServiceGrantRoleResponse, error)

UserServiceGrantRoleWithResponse performs a POST /v1/clusters/{cluster_id}/users/{user_name}:grantRole (the `UserServiceGrantRole` 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) UserServiceRevokeRoleWithResponse

func (c *ClientWithResponses) UserServiceRevokeRoleWithResponse(ctx context.Context, clusterId string, userName string, params *UserServiceRevokeRoleParams, reqEditors ...RequestEditorFn) (*UserServiceRevokeRoleResponse, error)

UserServiceRevokeRoleWithResponse performs a POST /v1/clusters/{cluster_id}/users/{user_name}:revokeRole (the `UserServiceRevokeRole` 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 PATCH /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 PATCH /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)

	// DatabaseServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/databases (the `DatabaseServiceList` operationId) request.
	//
	// Получение списка баз данных.
	//
	// Returns a wrapper object for the known response body format(s).
	DatabaseServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DatabaseServiceListResponse, error)

	// DatabaseServiceCreateWithBodyWithResponse performs a POST /v1/clusters/{cluster_id}/databases (the `DatabaseServiceCreate` operationId) request,
	// with any type of body and a specified content type.
	//
	// Создание базы данных.
	//
	// Returns a wrapper object for the known response body format(s).
	DatabaseServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DatabaseServiceCreateResponse, error)

	// DatabaseServiceCreateWithResponse performs a POST /v1/clusters/{cluster_id}/databases (the `DatabaseServiceCreate` operationId) request.
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Создание базы данных.
	DatabaseServiceCreateWithResponse(ctx context.Context, clusterId string, body DatabaseServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*DatabaseServiceCreateResponse, error)

	// DatabaseServiceDeleteWithResponse performs a DELETE /v1/clusters/{cluster_id}/databases/{name} (the `DatabaseServiceDelete` operationId) request.
	//
	// Удаление базы данных.
	//
	// Returns a wrapper object for the known response body format(s).
	DatabaseServiceDeleteWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*DatabaseServiceDeleteResponse, error)

	// DatabaseServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/databases/{name} (the `DatabaseServiceGet` operationId) request.
	//
	// Получение информации о базе данных.
	//
	// Returns a wrapper object for the known response body format(s).
	DatabaseServiceGetWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*DatabaseServiceGetResponse, 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)

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

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

	// UserServiceUpdateWithBodyWithResponse performs a PATCH /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 PATCH /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)

	// UserServiceGrantRoleWithResponse performs a POST /v1/clusters/{cluster_id}/users/{user_name}:grantRole (the `UserServiceGrantRole` operationId) request.
	//
	// Предоставление роли пользователю.
	//
	// Returns a wrapper object for the known response body format(s).
	UserServiceGrantRoleWithResponse(ctx context.Context, clusterId string, userName string, params *UserServiceGrantRoleParams, reqEditors ...RequestEditorFn) (*UserServiceGrantRoleResponse, error)

	// UserServiceRevokeRoleWithResponse performs a POST /v1/clusters/{cluster_id}/users/{user_name}:revokeRole (the `UserServiceRevokeRole` operationId) request.
	//
	// Отзыв роли у пользователя.
	//
	// Returns a wrapper object for the known response body format(s).
	UserServiceRevokeRoleWithResponse(ctx context.Context, clusterId string, userName string, params *UserServiceRevokeRoleParams, reqEditors ...RequestEditorFn) (*UserServiceRevokeRoleResponse, 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 CloudruDbaasClickhouseV1Cluster

type CloudruDbaasClickhouseV1Cluster struct {
	// Config Конфигурация кластера ClickHouse.
	Config *CloudruDbaasClickhouseV1ClusterConfig `json:"config,omitempty"`

	// 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"`

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

	// Health Состояние здоровья кластера.
	//
	// Example: HEALTH_HEALTHY
	Health *CloudruDbaasClickhouseV1ClusterHealth `json:"health,omitempty"`

	// Hosts Адреса кластера.
	//
	// Example: ["clickhouse-node1.example.com:9000","clickhouse-node2.example.com:9000"]
	Hosts *[]string `json:"hosts,omitempty"`

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

	// KeeperMode Режим работы ClickHouse Keeper.
	//
	// Example: KEEPER_MODE_EMBEDDED
	KeeperMode *CloudruDbaasClickhouseV1ClusterKeeperMode `json:"keeper_mode,omitempty"`

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

	// Name Имя кластера.
	//
	// Example: name-of-cluster_1
	Name string `json:"name"`

	// 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 Идентификатор спецификации кластера. Используйте спецификацию с назначением `SPECIFICATION_ROLE_CLICKHOUSE_SERVER`.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SpecificationId string `json:"specification_id"`

	// StandaloneKeeper Конфигурация выделенного ClickHouse Keeper.
	StandaloneKeeper *CloudruDbaasClickhouseV1StandaloneKeeper `json:"standalone_keeper,omitempty"`

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

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

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

	// Version Версия кластера.
	//
	// Example: 24.3
	Version string `json:"version"`
}

CloudruDbaasClickhouseV1Cluster Кластер ClickHouse.

type CloudruDbaasClickhouseV1ClusterConfig

type CloudruDbaasClickhouseV1ClusterConfig struct {
	// BackgroundPoolSize Размер пула потоков для фоновых операций (например, слияния).
	//
	// Example: 10
	BackgroundPoolSize *FlexInt64 `json:"background_pool_size,omitempty"`

	// BackgroundSchedulePoolSize Максимальное количество потоков, которые будут использоваться для постоянного выполнения некоторых легковесных периодических операций для реплицированных таблиц, потоков Kafka и обновлений кеша DNS.
	//
	// Example: 10
	BackgroundSchedulePoolSize *FlexInt64 `json:"background_schedule_pool_size,omitempty"`

	// KeepAliveTimeout Количество секунд, которое ClickHouse ждет входящих запросов перед закрытием соединения.
	//
	// Example: 60
	KeepAliveTimeout *FlexInt64 `json:"keep_alive_timeout,omitempty"`

	// MarkCacheSize Максимальный размер кеша для меток (индекс MergeTree семейства таблиц).
	//
	// Example: 5368709120
	MarkCacheSize *FlexInt64 `json:"mark_cache_size,omitempty"`

	// MaxConcurrentQueries Лимит на общее количество одновременно выполняемых запросов на сервере.
	//
	// Example: 100
	MaxConcurrentQueries *FlexInt64 `json:"max_concurrent_queries,omitempty"`

	// MaxConnections Максимальное количество одновременных подключений к СУБД.
	//
	// Example: 100
	MaxConnections *FlexInt64 `json:"max_connections,omitempty"`

	// MaxPartitionSizeToDrop Ограничение на удаление партиций во время выполнения запроса.
	//
	// Example: 50000000000
	MaxPartitionSizeToDrop *FlexInt64 `json:"max_partition_size_to_drop,omitempty"`

	// MaxSessionTimeout Максимальное время ожидания сеанса в секундах.
	//
	// Example: 30
	MaxSessionTimeout *FlexInt64 `json:"max_session_timeout,omitempty"`

	// MaxTableSizeToDrop Ограничение на удаление таблиц во время выполнения запроса.
	//
	// Example: 50000000000
	MaxTableSizeToDrop *FlexInt64 `json:"max_table_size_to_drop,omitempty"`

	// UncompressedCacheSize Максимальный размер кеша (в байтах) для не сжатых данных, используемых движками таблиц из семейства MergeTree.
	//
	// Example: 2048
	UncompressedCacheSize *FlexInt64 `json:"uncompressed_cache_size,omitempty"`
}

CloudruDbaasClickhouseV1ClusterConfig Конфигурация кластера ClickHouse.

type CloudruDbaasClickhouseV1ClusterHealth

type CloudruDbaasClickhouseV1ClusterHealth string

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

Example: HEALTH_HEALTHY

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

Defines values for CloudruDbaasClickhouseV1ClusterHealth.

func (CloudruDbaasClickhouseV1ClusterHealth) Valid

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

type CloudruDbaasClickhouseV1ClusterKeeperMode

type CloudruDbaasClickhouseV1ClusterKeeperMode string

CloudruDbaasClickhouseV1ClusterKeeperMode Режим работы ClickHouse Keeper.

Example: KEEPER_MODE_EMBEDDED

const (
	CloudruDbaasClickhouseV1ClusterKeeperModeKEEPERMODEEMBEDDED    CloudruDbaasClickhouseV1ClusterKeeperMode = "KEEPER_MODE_EMBEDDED"
	CloudruDbaasClickhouseV1ClusterKeeperModeKEEPERMODESTANDALONE  CloudruDbaasClickhouseV1ClusterKeeperMode = "KEEPER_MODE_STANDALONE"
	CloudruDbaasClickhouseV1ClusterKeeperModeKEEPERMODEUNSPECIFIED CloudruDbaasClickhouseV1ClusterKeeperMode = "KEEPER_MODE_UNSPECIFIED"
)

Defines values for CloudruDbaasClickhouseV1ClusterKeeperMode.

func (CloudruDbaasClickhouseV1ClusterKeeperMode) Valid

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

type CloudruDbaasClickhouseV1ClusterStatus

type CloudruDbaasClickhouseV1ClusterStatus string

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

Example: STATUS_READY

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

Defines values for CloudruDbaasClickhouseV1ClusterStatus.

func (CloudruDbaasClickhouseV1ClusterStatus) Valid

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

type CloudruDbaasClickhouseV1CreateClusterRequest

type CloudruDbaasClickhouseV1CreateClusterRequest struct {
	// Config Конфигурация кластера ClickHouse.
	Config *CloudruDbaasClickhouseV1ClusterConfig `json:"config,omitempty"`

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

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

	// KeeperMode Режим работы ClickHouse Keeper.
	//
	// Example: KEEPER_MODE_EMBEDDED
	KeeperMode *CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode `json:"keeper_mode,omitempty"`

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

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

	// 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 Идентификатор спецификации кластера. Используйте спецификацию с назначением `SPECIFICATION_ROLE_CLICKHOUSE_SERVER`.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SpecificationId string `json:"specification_id"`

	// StandaloneKeeper Конфигурация выделенного ClickHouse Keeper.
	StandaloneKeeper *CloudruDbaasClickhouseV1StandaloneKeeper `json:"standalone_keeper,omitempty"`

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

	// SubnetId Идентификатор подсети.
	//
	//  Deprecated: используйте поле `subnet_ids`.
	//
	// 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"`

	// Version Версия кластера.
	//
	// Example: 24.3
	Version string `json:"version"`
}

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

type CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode

type CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode string

CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode Режим работы ClickHouse Keeper.

Example: KEEPER_MODE_EMBEDDED

const (
	CloudruDbaasClickhouseV1CreateClusterRequestKeeperModeKEEPERMODEEMBEDDED    CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode = "KEEPER_MODE_EMBEDDED"
	CloudruDbaasClickhouseV1CreateClusterRequestKeeperModeKEEPERMODESTANDALONE  CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode = "KEEPER_MODE_STANDALONE"
	CloudruDbaasClickhouseV1CreateClusterRequestKeeperModeKEEPERMODEUNSPECIFIED CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode = "KEEPER_MODE_UNSPECIFIED"
)

Defines values for CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode.

func (CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode) Valid

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

type CloudruDbaasClickhouseV1CreateDatabaseRequest

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

	// Name Название базы данных.
	//
	// Example: db_name
	Name string `json:"name"`
}

CloudruDbaasClickhouseV1CreateDatabaseRequest Запрос на создание базы данных.

type CloudruDbaasClickhouseV1CreateUserRequest

type CloudruDbaasClickhouseV1CreateUserRequest 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 Роли.
	//
	//  Deprecated: используйте поле `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"`
}

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

type CloudruDbaasClickhouseV1Database

type CloudruDbaasClickhouseV1Database struct {
	// Engine Движок базы данных.
	//
	// Example: Atomic
	Engine *string `json:"engine,omitempty"`

	// Name Название базы данных.
	//
	// Example: db_name
	Name string `json:"name"`
}

CloudruDbaasClickhouseV1Database База данных ClickHouse.

type CloudruDbaasClickhouseV1DeleteDatabaseResponse

type CloudruDbaasClickhouseV1DeleteDatabaseResponse = map[string]interface{}

CloudruDbaasClickhouseV1DeleteDatabaseResponse defines model for cloudru.dbaas.clickhouse.v1.DeleteDatabaseResponse.

type CloudruDbaasClickhouseV1DeleteUserResponse

type CloudruDbaasClickhouseV1DeleteUserResponse = map[string]interface{}

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

type CloudruDbaasClickhouseV1GrantRoleResponse

type CloudruDbaasClickhouseV1GrantRoleResponse = map[string]interface{}

CloudruDbaasClickhouseV1GrantRoleResponse Ответ на запрос на предоставление роли пользователю.

type CloudruDbaasClickhouseV1ListClustersResponse

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

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

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

type CloudruDbaasClickhouseV1ListDatabasesResponse

type CloudruDbaasClickhouseV1ListDatabasesResponse struct {
	// Databases Список баз данных продукта.
	Databases *[]CloudruDbaasClickhouseV1Database `json:"databases,omitempty"`
}

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

type CloudruDbaasClickhouseV1ListOperationsResponse

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

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

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

type CloudruDbaasClickhouseV1ListRolesResponse

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

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

type CloudruDbaasClickhouseV1ListSpecificationsResponse

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

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

type CloudruDbaasClickhouseV1ListUsersResponse

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

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

type CloudruDbaasClickhouseV1ListVersionsResponse

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

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

type CloudruDbaasClickhouseV1LoggingConfig

type CloudruDbaasClickhouseV1LoggingConfig 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"`
}

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

type CloudruDbaasClickhouseV1RevokeRoleResponse

type CloudruDbaasClickhouseV1RevokeRoleResponse = map[string]interface{}

CloudruDbaasClickhouseV1RevokeRoleResponse Ответ на запрос на отзыв роли у пользователя.

type CloudruDbaasClickhouseV1Role

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

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

type CloudruDbaasClickhouseV1Specification

type CloudruDbaasClickhouseV1Specification struct {
	// ClusterType Тип кластера.
	//
	// Example: CLUSTER_TYPE_SINGLE_SHARD
	ClusterType *CloudruDbaasClickhouseV1SpecificationClusterType `json:"cluster_type,omitempty"`

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

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

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

	// MaxReplicas Максимальное количество реплик на шард.
	//
	// Example: 3
	MaxReplicas *int32 `json:"max_replicas,omitempty"`

	// MaxShards Максимальное количество шардов.
	//
	// Example: 1
	MaxShards *int32 `json:"max_shards,omitempty"`

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

	// MinReplicas Минимальное количество реплик на шард.
	//
	// Example: 3
	MinReplicas *int32 `json:"min_replicas,omitempty"`

	// MinShards Минимальное количество шардов.
	//
	// Example: 1
	MinShards *int32 `json:"min_shards,omitempty"`

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

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

	// Role Назначение спецификации.
	//
	// Example: SPECIFICATION_ROLE_CLICKHOUSE_SERVER
	Role *CloudruDbaasClickhouseV1SpecificationRole `json:"role,omitempty"`
}

CloudruDbaasClickhouseV1Specification Спецификация ClickHouse.

type CloudruDbaasClickhouseV1SpecificationClusterType

type CloudruDbaasClickhouseV1SpecificationClusterType string

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

Example: CLUSTER_TYPE_SINGLE_SHARD

const (
	CLUSTERTYPEUNSPECIFIED CloudruDbaasClickhouseV1SpecificationClusterType = "CLUSTER_TYPE_UNSPECIFIED"
	MULTISHARD             CloudruDbaasClickhouseV1SpecificationClusterType = "MULTI_SHARD"
	SINGLENODE             CloudruDbaasClickhouseV1SpecificationClusterType = "SINGLE_NODE"
	SINGLESHARD            CloudruDbaasClickhouseV1SpecificationClusterType = "SINGLE_SHARD"
)

Defines values for CloudruDbaasClickhouseV1SpecificationClusterType.

func (CloudruDbaasClickhouseV1SpecificationClusterType) Valid

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

type CloudruDbaasClickhouseV1SpecificationFlavorType deprecated

type CloudruDbaasClickhouseV1SpecificationFlavorType string

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

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

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

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

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

Example: FLAVOR_TYPE_BALANCE

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

Defines values for CloudruDbaasClickhouseV1SpecificationFlavorType.

func (CloudruDbaasClickhouseV1SpecificationFlavorType) Valid

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

type CloudruDbaasClickhouseV1SpecificationRole

type CloudruDbaasClickhouseV1SpecificationRole string

CloudruDbaasClickhouseV1SpecificationRole Назначение спецификации.

Example: SPECIFICATION_ROLE_CLICKHOUSE_SERVER

const (
	CloudruDbaasClickhouseV1SpecificationRoleSPECIFICATIONROLECLICKHOUSEKEEPER CloudruDbaasClickhouseV1SpecificationRole = "SPECIFICATION_ROLE_CLICKHOUSE_KEEPER"
	CloudruDbaasClickhouseV1SpecificationRoleSPECIFICATIONROLECLICKHOUSESERVER CloudruDbaasClickhouseV1SpecificationRole = "SPECIFICATION_ROLE_CLICKHOUSE_SERVER"
	CloudruDbaasClickhouseV1SpecificationRoleSPECIFICATIONROLEUNSPECIFIED      CloudruDbaasClickhouseV1SpecificationRole = "SPECIFICATION_ROLE_UNSPECIFIED"
)

Defines values for CloudruDbaasClickhouseV1SpecificationRole.

func (CloudruDbaasClickhouseV1SpecificationRole) Valid

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

type CloudruDbaasClickhouseV1StandaloneKeeper

type CloudruDbaasClickhouseV1StandaloneKeeper struct {
	// SpecificationId Идентификатор спецификации выделенного ClickHouse Keeper. Используйте спецификацию с назначением `SPECIFICATION_ROLE_CLICKHOUSE_KEEPER`.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SpecificationId *string `json:"specification_id,omitempty"`

	// StorageGib Размер диска выделенного ClickHouse Keeper в гибибайтах.
	//
	// Example: 10
	StorageGib *int32 `json:"storage_gib,omitempty"`
}

CloudruDbaasClickhouseV1StandaloneKeeper Конфигурация выделенного ClickHouse Keeper.

type CloudruDbaasClickhouseV1UpdateClusterRequest

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

	// Config Конфигурация кластера ClickHouse.
	Config *CloudruDbaasClickhouseV1ClusterConfig `json:"config,omitempty"`

	// SpecificationId Идентификатор спецификации кластера ClickHouse для вертикального масштабирования.
	//
	// Example: 00000000-0000-0000-0000-000000000000
	SpecificationId *string `json:"specification_id,omitempty"`

	// StandaloneKeeper Ресурсы выделенного ClickHouse Keeper.
	StandaloneKeeper *CloudruDbaasClickhouseV1StandaloneKeeper `json:"standalone_keeper,omitempty"`

	// StorageGib Новый размер хранилища в гибибайтах.
	//
	// Example: 40
	StorageGib *int32 `json:"storage_gib,omitempty"`
}

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

type CloudruDbaasClickhouseV1UpdateUserRequest

type CloudruDbaasClickhouseV1UpdateUserRequest 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 Роли.
	//
	//  Deprecated: используйте поле `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"`
}

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

type CloudruDbaasClickhouseV1User

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

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

	// ReadOnly Доступ к пользователям:
	//  - `true` — пользователи, которых нельзя редактировать. Это пользователи databaseAdmin и userAdmin.
	//  - `false` — пользователи, которых можно редактировать. Это пользователи созданные через UI, public-api или terraform.
	//
	// Example: false
	ReadOnly *bool `json:"read_only,omitempty"`

	// Roles Назначенные роли.
	//
	//  Deprecated: используйте поле `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"`
}

CloudruDbaasClickhouseV1User Пользователь базы данных ClickHouse.

type CloudruDbaasClickhouseV1Version

type CloudruDbaasClickhouseV1Version struct {
	// Name Версия продукта.
	//
	// Example: 24.3
	Name *string `json:"name,omitempty"`
}

CloudruDbaasClickhouseV1Version Версия ClickHouse.

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 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 = CloudruDbaasClickhouseV1CreateClusterRequest

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 *CloudruDbaasClickhouseV1Cluster
	// 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 *CloudruDbaasClickhouseV1ListOperationsResponse
	// 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 *CloudruDbaasClickhouseV1ListClustersResponse
	// 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 = CloudruDbaasClickhouseV1UpdateClusterRequest

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 DatabaseServiceCreateJSONRequestBody

type DatabaseServiceCreateJSONRequestBody = CloudruDbaasClickhouseV1CreateDatabaseRequest

DatabaseServiceCreateJSONRequestBody defines body for DatabaseServiceCreate for application/json ContentType.

type DatabaseServiceCreateResponse

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

func ParseDatabaseServiceCreateResponse

func ParseDatabaseServiceCreateResponse(rsp *http.Response) (*DatabaseServiceCreateResponse, error)

ParseDatabaseServiceCreateResponse parses an HTTP response from a DatabaseServiceCreateWithResponse call

func (DatabaseServiceCreateResponse) ContentType

func (r DatabaseServiceCreateResponse) ContentType() string

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

func (DatabaseServiceCreateResponse) GetBody

func (r DatabaseServiceCreateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DatabaseServiceCreateResponse) GetJSON200

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

func (DatabaseServiceCreateResponse) GetJSONDefault

func (r DatabaseServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus

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

func (DatabaseServiceCreateResponse) Status

Status returns HTTPResponse.Status

func (DatabaseServiceCreateResponse) StatusCode

func (r DatabaseServiceCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DatabaseServiceDeleteResponse

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

func ParseDatabaseServiceDeleteResponse

func ParseDatabaseServiceDeleteResponse(rsp *http.Response) (*DatabaseServiceDeleteResponse, error)

ParseDatabaseServiceDeleteResponse parses an HTTP response from a DatabaseServiceDeleteWithResponse call

func (DatabaseServiceDeleteResponse) ContentType

func (r DatabaseServiceDeleteResponse) ContentType() string

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

func (DatabaseServiceDeleteResponse) GetBody

func (r DatabaseServiceDeleteResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DatabaseServiceDeleteResponse) GetJSON200

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

func (DatabaseServiceDeleteResponse) GetJSONDefault

func (r DatabaseServiceDeleteResponse) GetJSONDefault() *GoogleRpcStatus

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

func (DatabaseServiceDeleteResponse) Status

Status returns HTTPResponse.Status

func (DatabaseServiceDeleteResponse) StatusCode

func (r DatabaseServiceDeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DatabaseServiceGetResponse

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

func ParseDatabaseServiceGetResponse

func ParseDatabaseServiceGetResponse(rsp *http.Response) (*DatabaseServiceGetResponse, error)

ParseDatabaseServiceGetResponse parses an HTTP response from a DatabaseServiceGetWithResponse call

func (DatabaseServiceGetResponse) ContentType

func (r DatabaseServiceGetResponse) ContentType() string

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

func (DatabaseServiceGetResponse) GetBody

func (r DatabaseServiceGetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DatabaseServiceGetResponse) GetJSON200

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

func (DatabaseServiceGetResponse) GetJSONDefault

func (r DatabaseServiceGetResponse) GetJSONDefault() *GoogleRpcStatus

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

func (DatabaseServiceGetResponse) Status

Status returns HTTPResponse.Status

func (DatabaseServiceGetResponse) StatusCode

func (r DatabaseServiceGetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DatabaseServiceListResponse

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

func ParseDatabaseServiceListResponse

func ParseDatabaseServiceListResponse(rsp *http.Response) (*DatabaseServiceListResponse, error)

ParseDatabaseServiceListResponse parses an HTTP response from a DatabaseServiceListWithResponse call

func (DatabaseServiceListResponse) ContentType

func (r DatabaseServiceListResponse) ContentType() string

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

func (DatabaseServiceListResponse) GetBody

func (r DatabaseServiceListResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DatabaseServiceListResponse) GetJSON200

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

func (DatabaseServiceListResponse) GetJSONDefault

func (r DatabaseServiceListResponse) GetJSONDefault() *GoogleRpcStatus

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

func (DatabaseServiceListResponse) Status

Status returns HTTPResponse.Status

func (DatabaseServiceListResponse) StatusCode

func (r DatabaseServiceListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FlexInt64

type FlexInt64 int64

FlexInt64 — int64 из поля config кластера ClickHouse. Спецификация обещает число, API отдаёт строку ("100", как int64 в proto3 JSON); принимаем оба, отправляем числом.

func (*FlexInt64) UnmarshalJSON

func (v *FlexInt64) UnmarshalJSON(b []byte) error

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 *CloudruDbaasClickhouseV1ListRolesResponse
	// 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 {
	// Version Версия продукта.
	Version *string `form:"version,omitempty" json:"version,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"`

	// Role Назначение спецификаций.
	Role *SpecificationServiceListParamsRole `form:"role,omitempty" json:"role,omitempty"`
}

SpecificationServiceListParams defines parameters for SpecificationServiceList.

type SpecificationServiceListParamsRole

type SpecificationServiceListParamsRole string

SpecificationServiceListParamsRole defines parameters for SpecificationServiceList.

const (
	SpecificationServiceListParamsRoleSPECIFICATIONROLECLICKHOUSEKEEPER SpecificationServiceListParamsRole = "SPECIFICATION_ROLE_CLICKHOUSE_KEEPER"
	SpecificationServiceListParamsRoleSPECIFICATIONROLECLICKHOUSESERVER SpecificationServiceListParamsRole = "SPECIFICATION_ROLE_CLICKHOUSE_SERVER"
	SpecificationServiceListParamsRoleSPECIFICATIONROLEUNSPECIFIED      SpecificationServiceListParamsRole = "SPECIFICATION_ROLE_UNSPECIFIED"
)

Defines values for SpecificationServiceListParamsRole.

func (SpecificationServiceListParamsRole) Valid

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

type SpecificationServiceListResponse

type SpecificationServiceListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CloudruDbaasClickhouseV1ListSpecificationsResponse
	// 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 = CloudruDbaasClickhouseV1CreateUserRequest

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 *CloudruDbaasClickhouseV1User
	// 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 *CloudruDbaasClickhouseV1DeleteUserResponse
	// 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 *CloudruDbaasClickhouseV1User
	// 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 UserServiceGrantRoleParams

type UserServiceGrantRoleParams struct {
	// Role Роль, которую нужно выдать.
	Role *string `form:"role,omitempty" json:"role,omitempty"`
}

UserServiceGrantRoleParams defines parameters for UserServiceGrantRole.

type UserServiceGrantRoleResponse

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

func ParseUserServiceGrantRoleResponse

func ParseUserServiceGrantRoleResponse(rsp *http.Response) (*UserServiceGrantRoleResponse, error)

ParseUserServiceGrantRoleResponse parses an HTTP response from a UserServiceGrantRoleWithResponse call

func (UserServiceGrantRoleResponse) ContentType

func (r UserServiceGrantRoleResponse) ContentType() string

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

func (UserServiceGrantRoleResponse) GetBody

func (r UserServiceGrantRoleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UserServiceGrantRoleResponse) GetJSON200

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

func (UserServiceGrantRoleResponse) GetJSONDefault

func (r UserServiceGrantRoleResponse) GetJSONDefault() *GoogleRpcStatus

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

func (UserServiceGrantRoleResponse) Status

Status returns HTTPResponse.Status

func (UserServiceGrantRoleResponse) StatusCode

func (r UserServiceGrantRoleResponse) 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 *CloudruDbaasClickhouseV1ListUsersResponse
	// 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 UserServiceRevokeRoleParams

type UserServiceRevokeRoleParams struct {
	// Role Роль, которую нужно отозвать.
	Role *string `form:"role,omitempty" json:"role,omitempty"`
}

UserServiceRevokeRoleParams defines parameters for UserServiceRevokeRole.

type UserServiceRevokeRoleResponse

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

func ParseUserServiceRevokeRoleResponse

func ParseUserServiceRevokeRoleResponse(rsp *http.Response) (*UserServiceRevokeRoleResponse, error)

ParseUserServiceRevokeRoleResponse parses an HTTP response from a UserServiceRevokeRoleWithResponse call

func (UserServiceRevokeRoleResponse) ContentType

func (r UserServiceRevokeRoleResponse) ContentType() string

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

func (UserServiceRevokeRoleResponse) GetBody

func (r UserServiceRevokeRoleResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UserServiceRevokeRoleResponse) GetJSON200

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

func (UserServiceRevokeRoleResponse) GetJSONDefault

func (r UserServiceRevokeRoleResponse) GetJSONDefault() *GoogleRpcStatus

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

func (UserServiceRevokeRoleResponse) Status

Status returns HTTPResponse.Status

func (UserServiceRevokeRoleResponse) StatusCode

func (r UserServiceRevokeRoleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UserServiceUpdateJSONRequestBody

type UserServiceUpdateJSONRequestBody = CloudruDbaasClickhouseV1UpdateUserRequest

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 *CloudruDbaasClickhouseV1User
	// 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 *CloudruDbaasClickhouseV1ListVersionsResponse
	// 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