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 ¶
- func NewClusterServiceCreateRequest(server string, body ClusterServiceCreateJSONRequestBody) (*http.Request, error)
- func NewClusterServiceCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewClusterServiceDeleteRequest(server string, clusterId string) (*http.Request, error)
- func NewClusterServiceGetRequest(server string, clusterId string) (*http.Request, error)
- func NewClusterServiceListOperationsRequest(server string, clusterId string, params *ClusterServiceListOperationsParams) (*http.Request, error)
- func NewClusterServiceListRequest(server string, params *ClusterServiceListParams) (*http.Request, error)
- func NewClusterServiceUpdateRequest(server string, clusterId string, body ClusterServiceUpdateJSONRequestBody) (*http.Request, error)
- func NewClusterServiceUpdateRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewDatabaseServiceCreateRequest(server string, clusterId string, body DatabaseServiceCreateJSONRequestBody) (*http.Request, error)
- func NewDatabaseServiceCreateRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewDatabaseServiceDeleteRequest(server string, clusterId string, name string) (*http.Request, error)
- func NewDatabaseServiceGetRequest(server string, clusterId string, name string) (*http.Request, error)
- func NewDatabaseServiceListRequest(server string, clusterId string) (*http.Request, error)
- func NewOperationServiceGetRequest(server string, operationId string) (*http.Request, error)
- func NewRoleServiceListRequest(server string, clusterId string) (*http.Request, error)
- func NewSpecificationServiceListRequest(server string, params *SpecificationServiceListParams) (*http.Request, error)
- func NewUserServiceCreateRequest(server string, clusterId string, body UserServiceCreateJSONRequestBody) (*http.Request, error)
- func NewUserServiceCreateRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUserServiceDeleteRequest(server string, clusterId string, userName string) (*http.Request, error)
- func NewUserServiceGetRequest(server string, clusterId string, userName string) (*http.Request, error)
- func NewUserServiceGrantRoleRequest(server string, clusterId string, userName string, ...) (*http.Request, error)
- func NewUserServiceListRequest(server string, clusterId string) (*http.Request, error)
- func NewUserServiceRevokeRoleRequest(server string, clusterId string, userName string, ...) (*http.Request, error)
- func NewUserServiceUpdateRequest(server string, clusterId string, userName string, ...) (*http.Request, error)
- func NewUserServiceUpdateRequestWithBody(server string, clusterId string, userName string, contentType string, ...) (*http.Request, error)
- func NewVersionServiceListRequest(server string) (*http.Request, error)
- type Client
- func (c *Client) ClusterServiceCreate(ctx context.Context, body ClusterServiceCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ClusterServiceCreateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ClusterServiceDelete(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ClusterServiceGet(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ClusterServiceList(ctx context.Context, params *ClusterServiceListParams, ...) (*http.Response, error)
- func (c *Client) ClusterServiceListOperations(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ClusterServiceUpdate(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ClusterServiceUpdateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DatabaseServiceCreate(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) DatabaseServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DatabaseServiceDelete(ctx context.Context, clusterId string, name string, ...) (*http.Response, error)
- func (c *Client) DatabaseServiceGet(ctx context.Context, clusterId string, name string, ...) (*http.Response, error)
- func (c *Client) DatabaseServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OperationServiceGet(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RoleServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SpecificationServiceList(ctx context.Context, params *SpecificationServiceListParams, ...) (*http.Response, error)
- func (c *Client) UserServiceCreate(ctx context.Context, clusterId string, body UserServiceCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UserServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UserServiceDelete(ctx context.Context, clusterId string, userName string, ...) (*http.Response, error)
- func (c *Client) UserServiceGet(ctx context.Context, clusterId string, userName string, ...) (*http.Response, error)
- func (c *Client) UserServiceGrantRole(ctx context.Context, clusterId string, userName string, ...) (*http.Response, error)
- func (c *Client) UserServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UserServiceRevokeRole(ctx context.Context, clusterId string, userName string, ...) (*http.Response, error)
- func (c *Client) UserServiceUpdate(ctx context.Context, clusterId string, userName string, ...) (*http.Response, error)
- func (c *Client) UserServiceUpdateWithBody(ctx context.Context, clusterId string, userName string, contentType string, ...) (*http.Response, error)
- func (c *Client) VersionServiceList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ClusterServiceCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ClusterServiceCreateResponse, error)
- func (c *ClientWithResponses) ClusterServiceCreateWithResponse(ctx context.Context, body ClusterServiceCreateJSONRequestBody, ...) (*ClusterServiceCreateResponse, error)
- func (c *ClientWithResponses) ClusterServiceDeleteWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceDeleteResponse, error)
- func (c *ClientWithResponses) ClusterServiceGetWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceGetResponse, error)
- func (c *ClientWithResponses) ClusterServiceListOperationsWithResponse(ctx context.Context, clusterId string, ...) (*ClusterServiceListOperationsResponse, error)
- func (c *ClientWithResponses) ClusterServiceListWithResponse(ctx context.Context, params *ClusterServiceListParams, ...) (*ClusterServiceListResponse, error)
- func (c *ClientWithResponses) ClusterServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*ClusterServiceUpdateResponse, error)
- func (c *ClientWithResponses) ClusterServiceUpdateWithResponse(ctx context.Context, clusterId string, ...) (*ClusterServiceUpdateResponse, error)
- func (c *ClientWithResponses) DatabaseServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*DatabaseServiceCreateResponse, error)
- func (c *ClientWithResponses) DatabaseServiceCreateWithResponse(ctx context.Context, clusterId string, ...) (*DatabaseServiceCreateResponse, error)
- func (c *ClientWithResponses) DatabaseServiceDeleteWithResponse(ctx context.Context, clusterId string, name string, ...) (*DatabaseServiceDeleteResponse, error)
- func (c *ClientWithResponses) DatabaseServiceGetWithResponse(ctx context.Context, clusterId string, name string, ...) (*DatabaseServiceGetResponse, error)
- func (c *ClientWithResponses) DatabaseServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*DatabaseServiceListResponse, error)
- func (c *ClientWithResponses) OperationServiceGetWithResponse(ctx context.Context, operationId string, reqEditors ...RequestEditorFn) (*OperationServiceGetResponse, error)
- func (c *ClientWithResponses) RoleServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*RoleServiceListResponse, error)
- func (c *ClientWithResponses) SpecificationServiceListWithResponse(ctx context.Context, params *SpecificationServiceListParams, ...) (*SpecificationServiceListResponse, error)
- func (c *ClientWithResponses) UserServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*UserServiceCreateResponse, error)
- func (c *ClientWithResponses) UserServiceCreateWithResponse(ctx context.Context, clusterId string, body UserServiceCreateJSONRequestBody, ...) (*UserServiceCreateResponse, error)
- func (c *ClientWithResponses) UserServiceDeleteWithResponse(ctx context.Context, clusterId string, userName string, ...) (*UserServiceDeleteResponse, error)
- func (c *ClientWithResponses) UserServiceGetWithResponse(ctx context.Context, clusterId string, userName string, ...) (*UserServiceGetResponse, error)
- func (c *ClientWithResponses) UserServiceGrantRoleWithResponse(ctx context.Context, clusterId string, userName string, ...) (*UserServiceGrantRoleResponse, error)
- func (c *ClientWithResponses) UserServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*UserServiceListResponse, error)
- func (c *ClientWithResponses) UserServiceRevokeRoleWithResponse(ctx context.Context, clusterId string, userName string, ...) (*UserServiceRevokeRoleResponse, error)
- func (c *ClientWithResponses) UserServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, userName string, contentType string, ...) (*UserServiceUpdateResponse, error)
- func (c *ClientWithResponses) UserServiceUpdateWithResponse(ctx context.Context, clusterId string, userName string, ...) (*UserServiceUpdateResponse, error)
- func (c *ClientWithResponses) VersionServiceListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*VersionServiceListResponse, error)
- type ClientWithResponsesInterface
- type CloudruDbaasClickhouseV1Cluster
- type CloudruDbaasClickhouseV1ClusterConfig
- type CloudruDbaasClickhouseV1ClusterHealth
- type CloudruDbaasClickhouseV1ClusterKeeperMode
- type CloudruDbaasClickhouseV1ClusterStatus
- type CloudruDbaasClickhouseV1CreateClusterRequest
- type CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode
- type CloudruDbaasClickhouseV1CreateDatabaseRequest
- type CloudruDbaasClickhouseV1CreateUserRequest
- type CloudruDbaasClickhouseV1Database
- type CloudruDbaasClickhouseV1DeleteDatabaseResponse
- type CloudruDbaasClickhouseV1DeleteUserResponse
- type CloudruDbaasClickhouseV1GrantRoleResponse
- type CloudruDbaasClickhouseV1ListClustersResponse
- type CloudruDbaasClickhouseV1ListDatabasesResponse
- type CloudruDbaasClickhouseV1ListOperationsResponse
- type CloudruDbaasClickhouseV1ListRolesResponse
- type CloudruDbaasClickhouseV1ListSpecificationsResponse
- type CloudruDbaasClickhouseV1ListUsersResponse
- type CloudruDbaasClickhouseV1ListVersionsResponse
- type CloudruDbaasClickhouseV1LoggingConfig
- type CloudruDbaasClickhouseV1RevokeRoleResponse
- type CloudruDbaasClickhouseV1Role
- type CloudruDbaasClickhouseV1Specification
- type CloudruDbaasClickhouseV1SpecificationClusterType
- type CloudruDbaasClickhouseV1SpecificationFlavorTypedeprecated
- type CloudruDbaasClickhouseV1SpecificationRole
- type CloudruDbaasClickhouseV1StandaloneKeeper
- type CloudruDbaasClickhouseV1UpdateClusterRequest
- type CloudruDbaasClickhouseV1UpdateUserRequest
- type CloudruDbaasClickhouseV1User
- type CloudruDbaasClickhouseV1Version
- type CloudruDbaasOperationOperation
- type CloudruProtobufV1RepeatedString
- type ClusterServiceCreateJSONRequestBody
- type ClusterServiceCreateResponse
- func (r ClusterServiceCreateResponse) ContentType() string
- func (r ClusterServiceCreateResponse) GetBody() []byte
- func (r ClusterServiceCreateResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r ClusterServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceCreateResponse) Status() string
- func (r ClusterServiceCreateResponse) StatusCode() int
- type ClusterServiceDeleteResponse
- func (r ClusterServiceDeleteResponse) ContentType() string
- func (r ClusterServiceDeleteResponse) GetBody() []byte
- func (r ClusterServiceDeleteResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r ClusterServiceDeleteResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceDeleteResponse) Status() string
- func (r ClusterServiceDeleteResponse) StatusCode() int
- type ClusterServiceGetResponse
- func (r ClusterServiceGetResponse) ContentType() string
- func (r ClusterServiceGetResponse) GetBody() []byte
- func (r ClusterServiceGetResponse) GetJSON200() *CloudruDbaasClickhouseV1Cluster
- func (r ClusterServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceGetResponse) Status() string
- func (r ClusterServiceGetResponse) StatusCode() int
- type ClusterServiceListOperationsParams
- type ClusterServiceListOperationsResponse
- func (r ClusterServiceListOperationsResponse) ContentType() string
- func (r ClusterServiceListOperationsResponse) GetBody() []byte
- func (r ClusterServiceListOperationsResponse) GetJSON200() *CloudruDbaasClickhouseV1ListOperationsResponse
- func (r ClusterServiceListOperationsResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceListOperationsResponse) Status() string
- func (r ClusterServiceListOperationsResponse) StatusCode() int
- type ClusterServiceListParams
- type ClusterServiceListResponse
- func (r ClusterServiceListResponse) ContentType() string
- func (r ClusterServiceListResponse) GetBody() []byte
- func (r ClusterServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListClustersResponse
- func (r ClusterServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceListResponse) Status() string
- func (r ClusterServiceListResponse) StatusCode() int
- type ClusterServiceUpdateJSONRequestBody
- type ClusterServiceUpdateResponse
- func (r ClusterServiceUpdateResponse) ContentType() string
- func (r ClusterServiceUpdateResponse) GetBody() []byte
- func (r ClusterServiceUpdateResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r ClusterServiceUpdateResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceUpdateResponse) Status() string
- func (r ClusterServiceUpdateResponse) StatusCode() int
- type DatabaseServiceCreateJSONRequestBody
- type DatabaseServiceCreateResponse
- func (r DatabaseServiceCreateResponse) ContentType() string
- func (r DatabaseServiceCreateResponse) GetBody() []byte
- func (r DatabaseServiceCreateResponse) GetJSON200() *CloudruDbaasClickhouseV1Database
- func (r DatabaseServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus
- func (r DatabaseServiceCreateResponse) Status() string
- func (r DatabaseServiceCreateResponse) StatusCode() int
- type DatabaseServiceDeleteResponse
- func (r DatabaseServiceDeleteResponse) ContentType() string
- func (r DatabaseServiceDeleteResponse) GetBody() []byte
- func (r DatabaseServiceDeleteResponse) GetJSON200() *CloudruDbaasClickhouseV1DeleteDatabaseResponse
- func (r DatabaseServiceDeleteResponse) GetJSONDefault() *GoogleRpcStatus
- func (r DatabaseServiceDeleteResponse) Status() string
- func (r DatabaseServiceDeleteResponse) StatusCode() int
- type DatabaseServiceGetResponse
- func (r DatabaseServiceGetResponse) ContentType() string
- func (r DatabaseServiceGetResponse) GetBody() []byte
- func (r DatabaseServiceGetResponse) GetJSON200() *CloudruDbaasClickhouseV1Database
- func (r DatabaseServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
- func (r DatabaseServiceGetResponse) Status() string
- func (r DatabaseServiceGetResponse) StatusCode() int
- type DatabaseServiceListResponse
- func (r DatabaseServiceListResponse) ContentType() string
- func (r DatabaseServiceListResponse) GetBody() []byte
- func (r DatabaseServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListDatabasesResponse
- func (r DatabaseServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r DatabaseServiceListResponse) Status() string
- func (r DatabaseServiceListResponse) StatusCode() int
- type FlexInt64
- type GoogleProtobufAny
- type GoogleRpcStatus
- type HttpRequestDoer
- type OperationServiceGetResponse
- func (r OperationServiceGetResponse) ContentType() string
- func (r OperationServiceGetResponse) GetBody() []byte
- func (r OperationServiceGetResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r OperationServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
- func (r OperationServiceGetResponse) Status() string
- func (r OperationServiceGetResponse) StatusCode() int
- type RequestEditorFn
- type RoleServiceListResponse
- func (r RoleServiceListResponse) ContentType() string
- func (r RoleServiceListResponse) GetBody() []byte
- func (r RoleServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListRolesResponse
- func (r RoleServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r RoleServiceListResponse) Status() string
- func (r RoleServiceListResponse) StatusCode() int
- type SpecificationServiceListParams
- type SpecificationServiceListParamsRole
- type SpecificationServiceListResponse
- func (r SpecificationServiceListResponse) ContentType() string
- func (r SpecificationServiceListResponse) GetBody() []byte
- func (r SpecificationServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListSpecificationsResponse
- func (r SpecificationServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r SpecificationServiceListResponse) Status() string
- func (r SpecificationServiceListResponse) StatusCode() int
- type UserServiceCreateJSONRequestBody
- type UserServiceCreateResponse
- func (r UserServiceCreateResponse) ContentType() string
- func (r UserServiceCreateResponse) GetBody() []byte
- func (r UserServiceCreateResponse) GetJSON200() *CloudruDbaasClickhouseV1User
- func (r UserServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceCreateResponse) Status() string
- func (r UserServiceCreateResponse) StatusCode() int
- type UserServiceDeleteResponse
- func (r UserServiceDeleteResponse) ContentType() string
- func (r UserServiceDeleteResponse) GetBody() []byte
- func (r UserServiceDeleteResponse) GetJSON200() *CloudruDbaasClickhouseV1DeleteUserResponse
- func (r UserServiceDeleteResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceDeleteResponse) Status() string
- func (r UserServiceDeleteResponse) StatusCode() int
- type UserServiceGetResponse
- func (r UserServiceGetResponse) ContentType() string
- func (r UserServiceGetResponse) GetBody() []byte
- func (r UserServiceGetResponse) GetJSON200() *CloudruDbaasClickhouseV1User
- func (r UserServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceGetResponse) Status() string
- func (r UserServiceGetResponse) StatusCode() int
- type UserServiceGrantRoleParams
- type UserServiceGrantRoleResponse
- func (r UserServiceGrantRoleResponse) ContentType() string
- func (r UserServiceGrantRoleResponse) GetBody() []byte
- func (r UserServiceGrantRoleResponse) GetJSON200() *CloudruDbaasClickhouseV1GrantRoleResponse
- func (r UserServiceGrantRoleResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceGrantRoleResponse) Status() string
- func (r UserServiceGrantRoleResponse) StatusCode() int
- type UserServiceListResponse
- func (r UserServiceListResponse) ContentType() string
- func (r UserServiceListResponse) GetBody() []byte
- func (r UserServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListUsersResponse
- func (r UserServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceListResponse) Status() string
- func (r UserServiceListResponse) StatusCode() int
- type UserServiceRevokeRoleParams
- type UserServiceRevokeRoleResponse
- func (r UserServiceRevokeRoleResponse) ContentType() string
- func (r UserServiceRevokeRoleResponse) GetBody() []byte
- func (r UserServiceRevokeRoleResponse) GetJSON200() *CloudruDbaasClickhouseV1RevokeRoleResponse
- func (r UserServiceRevokeRoleResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceRevokeRoleResponse) Status() string
- func (r UserServiceRevokeRoleResponse) StatusCode() int
- type UserServiceUpdateJSONRequestBody
- type UserServiceUpdateResponse
- func (r UserServiceUpdateResponse) ContentType() string
- func (r UserServiceUpdateResponse) GetBody() []byte
- func (r UserServiceUpdateResponse) GetJSON200() *CloudruDbaasClickhouseV1User
- func (r UserServiceUpdateResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceUpdateResponse) Status() string
- func (r UserServiceUpdateResponse) StatusCode() int
- type VersionServiceListResponse
- func (r VersionServiceListResponse) ContentType() string
- func (r VersionServiceListResponse) GetBody() []byte
- func (r VersionServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListVersionsResponse
- func (r VersionServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r VersionServiceListResponse) Status() string
- func (r VersionServiceListResponse) StatusCode() int
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 ¶
NewClusterServiceDeleteRequest constructs an http.Request for the ClusterServiceDelete method
func NewClusterServiceGetRequest ¶
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 ¶
NewDatabaseServiceListRequest constructs an http.Request for the DatabaseServiceList method
func NewOperationServiceGetRequest ¶
NewOperationServiceGetRequest constructs an http.Request for the OperationServiceGet method
func NewRoleServiceListRequest ¶
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 ¶
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
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 ¶
ClientOption allows setting custom parameters during construction
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 ¶
func (e CloudruDbaasClickhouseV1ClusterHealth) Valid() bool
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 ¶
func (e CloudruDbaasClickhouseV1ClusterKeeperMode) Valid() bool
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 ¶
func (e CloudruDbaasClickhouseV1ClusterStatus) Valid() bool
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 ¶
func (e CloudruDbaasClickhouseV1CreateClusterRequestKeeperMode) Valid() bool
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 ¶
func (e CloudruDbaasClickhouseV1SpecificationClusterType) Valid() bool
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
const ( BALANCE CloudruDbaasClickhouseV1SpecificationFlavorType = "BALANCE" CPU CloudruDbaasClickhouseV1SpecificationFlavorType = "CPU" FLAVORTYPEUNSPECIFIED CloudruDbaasClickhouseV1SpecificationFlavorType = "FLAVOR_TYPE_UNSPECIFIED" MEMORY CloudruDbaasClickhouseV1SpecificationFlavorType = "MEMORY" )
Defines values for CloudruDbaasClickhouseV1SpecificationFlavorType.
func (CloudruDbaasClickhouseV1SpecificationFlavorType) Valid ¶
func (e CloudruDbaasClickhouseV1SpecificationFlavorType) Valid() bool
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 ¶
func (e CloudruDbaasClickhouseV1SpecificationRole) Valid() bool
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 ¶
func (r ClusterServiceCreateResponse) GetJSON200() *CloudruDbaasOperationOperation
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 ¶
func (r ClusterServiceCreateResponse) Status() string
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 ¶
func (r ClusterServiceDeleteResponse) GetJSON200() *CloudruDbaasOperationOperation
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 ¶
func (r ClusterServiceDeleteResponse) Status() string
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 ¶
func (r ClusterServiceGetResponse) GetJSON200() *CloudruDbaasClickhouseV1Cluster
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 ¶
func (r ClusterServiceListOperationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClusterServiceListOperationsResponse) GetBody ¶
func (r ClusterServiceListOperationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClusterServiceListOperationsResponse) GetJSON200 ¶
func (r ClusterServiceListOperationsResponse) GetJSON200() *CloudruDbaasClickhouseV1ListOperationsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClusterServiceListOperationsResponse) GetJSONDefault ¶
func (r ClusterServiceListOperationsResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ClusterServiceListOperationsResponse) Status ¶
func (r ClusterServiceListOperationsResponse) Status() string
Status returns HTTPResponse.Status
func (ClusterServiceListOperationsResponse) StatusCode ¶
func (r ClusterServiceListOperationsResponse) StatusCode() int
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 ¶
func (r ClusterServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListClustersResponse
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 ¶
func (r ClusterServiceListResponse) Status() string
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 ¶
func (r ClusterServiceUpdateResponse) GetJSON200() *CloudruDbaasOperationOperation
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 ¶
func (r ClusterServiceUpdateResponse) Status() string
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 ¶
func (r DatabaseServiceCreateResponse) GetJSON200() *CloudruDbaasClickhouseV1Database
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 ¶
func (r DatabaseServiceCreateResponse) Status() string
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 ¶
func (r DatabaseServiceDeleteResponse) GetJSON200() *CloudruDbaasClickhouseV1DeleteDatabaseResponse
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 ¶
func (r DatabaseServiceDeleteResponse) Status() string
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 ¶
func (r DatabaseServiceGetResponse) GetJSON200() *CloudruDbaasClickhouseV1Database
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 ¶
func (r DatabaseServiceGetResponse) Status() string
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 ¶
func (r DatabaseServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListDatabasesResponse
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 ¶
func (r DatabaseServiceListResponse) Status() string
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 ¶
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 ¶
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 ¶
func (r OperationServiceGetResponse) GetJSON200() *CloudruDbaasOperationOperation
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 ¶
func (r OperationServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (OperationServiceGetResponse) StatusCode ¶
func (r OperationServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
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 ¶
func (r RoleServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListRolesResponse
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 ¶
func (e SpecificationServiceListParamsRole) Valid() bool
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 ¶
func (r SpecificationServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListSpecificationsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SpecificationServiceListResponse) GetJSONDefault ¶
func (r SpecificationServiceListResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (SpecificationServiceListResponse) Status ¶
func (r SpecificationServiceListResponse) Status() string
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 ¶
func (r UserServiceCreateResponse) GetJSON200() *CloudruDbaasClickhouseV1User
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 ¶
func (r UserServiceDeleteResponse) GetJSON200() *CloudruDbaasClickhouseV1DeleteUserResponse
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 ¶
func (r UserServiceGetResponse) GetJSON200() *CloudruDbaasClickhouseV1User
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 ¶
func (r UserServiceGrantRoleResponse) GetJSON200() *CloudruDbaasClickhouseV1GrantRoleResponse
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 ¶
func (r UserServiceGrantRoleResponse) Status() string
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 ¶
func (r UserServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListUsersResponse
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 ¶
func (r UserServiceRevokeRoleResponse) GetJSON200() *CloudruDbaasClickhouseV1RevokeRoleResponse
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 ¶
func (r UserServiceRevokeRoleResponse) Status() string
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 ¶
func (r UserServiceUpdateResponse) GetJSON200() *CloudruDbaasClickhouseV1User
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 ¶
func (r VersionServiceListResponse) GetJSON200() *CloudruDbaasClickhouseV1ListVersionsResponse
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 ¶
func (r VersionServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (VersionServiceListResponse) StatusCode ¶
func (r VersionServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode