Documentation
¶
Overview ¶
Package postgresql 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 NewBackupServiceCreateRequest(server string, clusterId string, body BackupServiceCreateJSONRequestBody) (*http.Request, error)
- func NewBackupServiceCreateRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
- func NewBackupServiceGetRequest(server string, clusterId string, name string) (*http.Request, error)
- func NewBackupServiceListRequest(server string, clusterId string) (*http.Request, error)
- 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 NewClusterServiceListLocalesRequest(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 NewClusterServiceResumeRequest(server string, clusterId string) (*http.Request, error)
- func NewClusterServiceStorageInfoRequest(server string, clusterId string) (*http.Request, error)
- func NewClusterServiceSuspendRequest(server string, clusterId string) (*http.Request, error)
- func NewClusterServiceSwitchoverRequest(server string, clusterId string) (*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 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, name string) (*http.Request, error)
- func NewUserServiceGetRequest(server string, clusterId string, name string) (*http.Request, error)
- func NewUserServiceListRequest(server string, clusterId string) (*http.Request, error)
- func NewUserServiceUpdateRequest(server string, clusterId string, name string, ...) (*http.Request, error)
- func NewUserServiceUpdateRequestWithBody(server string, clusterId string, name string, contentType string, ...) (*http.Request, error)
- func NewVersionServiceListLocalesRequest(server string, versionName string, params *VersionServiceListLocalesParams) (*http.Request, error)
- func NewVersionServiceListRequest(server string, params *VersionServiceListParams) (*http.Request, error)
- type BackupServiceCreateJSONRequestBody
- type BackupServiceCreateResponse
- func (r BackupServiceCreateResponse) ContentType() string
- func (r BackupServiceCreateResponse) GetBody() []byte
- func (r BackupServiceCreateResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r BackupServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus
- func (r BackupServiceCreateResponse) Status() string
- func (r BackupServiceCreateResponse) StatusCode() int
- type BackupServiceGetResponse
- func (r BackupServiceGetResponse) ContentType() string
- func (r BackupServiceGetResponse) GetBody() []byte
- func (r BackupServiceGetResponse) GetJSON200() *CloudruDbaasPostgresqlV1Backup
- func (r BackupServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
- func (r BackupServiceGetResponse) Status() string
- func (r BackupServiceGetResponse) StatusCode() int
- type BackupServiceListResponse
- func (r BackupServiceListResponse) ContentType() string
- func (r BackupServiceListResponse) GetBody() []byte
- func (r BackupServiceListResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListBackupsResponse
- func (r BackupServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r BackupServiceListResponse) Status() string
- func (r BackupServiceListResponse) StatusCode() int
- type Client
- func (c *Client) BackupServiceCreate(ctx context.Context, clusterId string, body BackupServiceCreateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BackupServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BackupServiceGet(ctx context.Context, clusterId string, name string, ...) (*http.Response, error)
- func (c *Client) BackupServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- 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) ClusterServiceListLocales(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ClusterServiceListOperations(ctx context.Context, clusterId string, ...) (*http.Response, error)
- func (c *Client) ClusterServiceResume(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ClusterServiceStorageInfo(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ClusterServiceSuspend(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ClusterServiceSwitchover(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*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) 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, name string, ...) (*http.Response, error)
- func (c *Client) UserServiceGet(ctx context.Context, clusterId string, name string, ...) (*http.Response, error)
- func (c *Client) UserServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UserServiceUpdate(ctx context.Context, clusterId string, name string, ...) (*http.Response, error)
- func (c *Client) UserServiceUpdateWithBody(ctx context.Context, clusterId string, name string, contentType string, ...) (*http.Response, error)
- func (c *Client) VersionServiceList(ctx context.Context, params *VersionServiceListParams, ...) (*http.Response, error)
- func (c *Client) VersionServiceListLocales(ctx context.Context, versionName string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) BackupServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, ...) (*BackupServiceCreateResponse, error)
- func (c *ClientWithResponses) BackupServiceCreateWithResponse(ctx context.Context, clusterId string, body BackupServiceCreateJSONRequestBody, ...) (*BackupServiceCreateResponse, error)
- func (c *ClientWithResponses) BackupServiceGetWithResponse(ctx context.Context, clusterId string, name string, ...) (*BackupServiceGetResponse, error)
- func (c *ClientWithResponses) BackupServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*BackupServiceListResponse, error)
- 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) ClusterServiceListLocalesWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceListLocalesResponse, 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) ClusterServiceResumeWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceResumeResponse, error)
- func (c *ClientWithResponses) ClusterServiceStorageInfoWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceStorageInfoResponse, error)
- func (c *ClientWithResponses) ClusterServiceSuspendWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceSuspendResponse, error)
- func (c *ClientWithResponses) ClusterServiceSwitchoverWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceSwitchoverResponse, 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) 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, name string, ...) (*UserServiceDeleteResponse, error)
- func (c *ClientWithResponses) UserServiceGetWithResponse(ctx context.Context, clusterId string, name string, ...) (*UserServiceGetResponse, error)
- func (c *ClientWithResponses) UserServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*UserServiceListResponse, error)
- func (c *ClientWithResponses) UserServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, name string, contentType string, ...) (*UserServiceUpdateResponse, error)
- func (c *ClientWithResponses) UserServiceUpdateWithResponse(ctx context.Context, clusterId string, name string, ...) (*UserServiceUpdateResponse, error)
- func (c *ClientWithResponses) VersionServiceListLocalesWithResponse(ctx context.Context, versionName string, ...) (*VersionServiceListLocalesResponse, error)
- func (c *ClientWithResponses) VersionServiceListWithResponse(ctx context.Context, params *VersionServiceListParams, ...) (*VersionServiceListResponse, error)
- type ClientWithResponsesInterface
- type CloudruDbaasOperationOperation
- type CloudruDbaasPostgresqlV1AnytimeMaintenanceWindow
- type CloudruDbaasPostgresqlV1Backup
- type CloudruDbaasPostgresqlV1BackupSpec
- type CloudruDbaasPostgresqlV1BackupStatus
- type CloudruDbaasPostgresqlV1Cluster
- type CloudruDbaasPostgresqlV1ClusterHealth
- type CloudruDbaasPostgresqlV1ClusterStatus
- type CloudruDbaasPostgresqlV1ConnectionPoolerConfig
- type CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode
- type CloudruDbaasPostgresqlV1CreateBackupRequest
- type CloudruDbaasPostgresqlV1CreateClusterRequest
- type CloudruDbaasPostgresqlV1CreateDatabaseRequest
- type CloudruDbaasPostgresqlV1CreateUserRequest
- type CloudruDbaasPostgresqlV1Database
- type CloudruDbaasPostgresqlV1DeleteDatabaseResponse
- type CloudruDbaasPostgresqlV1DeleteUserResponse
- type CloudruDbaasPostgresqlV1ListBackupsResponse
- type CloudruDbaasPostgresqlV1ListClustersResponse
- type CloudruDbaasPostgresqlV1ListDatabasesResponse
- type CloudruDbaasPostgresqlV1ListLocalesResponse
- type CloudruDbaasPostgresqlV1ListOperationsResponse
- type CloudruDbaasPostgresqlV1ListSpecificationResponse
- type CloudruDbaasPostgresqlV1ListUsersResponse
- type CloudruDbaasPostgresqlV1ListVersionLocalesResponse
- type CloudruDbaasPostgresqlV1ListVersionsResponse
- type CloudruDbaasPostgresqlV1LoggingConfig
- type CloudruDbaasPostgresqlV1MaintenanceWindow
- type CloudruDbaasPostgresqlV1PostgreSQLRole
- type CloudruDbaasPostgresqlV1RecoverySpec
- type CloudruDbaasPostgresqlV1Specification
- type CloudruDbaasPostgresqlV1SpecificationDeploymentMode
- type CloudruDbaasPostgresqlV1SpecificationFlavorType
- type CloudruDbaasPostgresqlV1StorageInfoResponse
- type CloudruDbaasPostgresqlV1StorageSize
- type CloudruDbaasPostgresqlV1StorageUsage
- type CloudruDbaasPostgresqlV1UpdateClusterRequest
- type CloudruDbaasPostgresqlV1UpdateUserRequest
- type CloudruDbaasPostgresqlV1User
- type CloudruDbaasPostgresqlV1Version
- type CloudruDbaasPostgresqlV1WeeklyMaintenanceWindow
- type CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay
- 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() *CloudruDbaasPostgresqlV1Cluster
- func (r ClusterServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceGetResponse) Status() string
- func (r ClusterServiceGetResponse) StatusCode() int
- type ClusterServiceListLocalesResponse
- func (r ClusterServiceListLocalesResponse) ContentType() string
- func (r ClusterServiceListLocalesResponse) GetBody() []byte
- func (r ClusterServiceListLocalesResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListLocalesResponse
- func (r ClusterServiceListLocalesResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceListLocalesResponse) Status() string
- func (r ClusterServiceListLocalesResponse) StatusCode() int
- type ClusterServiceListOperationsParams
- type ClusterServiceListOperationsResponse
- func (r ClusterServiceListOperationsResponse) ContentType() string
- func (r ClusterServiceListOperationsResponse) GetBody() []byte
- func (r ClusterServiceListOperationsResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListOperationsResponse
- 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() *CloudruDbaasPostgresqlV1ListClustersResponse
- func (r ClusterServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceListResponse) Status() string
- func (r ClusterServiceListResponse) StatusCode() int
- type ClusterServiceResumeResponse
- func (r ClusterServiceResumeResponse) ContentType() string
- func (r ClusterServiceResumeResponse) GetBody() []byte
- func (r ClusterServiceResumeResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r ClusterServiceResumeResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceResumeResponse) Status() string
- func (r ClusterServiceResumeResponse) StatusCode() int
- type ClusterServiceStorageInfoResponse
- func (r ClusterServiceStorageInfoResponse) ContentType() string
- func (r ClusterServiceStorageInfoResponse) GetBody() []byte
- func (r ClusterServiceStorageInfoResponse) GetJSON200() *CloudruDbaasPostgresqlV1StorageInfoResponse
- func (r ClusterServiceStorageInfoResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceStorageInfoResponse) Status() string
- func (r ClusterServiceStorageInfoResponse) StatusCode() int
- type ClusterServiceSuspendResponse
- func (r ClusterServiceSuspendResponse) ContentType() string
- func (r ClusterServiceSuspendResponse) GetBody() []byte
- func (r ClusterServiceSuspendResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r ClusterServiceSuspendResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceSuspendResponse) Status() string
- func (r ClusterServiceSuspendResponse) StatusCode() int
- type ClusterServiceSwitchoverResponse
- func (r ClusterServiceSwitchoverResponse) ContentType() string
- func (r ClusterServiceSwitchoverResponse) GetBody() []byte
- func (r ClusterServiceSwitchoverResponse) GetJSON200() *CloudruDbaasOperationOperation
- func (r ClusterServiceSwitchoverResponse) GetJSONDefault() *GoogleRpcStatus
- func (r ClusterServiceSwitchoverResponse) Status() string
- func (r ClusterServiceSwitchoverResponse) 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() *CloudruDbaasPostgresqlV1Database
- 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() *CloudruDbaasPostgresqlV1DeleteDatabaseResponse
- 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() *CloudruDbaasPostgresqlV1Database
- 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() *CloudruDbaasPostgresqlV1ListDatabasesResponse
- func (r DatabaseServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r DatabaseServiceListResponse) Status() string
- func (r DatabaseServiceListResponse) StatusCode() int
- 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 SpecificationServiceListParams
- type SpecificationServiceListResponse
- func (r SpecificationServiceListResponse) ContentType() string
- func (r SpecificationServiceListResponse) GetBody() []byte
- func (r SpecificationServiceListResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListSpecificationResponse
- 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() *CloudruDbaasPostgresqlV1User
- 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() *CloudruDbaasPostgresqlV1DeleteUserResponse
- 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() *CloudruDbaasPostgresqlV1User
- func (r UserServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceGetResponse) Status() string
- func (r UserServiceGetResponse) StatusCode() int
- type UserServiceListResponse
- func (r UserServiceListResponse) ContentType() string
- func (r UserServiceListResponse) GetBody() []byte
- func (r UserServiceListResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListUsersResponse
- func (r UserServiceListResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceListResponse) Status() string
- func (r UserServiceListResponse) StatusCode() int
- type UserServiceUpdateJSONRequestBody
- type UserServiceUpdateResponse
- func (r UserServiceUpdateResponse) ContentType() string
- func (r UserServiceUpdateResponse) GetBody() []byte
- func (r UserServiceUpdateResponse) GetJSON200() *CloudruDbaasPostgresqlV1User
- func (r UserServiceUpdateResponse) GetJSONDefault() *GoogleRpcStatus
- func (r UserServiceUpdateResponse) Status() string
- func (r UserServiceUpdateResponse) StatusCode() int
- type VersionServiceListLocalesParams
- type VersionServiceListLocalesResponse
- func (r VersionServiceListLocalesResponse) ContentType() string
- func (r VersionServiceListLocalesResponse) GetBody() []byte
- func (r VersionServiceListLocalesResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListVersionLocalesResponse
- func (r VersionServiceListLocalesResponse) GetJSONDefault() *GoogleRpcStatus
- func (r VersionServiceListLocalesResponse) Status() string
- func (r VersionServiceListLocalesResponse) StatusCode() int
- type VersionServiceListParams
- type VersionServiceListResponse
- func (r VersionServiceListResponse) ContentType() string
- func (r VersionServiceListResponse) GetBody() []byte
- func (r VersionServiceListResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListVersionsResponse
- 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 NewBackupServiceCreateRequest ¶
func NewBackupServiceCreateRequest(server string, clusterId string, body BackupServiceCreateJSONRequestBody) (*http.Request, error)
NewBackupServiceCreateRequest calls the generic BackupServiceCreate builder with application/json body
func NewBackupServiceCreateRequestWithBody ¶
func NewBackupServiceCreateRequestWithBody(server string, clusterId string, contentType string, body io.Reader) (*http.Request, error)
NewBackupServiceCreateRequestWithBody constructs an http.Request for the BackupServiceCreate method, with any body, and a specified content type
func NewBackupServiceGetRequest ¶
func NewBackupServiceGetRequest(server string, clusterId string, name string) (*http.Request, error)
NewBackupServiceGetRequest constructs an http.Request for the BackupServiceGet method
func NewBackupServiceListRequest ¶
NewBackupServiceListRequest constructs an http.Request for the BackupServiceList method
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 NewClusterServiceListLocalesRequest ¶
NewClusterServiceListLocalesRequest constructs an http.Request for the ClusterServiceListLocales 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 NewClusterServiceResumeRequest ¶
NewClusterServiceResumeRequest constructs an http.Request for the ClusterServiceResume method
func NewClusterServiceStorageInfoRequest ¶
NewClusterServiceStorageInfoRequest constructs an http.Request for the ClusterServiceStorageInfo method
func NewClusterServiceSuspendRequest ¶
NewClusterServiceSuspendRequest constructs an http.Request for the ClusterServiceSuspend method
func NewClusterServiceSwitchoverRequest ¶
NewClusterServiceSwitchoverRequest constructs an http.Request for the ClusterServiceSwitchover 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 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, name string) (*http.Request, error)
NewUserServiceDeleteRequest constructs an http.Request for the UserServiceDelete method
func NewUserServiceGetRequest ¶
NewUserServiceGetRequest constructs an http.Request for the UserServiceGet method
func NewUserServiceListRequest ¶
NewUserServiceListRequest constructs an http.Request for the UserServiceList method
func NewUserServiceUpdateRequest ¶
func NewUserServiceUpdateRequest(server string, clusterId string, name string, body UserServiceUpdateJSONRequestBody) (*http.Request, error)
NewUserServiceUpdateRequest calls the generic UserServiceUpdate builder with application/json body
func NewUserServiceUpdateRequestWithBody ¶
func NewUserServiceUpdateRequestWithBody(server string, clusterId string, name string, contentType string, body io.Reader) (*http.Request, error)
NewUserServiceUpdateRequestWithBody constructs an http.Request for the UserServiceUpdate method, with any body, and a specified content type
func NewVersionServiceListLocalesRequest ¶
func NewVersionServiceListLocalesRequest(server string, versionName string, params *VersionServiceListLocalesParams) (*http.Request, error)
NewVersionServiceListLocalesRequest constructs an http.Request for the VersionServiceListLocales method
func NewVersionServiceListRequest ¶
func NewVersionServiceListRequest(server string, params *VersionServiceListParams) (*http.Request, error)
NewVersionServiceListRequest constructs an http.Request for the VersionServiceList method
Types ¶
type BackupServiceCreateJSONRequestBody ¶
type BackupServiceCreateJSONRequestBody = CloudruDbaasPostgresqlV1CreateBackupRequest
BackupServiceCreateJSONRequestBody defines body for BackupServiceCreate for application/json ContentType.
type BackupServiceCreateResponse ¶
type BackupServiceCreateResponse 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 ParseBackupServiceCreateResponse ¶
func ParseBackupServiceCreateResponse(rsp *http.Response) (*BackupServiceCreateResponse, error)
ParseBackupServiceCreateResponse parses an HTTP response from a BackupServiceCreateWithResponse call
func (BackupServiceCreateResponse) ContentType ¶
func (r BackupServiceCreateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BackupServiceCreateResponse) GetBody ¶
func (r BackupServiceCreateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BackupServiceCreateResponse) GetJSON200 ¶
func (r BackupServiceCreateResponse) GetJSON200() *CloudruDbaasOperationOperation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (BackupServiceCreateResponse) GetJSONDefault ¶
func (r BackupServiceCreateResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (BackupServiceCreateResponse) Status ¶
func (r BackupServiceCreateResponse) Status() string
Status returns HTTPResponse.Status
func (BackupServiceCreateResponse) StatusCode ¶
func (r BackupServiceCreateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BackupServiceGetResponse ¶
type BackupServiceGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1Backup
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *GoogleRpcStatus
}
func ParseBackupServiceGetResponse ¶
func ParseBackupServiceGetResponse(rsp *http.Response) (*BackupServiceGetResponse, error)
ParseBackupServiceGetResponse parses an HTTP response from a BackupServiceGetWithResponse call
func (BackupServiceGetResponse) ContentType ¶
func (r BackupServiceGetResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BackupServiceGetResponse) GetBody ¶
func (r BackupServiceGetResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BackupServiceGetResponse) GetJSON200 ¶
func (r BackupServiceGetResponse) GetJSON200() *CloudruDbaasPostgresqlV1Backup
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (BackupServiceGetResponse) GetJSONDefault ¶
func (r BackupServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (BackupServiceGetResponse) Status ¶
func (r BackupServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (BackupServiceGetResponse) StatusCode ¶
func (r BackupServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BackupServiceListResponse ¶
type BackupServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1ListBackupsResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *GoogleRpcStatus
}
func ParseBackupServiceListResponse ¶
func ParseBackupServiceListResponse(rsp *http.Response) (*BackupServiceListResponse, error)
ParseBackupServiceListResponse parses an HTTP response from a BackupServiceListWithResponse call
func (BackupServiceListResponse) ContentType ¶
func (r BackupServiceListResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BackupServiceListResponse) GetBody ¶
func (r BackupServiceListResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BackupServiceListResponse) GetJSON200 ¶
func (r BackupServiceListResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListBackupsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (BackupServiceListResponse) GetJSONDefault ¶
func (r BackupServiceListResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (BackupServiceListResponse) Status ¶
func (r BackupServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (BackupServiceListResponse) StatusCode ¶
func (r BackupServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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) BackupServiceCreate ¶
func (c *Client) BackupServiceCreate(ctx context.Context, clusterId string, body BackupServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
BackupServiceCreate performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` operationId) request. Takes a body of the `application/json` content type.
Создание резервной копии.
func (*Client) BackupServiceCreateWithBody ¶
func (c *Client) BackupServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BackupServiceCreateWithBody performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` operationId) request, with any type of body and a specified content type.
Создание резервной копии.
func (*Client) BackupServiceGet ¶
func (c *Client) BackupServiceGet(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
BackupServiceGet performs a GET /v1/clusters/{cluster_id}/backups/{name} (the `BackupServiceGet` operationId) request.
Получение резервной копии кластера.
func (*Client) BackupServiceList ¶
func (c *Client) BackupServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
BackupServiceList performs a GET /v1/clusters/{cluster_id}/backups (the `BackupServiceList` operationId) request.
Список резервных копий.
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.
Получение списка кластеров PostgreSQL, созданных в указанном проекте.
func (*Client) ClusterServiceListLocales ¶
func (c *Client) ClusterServiceListLocales(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
ClusterServiceListLocales performs a GET /v1/clusters/{cluster_id}:locales (the `ClusterServiceListLocales` 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) ClusterServiceResume ¶
func (c *Client) ClusterServiceResume(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
ClusterServiceResume performs a POST /v1/clusters/{cluster_id}:resume (the `ClusterServiceResume` operationId) request.
Запуск приостановленного кластера.
func (*Client) ClusterServiceStorageInfo ¶
func (c *Client) ClusterServiceStorageInfo(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
ClusterServiceStorageInfo performs a GET /v1/clusters/{cluster_id}:storageInfo (the `ClusterServiceStorageInfo` operationId) request.
Получение информации о хранилище.
func (*Client) ClusterServiceSuspend ¶
func (c *Client) ClusterServiceSuspend(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
ClusterServiceSuspend performs a POST /v1/clusters/{cluster_id}:suspend (the `ClusterServiceSuspend` operationId) request.
Приостановка кластера.
func (*Client) ClusterServiceSwitchover ¶
func (c *Client) ClusterServiceSwitchover(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
ClusterServiceSwitchover performs a POST /v1/clusters/{cluster_id}:switchover (the `ClusterServiceSwitchover` operationId) request.
Переключение primary-узла (switchover) в кластере.
Новый primary-узел будет выбран автоматически.
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) 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, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
UserServiceDelete performs a DELETE /v1/clusters/{cluster_id}/users/{name} (the `UserServiceDelete` operationId) request.
Удаление пользователя в кластере.
func (*Client) UserServiceGet ¶
func (c *Client) UserServiceGet(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
UserServiceGet performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.
Получение пользователя в кластере.
func (*Client) UserServiceList ¶
func (c *Client) UserServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
UserServiceList performs a GET /v1/clusters/{cluster_id}/users (the `UserServiceList` operationId) request.
Список пользователей кластера.
func (*Client) UserServiceUpdate ¶
func (c *Client) UserServiceUpdate(ctx context.Context, clusterId string, name string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UserServiceUpdate performs a PUT /v1/clusters/{cluster_id}/users/{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, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UserServiceUpdateWithBody performs a PUT /v1/clusters/{cluster_id}/users/{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, params *VersionServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
VersionServiceList performs a GET /v1/versions (the `VersionServiceList` operationId) request.
Возвращает список всех доступных версий продукта.
func (*Client) VersionServiceListLocales ¶
func (c *Client) VersionServiceListLocales(ctx context.Context, versionName string, params *VersionServiceListLocalesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
VersionServiceListLocales performs a GET /v1/versions/{version_name}:locales (the `VersionServiceListLocales` operationId) request.
Возвращает список локалей, доступных для выбранной версии продукта.
type ClientInterface ¶
type ClientInterface interface {
// ClusterServiceList performs a GET /v1/clusters (the `ClusterServiceList` operationId) request.
//
// Получение списка кластеров PostgreSQL, созданных в указанном проекте.
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)
// BackupServiceList performs a GET /v1/clusters/{cluster_id}/backups (the `BackupServiceList` operationId) request.
//
// Список резервных копий.
BackupServiceList(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// BackupServiceCreateWithBody performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создание резервной копии.
BackupServiceCreateWithBody(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// BackupServiceCreate performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Создание резервной копии.
BackupServiceCreate(ctx context.Context, clusterId string, body BackupServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BackupServiceGet performs a GET /v1/clusters/{cluster_id}/backups/{name} (the `BackupServiceGet` operationId) request.
//
// Получение резервной копии кластера.
BackupServiceGet(ctx context.Context, clusterId string, name string, 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)
// 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/{name} (the `UserServiceDelete` operationId) request.
//
// Удаление пользователя в кластере.
UserServiceDelete(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UserServiceGet performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.
//
// Получение пользователя в кластере.
UserServiceGet(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UserServiceUpdateWithBody performs a PUT /v1/clusters/{cluster_id}/users/{name} (the `UserServiceUpdate` operationId) request,
// with any type of body and a specified content type.
//
// Изменение пользователя кластера.
UserServiceUpdateWithBody(ctx context.Context, clusterId string, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UserServiceUpdate performs a PUT /v1/clusters/{cluster_id}/users/{name} (the `UserServiceUpdate` operationId) request.
// Takes a body of the `application/json` content type.
//
// Изменение пользователя кластера.
UserServiceUpdate(ctx context.Context, clusterId string, name string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClusterServiceListLocales performs a GET /v1/clusters/{cluster_id}:locales (the `ClusterServiceListLocales` operationId) request.
//
// Получение возможных локалей для кластера.
ClusterServiceListLocales(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClusterServiceResume performs a POST /v1/clusters/{cluster_id}:resume (the `ClusterServiceResume` operationId) request.
//
// Запуск приостановленного кластера.
ClusterServiceResume(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClusterServiceStorageInfo performs a GET /v1/clusters/{cluster_id}:storageInfo (the `ClusterServiceStorageInfo` operationId) request.
//
// Получение информации о хранилище.
ClusterServiceStorageInfo(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClusterServiceSuspend performs a POST /v1/clusters/{cluster_id}:suspend (the `ClusterServiceSuspend` operationId) request.
//
// Приостановка кластера.
ClusterServiceSuspend(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClusterServiceSwitchover performs a POST /v1/clusters/{cluster_id}:switchover (the `ClusterServiceSwitchover` operationId) request.
//
// Переключение primary-узла (switchover) в кластере.
// Новый primary-узел будет выбран автоматически.
ClusterServiceSwitchover(ctx context.Context, clusterId string, 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, params *VersionServiceListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// VersionServiceListLocales performs a GET /v1/versions/{version_name}:locales (the `VersionServiceListLocales` operationId) request.
//
// Возвращает список локалей, доступных для выбранной версии продукта.
VersionServiceListLocales(ctx context.Context, versionName string, params *VersionServiceListLocalesParams, 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) BackupServiceCreateWithBodyWithResponse ¶
func (c *ClientWithResponses) BackupServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BackupServiceCreateResponse, error)
BackupServiceCreateWithBodyWithResponse performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` 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) BackupServiceCreateWithResponse ¶
func (c *ClientWithResponses) BackupServiceCreateWithResponse(ctx context.Context, clusterId string, body BackupServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*BackupServiceCreateResponse, error)
BackupServiceCreateWithResponse performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` 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) BackupServiceGetWithResponse ¶
func (c *ClientWithResponses) BackupServiceGetWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*BackupServiceGetResponse, error)
BackupServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/backups/{name} (the `BackupServiceGet` operationId) request.
Получение резервной копии кластера.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) BackupServiceListWithResponse ¶
func (c *ClientWithResponses) BackupServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*BackupServiceListResponse, error)
BackupServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/backups (the `BackupServiceList` operationId) request.
Список резервных копий.
Returns a wrapper object for the known response body format(s).
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) ClusterServiceListLocalesWithResponse ¶
func (c *ClientWithResponses) ClusterServiceListLocalesWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceListLocalesResponse, error)
ClusterServiceListLocalesWithResponse performs a GET /v1/clusters/{cluster_id}:locales (the `ClusterServiceListLocales` 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.
Получение списка кластеров PostgreSQL, созданных в указанном проекте.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ClusterServiceResumeWithResponse ¶
func (c *ClientWithResponses) ClusterServiceResumeWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceResumeResponse, error)
ClusterServiceResumeWithResponse performs a POST /v1/clusters/{cluster_id}:resume (the `ClusterServiceResume` operationId) request.
Запуск приостановленного кластера.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ClusterServiceStorageInfoWithResponse ¶
func (c *ClientWithResponses) ClusterServiceStorageInfoWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceStorageInfoResponse, error)
ClusterServiceStorageInfoWithResponse performs a GET /v1/clusters/{cluster_id}:storageInfo (the `ClusterServiceStorageInfo` operationId) request.
Получение информации о хранилище.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ClusterServiceSuspendWithResponse ¶
func (c *ClientWithResponses) ClusterServiceSuspendWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceSuspendResponse, error)
ClusterServiceSuspendWithResponse performs a POST /v1/clusters/{cluster_id}:suspend (the `ClusterServiceSuspend` operationId) request.
Приостановка кластера.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ClusterServiceSwitchoverWithResponse ¶
func (c *ClientWithResponses) ClusterServiceSwitchoverWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceSwitchoverResponse, error)
ClusterServiceSwitchoverWithResponse performs a POST /v1/clusters/{cluster_id}:switchover (the `ClusterServiceSwitchover` operationId) request.
Переключение primary-узла (switchover) в кластере.
Новый primary-узел будет выбран автоматически.
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) 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, name string, reqEditors ...RequestEditorFn) (*UserServiceDeleteResponse, error)
UserServiceDeleteWithResponse performs a DELETE /v1/clusters/{cluster_id}/users/{name} (the `UserServiceDelete` operationId) request.
Удаление пользователя в кластере.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) UserServiceGetWithResponse ¶
func (c *ClientWithResponses) UserServiceGetWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*UserServiceGetResponse, error)
UserServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.
Получение пользователя в кластере.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) UserServiceListWithResponse ¶
func (c *ClientWithResponses) UserServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*UserServiceListResponse, error)
UserServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/users (the `UserServiceList` operationId) request.
Список пользователей кластера.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) UserServiceUpdateWithBodyWithResponse ¶
func (c *ClientWithResponses) UserServiceUpdateWithBodyWithResponse(ctx context.Context, clusterId string, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)
UserServiceUpdateWithBodyWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{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, name string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)
UserServiceUpdateWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{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) VersionServiceListLocalesWithResponse ¶
func (c *ClientWithResponses) VersionServiceListLocalesWithResponse(ctx context.Context, versionName string, params *VersionServiceListLocalesParams, reqEditors ...RequestEditorFn) (*VersionServiceListLocalesResponse, error)
VersionServiceListLocalesWithResponse performs a GET /v1/versions/{version_name}:locales (the `VersionServiceListLocales` operationId) request.
Возвращает список локалей, доступных для выбранной версии продукта.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VersionServiceListWithResponse ¶
func (c *ClientWithResponses) VersionServiceListWithResponse(ctx context.Context, params *VersionServiceListParams, 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.
//
// Получение списка кластеров PostgreSQL, созданных в указанном проекте.
//
// 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)
// BackupServiceListWithResponse performs a GET /v1/clusters/{cluster_id}/backups (the `BackupServiceList` operationId) request.
//
// Список резервных копий.
//
// Returns a wrapper object for the known response body format(s).
BackupServiceListWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*BackupServiceListResponse, error)
// BackupServiceCreateWithBodyWithResponse performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` operationId) request,
// with any type of body and a specified content type.
//
// Создание резервной копии.
//
// Returns a wrapper object for the known response body format(s).
BackupServiceCreateWithBodyWithResponse(ctx context.Context, clusterId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BackupServiceCreateResponse, error)
// BackupServiceCreateWithResponse performs a POST /v1/clusters/{cluster_id}/backups (the `BackupServiceCreate` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Создание резервной копии.
BackupServiceCreateWithResponse(ctx context.Context, clusterId string, body BackupServiceCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*BackupServiceCreateResponse, error)
// BackupServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/backups/{name} (the `BackupServiceGet` operationId) request.
//
// Получение резервной копии кластера.
//
// Returns a wrapper object for the known response body format(s).
BackupServiceGetWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*BackupServiceGetResponse, 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)
// 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/{name} (the `UserServiceDelete` operationId) request.
//
// Удаление пользователя в кластере.
//
// Returns a wrapper object for the known response body format(s).
UserServiceDeleteWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*UserServiceDeleteResponse, error)
// UserServiceGetWithResponse performs a GET /v1/clusters/{cluster_id}/users/{name} (the `UserServiceGet` operationId) request.
//
// Получение пользователя в кластере.
//
// Returns a wrapper object for the known response body format(s).
UserServiceGetWithResponse(ctx context.Context, clusterId string, name string, reqEditors ...RequestEditorFn) (*UserServiceGetResponse, error)
// UserServiceUpdateWithBodyWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{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, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)
// UserServiceUpdateWithResponse performs a PUT /v1/clusters/{cluster_id}/users/{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, name string, body UserServiceUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UserServiceUpdateResponse, error)
// ClusterServiceListLocalesWithResponse performs a GET /v1/clusters/{cluster_id}:locales (the `ClusterServiceListLocales` operationId) request.
//
// Получение возможных локалей для кластера.
//
// Returns a wrapper object for the known response body format(s).
ClusterServiceListLocalesWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceListLocalesResponse, error)
// ClusterServiceResumeWithResponse performs a POST /v1/clusters/{cluster_id}:resume (the `ClusterServiceResume` operationId) request.
//
// Запуск приостановленного кластера.
//
// Returns a wrapper object for the known response body format(s).
ClusterServiceResumeWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceResumeResponse, error)
// ClusterServiceStorageInfoWithResponse performs a GET /v1/clusters/{cluster_id}:storageInfo (the `ClusterServiceStorageInfo` operationId) request.
//
// Получение информации о хранилище.
//
// Returns a wrapper object for the known response body format(s).
ClusterServiceStorageInfoWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceStorageInfoResponse, error)
// ClusterServiceSuspendWithResponse performs a POST /v1/clusters/{cluster_id}:suspend (the `ClusterServiceSuspend` operationId) request.
//
// Приостановка кластера.
//
// Returns a wrapper object for the known response body format(s).
ClusterServiceSuspendWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceSuspendResponse, error)
// ClusterServiceSwitchoverWithResponse performs a POST /v1/clusters/{cluster_id}:switchover (the `ClusterServiceSwitchover` operationId) request.
//
// Переключение primary-узла (switchover) в кластере.
// Новый primary-узел будет выбран автоматически.
//
// Returns a wrapper object for the known response body format(s).
ClusterServiceSwitchoverWithResponse(ctx context.Context, clusterId string, reqEditors ...RequestEditorFn) (*ClusterServiceSwitchoverResponse, 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, params *VersionServiceListParams, reqEditors ...RequestEditorFn) (*VersionServiceListResponse, error)
// VersionServiceListLocalesWithResponse performs a GET /v1/versions/{version_name}:locales (the `VersionServiceListLocales` operationId) request.
//
// Возвращает список локалей, доступных для выбранной версии продукта.
//
// Returns a wrapper object for the known response body format(s).
VersionServiceListLocalesWithResponse(ctx context.Context, versionName string, params *VersionServiceListLocalesParams, reqEditors ...RequestEditorFn) (*VersionServiceListLocalesResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CloudruDbaasOperationOperation ¶
type CloudruDbaasOperationOperation struct {
// CreatedAt Время создания операции.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Description Описание операции. От 0 до 255 символов.
Description *string `json:"description,omitempty"`
// Done Флаг завершенности операции:
// - `true` — операция завершена. Операция считается завершенной, даже если в ходе ее выполнения возникла ошибка.
// - `false` — операция не завершена.
Done *bool `json:"done,omitempty"`
// Error Результат операции в случае ошибки.
Error *GoogleRpcStatus `json:"error,omitempty"`
// Id Идентификатор операции.
Id string `json:"id"`
// ResourceId Уникальный идентификатор ресурса, над которым производится операция.
//
// Example: 54295782-7aef-43e6-b33b-c9735938677a
ResourceId *string `json:"resource_id,omitempty"`
// ResourceName Информация о ресурсе, над которым производится операция.
//
// Example: urn:cloud:postgresql::265c6f28-9c84-4cef-bbc5-4472c1743bc0:backend
ResourceName *string `json:"resource_name,omitempty"`
// UpdatedAt Время последнего изменения операции.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
CloudruDbaasOperationOperation defines model for cloudru.dbaas.operation.Operation.
type CloudruDbaasPostgresqlV1AnytimeMaintenanceWindow ¶
type CloudruDbaasPostgresqlV1AnytimeMaintenanceWindow = map[string]interface{}
CloudruDbaasPostgresqlV1AnytimeMaintenanceWindow Техническое обслуживание в любое время.
type CloudruDbaasPostgresqlV1Backup ¶
type CloudruDbaasPostgresqlV1Backup struct {
// FinishedAt Время окончания создания резервной копии.
FinishedAt *time.Time `json:"finished_at,omitempty"`
// Id Идентификатор резервной копии.
Id *string `json:"id,omitempty"`
// Name Название резервной копии.
Name *string `json:"name,omitempty"`
// SizeBytes Размер резервной копии в байтах.
SizeBytes *string `json:"size_bytes,omitempty"`
// StartedAt Время начала создания резервной копии.
StartedAt *time.Time `json:"started_at,omitempty"`
// Status Статус резервной копии.
Status *CloudruDbaasPostgresqlV1BackupStatus `json:"status,omitempty"`
}
CloudruDbaasPostgresqlV1Backup defines model for cloudru.dbaas.postgresql.v1.Backup.
type CloudruDbaasPostgresqlV1BackupSpec ¶
type CloudruDbaasPostgresqlV1BackupSpec struct {
// RetentionPolicyDays Срок хранения автоматически созданных резервных копий.
// Максимальное значение — 30 дней.
//
// Example: 14
RetentionPolicyDays *int32 `json:"retention_policy_days,omitempty"`
// Schedule Расписание автоматического резервного копирования в формате CRON-выражения.
// Например, выражение '15 14 ? * *' будет запускать задачу каждый день в 14:15.
// Краткий формат вида "@midnight" или "@every 1h30m" не поддерживается.
// Автоматическое резервное копирование может происходить не чаще, чем раз в 6 часов.
// По умолчанию запускается каждое воскресенье в 03:00, резервные копии хранятся в течение 14 дней.
//
// Example: 0 3 * * 0
Schedule *string `json:"schedule,omitempty"`
}
CloudruDbaasPostgresqlV1BackupSpec Параметры автоматического резервного копирования.
type CloudruDbaasPostgresqlV1BackupStatus ¶
type CloudruDbaasPostgresqlV1BackupStatus string
CloudruDbaasPostgresqlV1BackupStatus Статус резервной копии.
const ( BACKUPSTATUSCOMPLETED CloudruDbaasPostgresqlV1BackupStatus = "BACKUP_STATUS_COMPLETED" BACKUPSTATUSFAILED CloudruDbaasPostgresqlV1BackupStatus = "BACKUP_STATUS_FAILED" BACKUPSTATUSPENDING CloudruDbaasPostgresqlV1BackupStatus = "BACKUP_STATUS_PENDING" BACKUPSTATUSSTARTED CloudruDbaasPostgresqlV1BackupStatus = "BACKUP_STATUS_STARTED" BACKUPSTATUSUNSPECIFIED CloudruDbaasPostgresqlV1BackupStatus = "BACKUP_STATUS_UNSPECIFIED" )
Defines values for CloudruDbaasPostgresqlV1BackupStatus.
func (CloudruDbaasPostgresqlV1BackupStatus) Valid ¶
func (e CloudruDbaasPostgresqlV1BackupStatus) Valid() bool
Valid indicates whether the value is a known member of the CloudruDbaasPostgresqlV1BackupStatus enum.
type CloudruDbaasPostgresqlV1Cluster ¶
type CloudruDbaasPostgresqlV1Cluster struct {
// Backup Параметры автоматического резервного копирования.
Backup *CloudruDbaasPostgresqlV1BackupSpec `json:"backup,omitempty"`
// ConnectionString Строка подключения.
//
// Example: postgres://user:pass@host:port/db
ConnectionString *string `json:"connection_string,omitempty"`
// CreatedAt Время создания кластера.
//
// Example: 2026-01-01T10:00:00Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// CreatedBy Идентификатор пользователя, создавшего кластер.
//
// Example: 00000000-0000-0000-0000-000000000000
CreatedBy *string `json:"created_by,omitempty"`
// Description Описание кластера.
//
// Example: Production PostgreSQL cluster
Description *string `json:"description,omitempty"`
// Health Состояние кластера.
//
// Example: HEALTHY
Health *CloudruDbaasPostgresqlV1ClusterHealth `json:"health,omitempty"`
// Id Идентификатор кластера.
//
// Example: 00000000-0000-0000-0000-000000000000
Id *string `json:"id,omitempty"`
// Instances Количество узлов кластера.
// Допустимые значения зависят от режима развертывания кластера: 1-2 узла для `standard`, 1-3 узла для `business`.
//
// Если в `subnet_ids` указано несколько подсетей, кластер считается мультизональным,
// и количество узлов должно совпадать с количеством подсетей.
//
// Example: 2
Instances *int32 `json:"instances,omitempty"`
// Logging Параметры интеграции с сервисом Клиентского логирования.
Logging *CloudruDbaasPostgresqlV1LoggingConfig `json:"logging,omitempty"`
// MaintenanceWindow Окно проведения технического обслуживания.
MaintenanceWindow *CloudruDbaasPostgresqlV1MaintenanceWindow `json:"maintenance_window,omitempty"`
// Name Название кластера.
//
// Example: awesome-postgres-cluster
Name string `json:"name"`
// PoolerConfig Конфигурация пулера соединений PgBouncer.
PoolerConfig *CloudruDbaasPostgresqlV1ConnectionPoolerConfig `json:"pooler_config,omitempty"`
// ProjectId Идентификатор проекта.
//
// Example: 00000000-0000-0000-0000-000000000000
ProjectId string `json:"project_id"`
// SpecificationId Идентификатор спецификации кластера.
// Ресурсы кластера типа `standard` нельзя изменить после создания.
//
// Example: 00000000-0000-0000-0000-000000000000
SpecificationId string `json:"specification_id"`
// Status Статус кластера.
//
// Example: READY
Status *CloudruDbaasPostgresqlV1ClusterStatus `json:"status,omitempty"`
// Storage Размеры дисков кластера.
Storage CloudruDbaasPostgresqlV1StorageSize `json:"storage"`
// SubnetId Устарело. Используйте поле `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 Идентификаторы подсетей. Подсети определяют зоны доступности кластера.
//
// Если указано несколько подсетей, кластер считается мультизональным.
// Мультизональный режим доступен только для кластеров типа `business`.
// В этом случае количество подсетей должно совпадать с количеством узлов `instances`,
// а каждая подсеть должна находиться в отдельной зоне доступности.
//
// Список подсетей и их описание можно получить через API сервиса виртуальных машин
// в разделе [Subnets](https://cloud.ru/docs/virtual-machines/ug/topics/api-ref-v3#tag/Subnets).
//
// Example: ["00000000-0000-0000-0000-000000000000","11111111-1111-1111-1111-111111111111"]
SubnetIds *[]string `json:"subnet_ids,omitempty"`
// SyncReplicationEnabled Не имеет эффекта.
//
// Example: false
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
SyncReplicationEnabled *bool `json:"sync_replication_enabled,omitempty"`
// Version Версия продукта.
//
// Example: 17
Version string `json:"version"`
}
CloudruDbaasPostgresqlV1Cluster Кластер PostgreSQL.
type CloudruDbaasPostgresqlV1ClusterHealth ¶
type CloudruDbaasPostgresqlV1ClusterHealth string
CloudruDbaasPostgresqlV1ClusterHealth Состояние кластера.
Example: HEALTHY
const ( HEALTHUNSPECIFIED CloudruDbaasPostgresqlV1ClusterHealth = "HEALTH_UNSPECIFIED" HEALTHY CloudruDbaasPostgresqlV1ClusterHealth = "HEALTHY" UNHEALTHY CloudruDbaasPostgresqlV1ClusterHealth = "UNHEALTHY" )
Defines values for CloudruDbaasPostgresqlV1ClusterHealth.
func (CloudruDbaasPostgresqlV1ClusterHealth) Valid ¶
func (e CloudruDbaasPostgresqlV1ClusterHealth) Valid() bool
Valid indicates whether the value is a known member of the CloudruDbaasPostgresqlV1ClusterHealth enum.
type CloudruDbaasPostgresqlV1ClusterStatus ¶
type CloudruDbaasPostgresqlV1ClusterStatus string
CloudruDbaasPostgresqlV1ClusterStatus Статус кластера.
Example: READY
const ( DEPLOYING CloudruDbaasPostgresqlV1ClusterStatus = "DEPLOYING" ERASED CloudruDbaasPostgresqlV1ClusterStatus = "ERASED" ERASING CloudruDbaasPostgresqlV1ClusterStatus = "ERASING" FAILED CloudruDbaasPostgresqlV1ClusterStatus = "FAILED" PENDING CloudruDbaasPostgresqlV1ClusterStatus = "PENDING" READY CloudruDbaasPostgresqlV1ClusterStatus = "READY" ROLLINGBACK CloudruDbaasPostgresqlV1ClusterStatus = "ROLLING_BACK" STATUSUNSPECIFIED CloudruDbaasPostgresqlV1ClusterStatus = "STATUS_UNSPECIFIED" SUSPENDED CloudruDbaasPostgresqlV1ClusterStatus = "SUSPENDED" SUSPENDING CloudruDbaasPostgresqlV1ClusterStatus = "SUSPENDING" UPDATING CloudruDbaasPostgresqlV1ClusterStatus = "UPDATING" )
Defines values for CloudruDbaasPostgresqlV1ClusterStatus.
func (CloudruDbaasPostgresqlV1ClusterStatus) Valid ¶
func (e CloudruDbaasPostgresqlV1ClusterStatus) Valid() bool
Valid indicates whether the value is a known member of the CloudruDbaasPostgresqlV1ClusterStatus enum.
type CloudruDbaasPostgresqlV1ConnectionPoolerConfig ¶
type CloudruDbaasPostgresqlV1ConnectionPoolerConfig struct {
// Enabled Включить пулер соединений. По умолчанию `false` — пулер выключен.
// Нельзя изменить после создания кластера.
//
// Example: true
Enabled *bool `json:"enabled,omitempty"`
// Parameters Дополнительные параметры конфигурации PgBouncer. Список поддерживаемых параметров и их описание доступны
// в разделе документации [Пулер соединений](https://cloud.ru/docs/paas-postgresql/ug/topics/guides__connection-pooler).
//
// Параметр `pool_mode` задается отдельно через поле `pool_mode`.
//
// Example: {"max_client_conn":100}
Parameters *map[string]string `json:"parameters,omitempty"`
// PoolMode Режим работы пулера соединений. По умолчанию `SESSION`.
// [Подробнее](https://www.pgbouncer.org/config.html#pool_mode).
//
// Example: TRANSACTION
PoolMode *CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode `json:"pool_mode,omitempty"`
}
CloudruDbaasPostgresqlV1ConnectionPoolerConfig Конфигурация пулера соединений PgBouncer.
type CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode ¶
type CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode string
CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode Режим работы пулера соединений. По умолчанию `SESSION`.
[Подробнее](https://www.pgbouncer.org/config.html#pool_mode).
Example: TRANSACTION
const ( POOLMODEUNSPECIFIED CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode = "POOL_MODE_UNSPECIFIED" SESSION CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode = "SESSION" TRANSACTION CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode = "TRANSACTION" )
Defines values for CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode.
func (CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode) Valid ¶
func (e CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode) Valid() bool
Valid indicates whether the value is a known member of the CloudruDbaasPostgresqlV1ConnectionPoolerConfigPoolMode enum.
type CloudruDbaasPostgresqlV1CreateBackupRequest ¶
type CloudruDbaasPostgresqlV1CreateBackupRequest struct {
// ClusterId Идентификатор кластера.
ClusterId string `json:"cluster_id"`
// Name Название резервной копии.
// Начинается и заканчивается только латинской буквой или цифрой.
// Внутри может содержать буквы, цифры, дефисы ('-') и точки, но не может начинаться или заканчиваться дефисом и точкой.
Name string `json:"name"`
}
CloudruDbaasPostgresqlV1CreateBackupRequest Запрос на создание резервной копии.
type CloudruDbaasPostgresqlV1CreateClusterRequest ¶
type CloudruDbaasPostgresqlV1CreateClusterRequest struct {
// Backup Параметры автоматического резервного копирования.
Backup *CloudruDbaasPostgresqlV1BackupSpec `json:"backup,omitempty"`
// Description Описание кластера.
//
// Example: Production PostgreSQL cluster
Description *string `json:"description,omitempty"`
// InitialDatabase Название базы данных, которая будет создана в экземпляре сервиса по умолчанию.
//
// Example: myapp_db
InitialDatabase string `json:"initial_database"`
// InitialDatabaseLcCollate Локаль сортировки базы данных, созданной по умолчанию.
// Нельзя изменить после создания кластера.
// Значение по умолчанию — `C`.
//
// Example: C
InitialDatabaseLcCollate *string `json:"initial_database_lc_collate,omitempty"`
// InitialDatabaseLcCtype Локаль набора символов базы данных, созданной по умолчанию.
// Нельзя изменить после создания кластера.
// Значение по умолчанию — `C`.
//
// Example: C
InitialDatabaseLcCtype *string `json:"initial_database_lc_ctype,omitempty"`
// Instances Количество узлов кластера.
// Допустимые значения зависят от режима развертывания кластера: 1-2 узла для `standard`, 1-3 узла для `business`.
//
// Если в `subnet_ids` указано несколько подсетей, кластер считается мультизональным,
// и количество узлов должно совпадать с количеством подсетей.
//
// Example: 2
Instances *int32 `json:"instances,omitempty"`
// Logging Параметры интеграции с сервисом Клиентского логирования.
Logging *CloudruDbaasPostgresqlV1LoggingConfig `json:"logging,omitempty"`
// MaintenanceWindow Окно проведения технического обслуживания.
MaintenanceWindow *CloudruDbaasPostgresqlV1MaintenanceWindow `json:"maintenance_window,omitempty"`
// Name Название кластера.
//
// Example: awesome-postgres-cluster
Name string `json:"name"`
// PoolerConfig Конфигурация пулера соединений PgBouncer.
// Пулер соединений нельзя включить или отключить после создания кластера.
PoolerConfig *CloudruDbaasPostgresqlV1ConnectionPoolerConfig `json:"pooler_config,omitempty"`
// PrimaryStandbyMode Устарело. Используйте поле `instances`.
//
// Example: true
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PrimaryStandbyMode *bool `json:"primary_standby_mode,omitempty"`
// ProjectId Идентификатор проекта.
//
// Example: 00000000-0000-0000-0000-000000000000
ProjectId string `json:"project_id"`
// RecoverySpec Параметры восстановления кластера.
RecoverySpec *CloudruDbaasPostgresqlV1RecoverySpec `json:"recovery_spec,omitempty"`
// SpecificationId Идентификатор спецификации кластера.
// Ресурсы кластера типа `standard` нельзя изменить после создания.
//
// Example: 00000000-0000-0000-0000-000000000000
SpecificationId string `json:"specification_id"`
// Storage Размеры дисков кластера.
Storage CloudruDbaasPostgresqlV1StorageSize `json:"storage"`
// SubnetId Устарело. Используйте поле `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 Обязательное поле. Идентификаторы подсетей. Подсети определяют зоны доступности кластера.
//
// Если указано несколько подсетей, кластер считается мультизональным.
// Мультизональный режим доступен только для кластеров типа `business`.
// В этом случае количество подсетей должно совпадать с количеством узлов `instances`,
// а каждая подсеть должна находиться в отдельной зоне доступности.
//
// Список подсетей и их описание можно получить через API сервиса виртуальных машин
// в разделе [Subnets](https://cloud.ru/docs/virtual-machines/ug/topics/api-ref-v3#tag/Subnets).
//
// Example: ["00000000-0000-0000-0000-000000000000","11111111-1111-1111-1111-111111111111"]
SubnetIds *[]string `json:"subnet_ids,omitempty"`
// SyncReplicationEnabled Не имеет эффекта.
//
// Example: false
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
SyncReplicationEnabled *bool `json:"sync_replication_enabled,omitempty"`
// Version Версия кластера.
//
// Example: 17
Version string `json:"version"`
}
CloudruDbaasPostgresqlV1CreateClusterRequest defines model for cloudru.dbaas.postgresql.v1.CreateClusterRequest.
type CloudruDbaasPostgresqlV1CreateDatabaseRequest ¶
type CloudruDbaasPostgresqlV1CreateDatabaseRequest struct {
// ClusterId Идентификатор кластера.
//
// Example: 00000000-0000-0000-0000-000000000000
ClusterId string `json:"cluster_id"`
// LcCollate Локаль сортировки.
// Нельзя изменить после создания базы данных.
// Значение по умолчанию — `C`.
//
// Example: С
LcCollate *string `json:"lc_collate,omitempty"`
// LcCtype Локаль набора символов.
// Нельзя изменить после создания базы данных.
// Значение по умолчанию — `C`.
//
// Example: С
LcCtype *string `json:"lc_ctype,omitempty"`
// Name Название базы данных.
// Может содержать латинские буквы, цифры и подчеркивание.
// Должно начинаться с латинской буквы или подчеркивания.
//
// Example: myapp_db
Name string `json:"name"`
// Owner Владелец базы данных.
//
// Example: db_owner
Owner string `json:"owner"`
}
CloudruDbaasPostgresqlV1CreateDatabaseRequest Запрос на создание базы данных.
type CloudruDbaasPostgresqlV1CreateUserRequest ¶
type CloudruDbaasPostgresqlV1CreateUserRequest struct {
// ClusterId Идентификатор кластера.
//
// Example: 00000000-0000-0000-0000-000000000000
ClusterId string `json:"cluster_id"`
// Name Имя пользователя. Используется только для идентификации существующего пользователя.
//
// Example: username
Name string `json:"name"`
// Password Пароль.
//
// Example: SecurePass123!
Password string `json:"password"`
}
CloudruDbaasPostgresqlV1CreateUserRequest Запрос на создание пользователя в кластере.
type CloudruDbaasPostgresqlV1Database ¶
type CloudruDbaasPostgresqlV1Database struct {
// LcCollate Локаль сортировки.
//
// Example: C
LcCollate *string `json:"lc_collate,omitempty"`
// LcCtype Локаль набора символов.
//
// Example: C
LcCtype *string `json:"lc_ctype,omitempty"`
// Name Название базы данных.
//
// Example: myapp_production
Name string `json:"name"`
// Owner Владелец базы данных.
//
// Example: username
Owner string `json:"owner"`
// SizeMb Размер в мегабайтах.
//
// Example: 1024
SizeMb *uint32 `json:"size_mb,omitempty"`
}
CloudruDbaasPostgresqlV1Database База данных PostgreSQL.
type CloudruDbaasPostgresqlV1DeleteDatabaseResponse ¶
type CloudruDbaasPostgresqlV1DeleteDatabaseResponse = map[string]interface{}
CloudruDbaasPostgresqlV1DeleteDatabaseResponse Ответ на запрос на удаление базы данных в кластере.
type CloudruDbaasPostgresqlV1DeleteUserResponse ¶
type CloudruDbaasPostgresqlV1DeleteUserResponse = map[string]interface{}
CloudruDbaasPostgresqlV1DeleteUserResponse Ответ на запрос на удаление пользователя в кластере.
type CloudruDbaasPostgresqlV1ListBackupsResponse ¶
type CloudruDbaasPostgresqlV1ListBackupsResponse struct {
Backups *[]CloudruDbaasPostgresqlV1Backup `json:"backups,omitempty"`
}
CloudruDbaasPostgresqlV1ListBackupsResponse Ответ на запрос на получение списка резервных копий кластера.
type CloudruDbaasPostgresqlV1ListClustersResponse ¶
type CloudruDbaasPostgresqlV1ListClustersResponse struct {
// Clusters Список кластеров в указанном проекте.
Clusters *[]CloudruDbaasPostgresqlV1Cluster `json:"clusters,omitempty"`
// NextPageToken Токен следующей страницы с результатами.
//
// Example: 00000000-0000-0000-0000-000000000000
NextPageToken *string `json:"next_page_token,omitempty"`
}
CloudruDbaasPostgresqlV1ListClustersResponse Ответ на запрос на получение списка кластеров, созданных в указанном проекте.
type CloudruDbaasPostgresqlV1ListDatabasesResponse ¶
type CloudruDbaasPostgresqlV1ListDatabasesResponse struct {
// Databases Список баз данных продукта.
//
// Example: [{"name":"db1","owner":"user1"},{"name":"db2","owner":"user2"}]
Databases *[]CloudruDbaasPostgresqlV1Database `json:"databases,omitempty"`
}
CloudruDbaasPostgresqlV1ListDatabasesResponse Ответ на запрос на получение списка баз данных продукта.
type CloudruDbaasPostgresqlV1ListLocalesResponse ¶
type CloudruDbaasPostgresqlV1ListLocalesResponse struct {
// LcCollate Список локалей сортировки.
//
// Example: ["C","en_US.UTF-8","ru_RU.UTF-8"]
LcCollate *[]string `json:"lc_collate,omitempty"`
// LcCtype Список локалей набора символов.
//
// Example: ["C","en_US.UTF-8","ru_RU.UTF-8"]
LcCtype *[]string `json:"lc_ctype,omitempty"`
}
CloudruDbaasPostgresqlV1ListLocalesResponse Ответ на запрос на получение возможных локалей для кластера.
type CloudruDbaasPostgresqlV1ListOperationsResponse ¶
type CloudruDbaasPostgresqlV1ListOperationsResponse struct {
// NextPageToken Токен следующей страницы с результатами.
//
// Example: 00000000-0000-0000-0000-000000000000
NextPageToken *string `json:"next_page_token,omitempty"`
// Operations Список операций, выполненных над заданным кластером.
//
// Example: [{"id":"00000000-0000-0000-0000-000000000000","status":"SUCCESS"},{"id":"00000000-0000-0000-0000-000000000000","status":"RUNNING"}]
Operations *[]CloudruDbaasOperationOperation `json:"operations,omitempty"`
}
CloudruDbaasPostgresqlV1ListOperationsResponse Ответ на запрос на получение списка операций кластера.
type CloudruDbaasPostgresqlV1ListSpecificationResponse ¶
type CloudruDbaasPostgresqlV1ListSpecificationResponse struct {
// Specifications Список спецификаций, доступных для определенной версии продукта.
Specifications *[]CloudruDbaasPostgresqlV1Specification `json:"specifications,omitempty"`
}
CloudruDbaasPostgresqlV1ListSpecificationResponse Ответ на запрос на получение спецификаций.
type CloudruDbaasPostgresqlV1ListUsersResponse ¶
type CloudruDbaasPostgresqlV1ListUsersResponse struct {
// Users Список пользователей кластера.
Users *[]CloudruDbaasPostgresqlV1User `json:"users,omitempty"`
}
CloudruDbaasPostgresqlV1ListUsersResponse Ответ на запрос на получение списка пользователей кластера.
type CloudruDbaasPostgresqlV1ListVersionLocalesResponse ¶
type CloudruDbaasPostgresqlV1ListVersionLocalesResponse struct {
// LcCollate Список локалей сортировки.
//
// Example: ["C","ru_RU.UTF-8"]
LcCollate *[]string `json:"lc_collate,omitempty"`
// LcCtype Список локалей набора символов.
//
// Example: ["C","ru_RU.UTF-8"]
LcCtype *[]string `json:"lc_ctype,omitempty"`
}
CloudruDbaasPostgresqlV1ListVersionLocalesResponse Ответ на запрос на получение списка доступных локалей.
type CloudruDbaasPostgresqlV1ListVersionsResponse ¶
type CloudruDbaasPostgresqlV1ListVersionsResponse struct {
// Versions Список версий.
Versions *[]CloudruDbaasPostgresqlV1Version `json:"versions,omitempty"`
}
CloudruDbaasPostgresqlV1ListVersionsResponse Ответ на запрос на получение списка доступных версий продукта.
type CloudruDbaasPostgresqlV1LoggingConfig ¶
type CloudruDbaasPostgresqlV1LoggingConfig 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"`
}
CloudruDbaasPostgresqlV1LoggingConfig Параметры интеграции с сервисом Клиентского логирования.
type CloudruDbaasPostgresqlV1MaintenanceWindow ¶
type CloudruDbaasPostgresqlV1MaintenanceWindow struct {
// Anytime Техническое обслуживание в любое время.
Anytime *CloudruDbaasPostgresqlV1AnytimeMaintenanceWindow `json:"anytime,omitempty"`
// WeeklyMaintenanceWindow Техническое обслуживание по расписанию.
WeeklyMaintenanceWindow *CloudruDbaasPostgresqlV1WeeklyMaintenanceWindow `json:"weekly_maintenance_window,omitempty"`
}
CloudruDbaasPostgresqlV1MaintenanceWindow Настройки окна проведения технического обслуживания.
Example: {"weekly_maintenance_window":{"day":"SAT","hour":2}}
type CloudruDbaasPostgresqlV1PostgreSQLRole ¶
type CloudruDbaasPostgresqlV1PostgreSQLRole struct {
// Name Название роли.
//
// Example: pg_read_all_data
Name *string `json:"name,omitempty"`
}
CloudruDbaasPostgresqlV1PostgreSQLRole defines model for cloudru.dbaas.postgresql.v1.PostgreSQLRole.
type CloudruDbaasPostgresqlV1RecoverySpec ¶
type CloudruDbaasPostgresqlV1RecoverySpec struct {
// BackupId BackupID — идентификатор резервной копии, из которой необходимо восстановить кластер.
//
// Example: 00000000-0000-0000-0000-000000000000
BackupId *string `json:"backup_id,omitempty"`
// ClusterId ClusterID - идентификатор кластера, которому требуется восстановление.
//
// Example: 00000000-0000-0000-0000-000000000000
ClusterId string `json:"cluster_id"`
// Pitr PITR — восстановление на момент времени (point-in-time-recovery).
// Введите время восстановления в формате временной метки.
//
// Example: 2026-01-01T12:00:00Z
Pitr *time.Time `json:"pitr,omitempty"`
}
CloudruDbaasPostgresqlV1RecoverySpec RecoverySpec — параметры восстановления кластера.
Кластер можно восстановить на момент времени (PITR) или из резервной копии по ее идентификатору (BackupID). В обоих случаях восстановление происходит в новый кластер.
type CloudruDbaasPostgresqlV1Specification ¶
type CloudruDbaasPostgresqlV1Specification struct {
// AllowPrimaryStandby Отказоустойчивость кластера. Возможные значения:
// - `true` — отказоустойчивая конфигурацию с двумя синхронизированными узлами: основным и резервным.
// - `false` — одноузловая конфигурация.
//
// Example: true
AllowPrimaryStandby *bool `json:"allow_primary_standby,omitempty"`
// Cpu Количество виртуальных ядер процессора.
//
// Example: 4
Cpu *float64 `json:"cpu,omitempty"`
// DeploymentMode Режим развертывания кластера. Возможные значения:
// - `standard` — для тестирования и небольших приложений.
// - `business` — для высоконагруженных сервисов.
//
// Example: BUSINESS
DeploymentMode *CloudruDbaasPostgresqlV1SpecificationDeploymentMode `json:"deployment_mode,omitempty"`
// DisplayName Название спецификации.
//
// Example: my-specification
DisplayName *string `json:"display_name,omitempty"`
// FlavorType Категория флейвора. Возможные значения:
// - `cpu` — содержит флейворы с увеличенной долей ядер процессора. Соотношение vCPU к RAM 1:1 и 1:2.
// - `balance` — содержит флейворы с оптимальным соотношением vCPU к RAM 1:4.
// - `memory` — содержит флейворы с увеличенной долей оперативной памяти. Соотношение vCPU к RAM 1:8 и 1:16.
//
// Example: MEMORY
FlavorType *CloudruDbaasPostgresqlV1SpecificationFlavorType `json:"flavor_type,omitempty"`
// Id Идентификатор спецификации.
//
// Example: 00000000-0000-0000-0000-000000000000
Id *string `json:"id,omitempty"`
// MaxHosts Максимальное количество узлов, которое поддерживает текущая спецификация.
//
// Example: 3
MaxHosts *int32 `json:"max_hosts,omitempty"`
// Memory Объем оперативной памяти в гигабайтах.
//
// Example: 32
Memory *float64 `json:"memory,omitempty"`
// MinStorageGb Минимальный размер диска в гигабайтах.
//
// Example: 50
MinStorageGb *int32 `json:"min_storage_gb,omitempty"`
}
CloudruDbaasPostgresqlV1Specification Характеристики спецификации.
type CloudruDbaasPostgresqlV1SpecificationDeploymentMode ¶
type CloudruDbaasPostgresqlV1SpecificationDeploymentMode string
CloudruDbaasPostgresqlV1SpecificationDeploymentMode Режим развертывания кластера. Возможные значения:
- `standard` — для тестирования и небольших приложений.
- `business` — для высоконагруженных сервисов.
Example: BUSINESS
const ( BUSINESS CloudruDbaasPostgresqlV1SpecificationDeploymentMode = "BUSINESS" DEPLOYMENTMODEUNSPECIFIED CloudruDbaasPostgresqlV1SpecificationDeploymentMode = "DEPLOYMENT_MODE_UNSPECIFIED" STANDARD CloudruDbaasPostgresqlV1SpecificationDeploymentMode = "STANDARD" )
Defines values for CloudruDbaasPostgresqlV1SpecificationDeploymentMode.
func (CloudruDbaasPostgresqlV1SpecificationDeploymentMode) Valid ¶
func (e CloudruDbaasPostgresqlV1SpecificationDeploymentMode) Valid() bool
Valid indicates whether the value is a known member of the CloudruDbaasPostgresqlV1SpecificationDeploymentMode enum.
type CloudruDbaasPostgresqlV1SpecificationFlavorType ¶
type CloudruDbaasPostgresqlV1SpecificationFlavorType string
CloudruDbaasPostgresqlV1SpecificationFlavorType Категория флейвора. Возможные значения:
- `cpu` — содержит флейворы с увеличенной долей ядер процессора. Соотношение vCPU к RAM 1:1 и 1:2.
- `balance` — содержит флейворы с оптимальным соотношением vCPU к RAM 1:4.
- `memory` — содержит флейворы с увеличенной долей оперативной памяти. Соотношение vCPU к RAM 1:8 и 1:16.
Example: MEMORY
const ( BALANCE CloudruDbaasPostgresqlV1SpecificationFlavorType = "BALANCE" CPU CloudruDbaasPostgresqlV1SpecificationFlavorType = "CPU" FLAVORTYPEUNSPECIFIED CloudruDbaasPostgresqlV1SpecificationFlavorType = "FLAVOR_TYPE_UNSPECIFIED" MEMORY CloudruDbaasPostgresqlV1SpecificationFlavorType = "MEMORY" )
Defines values for CloudruDbaasPostgresqlV1SpecificationFlavorType.
func (CloudruDbaasPostgresqlV1SpecificationFlavorType) Valid ¶
func (e CloudruDbaasPostgresqlV1SpecificationFlavorType) Valid() bool
Valid indicates whether the value is a known member of the CloudruDbaasPostgresqlV1SpecificationFlavorType enum.
type CloudruDbaasPostgresqlV1StorageInfoResponse ¶
type CloudruDbaasPostgresqlV1StorageInfoResponse struct {
// PgData Текущее использование основного диска с данными.
PgData *CloudruDbaasPostgresqlV1StorageUsage `json:"pg_data,omitempty"`
// PgWal Текущее использование диска с WAL-журналом предзаписи.
// Значение является опциональным, отображается при размещении WAL-журнала на отдельном диске.
PgWal *CloudruDbaasPostgresqlV1StorageUsage `json:"pg_wal,omitempty"`
// ReadOnlyMode Доступ к кластеру:
// — `true` — кластер находится в режиме только для чтения;
// — `false` — кластер доступен для записи и чтения.
//
// Example: false
ReadOnlyMode *bool `json:"read_only_mode,omitempty"`
}
CloudruDbaasPostgresqlV1StorageInfoResponse defines model for cloudru.dbaas.postgresql.v1.StorageInfoResponse.
type CloudruDbaasPostgresqlV1StorageSize ¶
type CloudruDbaasPostgresqlV1StorageSize struct {
// PgDataGb Размер основного диска с данными в гигабайтах.
//
// Example: 100
PgDataGb int32 `json:"pg_data_gb"`
// PgWalGb Размер диска с WAL-журналом предзаписи в гигабайтах.
// При указании WAL-журнал будет размещен на отдельном диске.
// Размер должен составлять не менее 20% от основного диска.
// Значение является опциональным.
//
// Example: 40
PgWalGb *int32 `json:"pg_wal_gb,omitempty"`
}
CloudruDbaasPostgresqlV1StorageSize Размеры дисков кластера — основного с данными и дополнительного WAL-диска.
type CloudruDbaasPostgresqlV1StorageUsage ¶
type CloudruDbaasPostgresqlV1StorageUsage struct {
// TotalGb Общий объем доступного дискового пространства.
//
// Example: 100
TotalGb *float64 `json:"total_gb,omitempty"`
// UsedGb Объем занимаемого дискового пространства.
//
// Example: 50
UsedGb *float64 `json:"used_gb,omitempty"`
}
CloudruDbaasPostgresqlV1StorageUsage Подробная информация об используемом дисковом пространстве.
type CloudruDbaasPostgresqlV1UpdateClusterRequest ¶
type CloudruDbaasPostgresqlV1UpdateClusterRequest struct {
// Backup Параметры автоматического резервного копирования.
// Резервное копирование нельзя включить или отключить после создания кластера.
Backup *CloudruDbaasPostgresqlV1BackupSpec `json:"backup,omitempty"`
// ClusterId Идентификатор кластера.
//
// Example: 00000000-0000-0000-0000-000000000000
ClusterId string `json:"cluster_id"`
// Instances Количество узлов кластера.
// Допустимые значения зависят от режима развертывания кластера: 1-2 узла для `standard`, 1-3 узла для `business`.
//
// Если в `subnet_ids` указано несколько подсетей, кластер считается мультизональным,
// и количество узлов должно совпадать с количеством подсетей.
//
// Example: 2
Instances *int32 `json:"instances,omitempty"`
// MaintenanceWindow Окно проведения технического обслуживания.
MaintenanceWindow *CloudruDbaasPostgresqlV1MaintenanceWindow `json:"maintenance_window,omitempty"`
// PoolerConfig Конфигурация пулера соединений PgBouncer.
// Пулер соединений нельзя включить или отключить после создания кластера.
PoolerConfig *CloudruDbaasPostgresqlV1ConnectionPoolerConfig `json:"pooler_config,omitempty"`
// SpecificationId Идентификатор спецификации кластера.
// Ресурсы кластера типа `standard` нельзя изменить после создания.
//
// Example: 00000000-0000-0000-0000-000000000000
SpecificationId *string `json:"specification_id,omitempty"`
// Storage Размеры дисков кластера.
Storage *CloudruDbaasPostgresqlV1StorageSize `json:"storage,omitempty"`
// SubnetIds Идентификаторы подсетей. Подсети определяют зоны доступности кластера.
//
// Если указано несколько подсетей, кластер считается мультизональным.
// Мультизональный режим доступен только для кластеров типа `business`.
// В этом случае количество подсетей должно совпадать с количеством узлов `instances`,
// а каждая подсеть должна находиться в отдельной зоне доступности.
//
// Список подсетей и их описание можно получить через API сервиса виртуальных машин
// в разделе [Subnets](https://cloud.ru/docs/virtual-machines/ug/topics/api-ref-v3#tag/Subnets).
//
// Example: {"value":["00000000-0000-0000-0000-000000000000","11111111-1111-1111-1111-111111111111"]}
SubnetIds *CloudruProtobufV1RepeatedString `json:"subnet_ids,omitempty"`
}
CloudruDbaasPostgresqlV1UpdateClusterRequest Запрос на изменение кластера.
type CloudruDbaasPostgresqlV1UpdateUserRequest ¶
type CloudruDbaasPostgresqlV1UpdateUserRequest struct {
// ClusterId Идентификатор кластера для обновления.
//
// Example: 00000000-0000-0000-0000-000000000000
ClusterId string `json:"cluster_id"`
// GrantedRoles Назначаемые роли.
GrantedRoles *[]CloudruDbaasPostgresqlV1PostgreSQLRole `json:"granted_roles,omitempty"`
// Name Имя пользователя. Используется только для идентификации существующего пользователя.
//
// Example: username
Name string `json:"name"`
// Password Пароль.
//
// Example: NewSecurePass456!
Password *string `json:"password,omitempty"`
}
CloudruDbaasPostgresqlV1UpdateUserRequest Запрос на изменение пользователя в кластере.
Позволяет назначать роли и менять пароль пользователя. Переименование пользователя не поддерживается.
type CloudruDbaasPostgresqlV1User ¶
type CloudruDbaasPostgresqlV1User struct {
// GrantedRoles Назначенные роли.
GrantedRoles *[]CloudruDbaasPostgresqlV1PostgreSQLRole `json:"granted_roles,omitempty"`
// Name Имя пользователя.
//
// Example: username
Name string `json:"name"`
// SupportedRoles Доступные роли.
SupportedRoles *[]CloudruDbaasPostgresqlV1PostgreSQLRole `json:"supported_roles,omitempty"`
}
CloudruDbaasPostgresqlV1User defines model for cloudru.dbaas.postgresql.v1.User.
type CloudruDbaasPostgresqlV1Version ¶
type CloudruDbaasPostgresqlV1Version struct {
// Name Название версии продукта.
//
// Example: 17
Name *string `json:"name,omitempty"`
}
CloudruDbaasPostgresqlV1Version Версия продукта.
type CloudruDbaasPostgresqlV1WeeklyMaintenanceWindow ¶
type CloudruDbaasPostgresqlV1WeeklyMaintenanceWindow struct {
// Day День недели проведения технического обслуживания.
//
// Example: SAT
Day CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay `json:"day"`
// Hour Час начала окна по UTC в диапазоне 1-24 (00:00-23:00).
//
// Example: 2
Hour int32 `json:"hour"`
}
CloudruDbaasPostgresqlV1WeeklyMaintenanceWindow Техническое обслуживание по расписанию.
type CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay ¶
type CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay string
CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay День недели проведения технического обслуживания.
Example: SAT
const ( WEEKDAYFRI CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_FRI" WEEKDAYMON CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_MON" WEEKDAYSAT CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_SAT" WEEKDAYSUN CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_SUN" WEEKDAYTHU CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_THU" WEEKDAYTUE CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_TUE" WEEKDAYUNSPECIFIED CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_UNSPECIFIED" WEEKDAYWED CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay = "WEEK_DAY_WED" )
Defines values for CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay.
func (CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay) Valid ¶
func (e CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay) Valid() bool
Valid indicates whether the value is a known member of the CloudruDbaasPostgresqlV1WeeklyMaintenanceWindowDay enum.
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 = CloudruDbaasPostgresqlV1CreateClusterRequest
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 *CloudruDbaasPostgresqlV1Cluster
// 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() *CloudruDbaasPostgresqlV1Cluster
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 ClusterServiceListLocalesResponse ¶
type ClusterServiceListLocalesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1ListLocalesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *GoogleRpcStatus
}
func ParseClusterServiceListLocalesResponse ¶
func ParseClusterServiceListLocalesResponse(rsp *http.Response) (*ClusterServiceListLocalesResponse, error)
ParseClusterServiceListLocalesResponse parses an HTTP response from a ClusterServiceListLocalesWithResponse call
func (ClusterServiceListLocalesResponse) ContentType ¶
func (r ClusterServiceListLocalesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClusterServiceListLocalesResponse) GetBody ¶
func (r ClusterServiceListLocalesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClusterServiceListLocalesResponse) GetJSON200 ¶
func (r ClusterServiceListLocalesResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListLocalesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClusterServiceListLocalesResponse) GetJSONDefault ¶
func (r ClusterServiceListLocalesResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ClusterServiceListLocalesResponse) Status ¶
func (r ClusterServiceListLocalesResponse) Status() string
Status returns HTTPResponse.Status
func (ClusterServiceListLocalesResponse) StatusCode ¶
func (r ClusterServiceListLocalesResponse) 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 *CloudruDbaasPostgresqlV1ListOperationsResponse
// 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() *CloudruDbaasPostgresqlV1ListOperationsResponse
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 Максимальное количество результатов на странице ответа.
// Значение по умолчанию — 100. Максимальное значение — 1000.
PageSize *string `form:"page_size,omitempty" json:"page_size,omitempty"`
// PageToken Токен запрашиваемой страницы с результатами.
// При первом запросе оставьте поле пустым.
// При последующих запросах укажите значение параметра `next_page_token` из ответа метода.
PageToken *string `form:"page_token,omitempty" json:"page_token,omitempty"`
// ProductType Название продукта. По умолчанию `postgres`.
ProductType *string `form:"product_type,omitempty" json:"product_type,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 *CloudruDbaasPostgresqlV1ListClustersResponse
// 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() *CloudruDbaasPostgresqlV1ListClustersResponse
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 ClusterServiceResumeResponse ¶
type ClusterServiceResumeResponse 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 ParseClusterServiceResumeResponse ¶
func ParseClusterServiceResumeResponse(rsp *http.Response) (*ClusterServiceResumeResponse, error)
ParseClusterServiceResumeResponse parses an HTTP response from a ClusterServiceResumeWithResponse call
func (ClusterServiceResumeResponse) ContentType ¶
func (r ClusterServiceResumeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClusterServiceResumeResponse) GetBody ¶
func (r ClusterServiceResumeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClusterServiceResumeResponse) GetJSON200 ¶
func (r ClusterServiceResumeResponse) GetJSON200() *CloudruDbaasOperationOperation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClusterServiceResumeResponse) GetJSONDefault ¶
func (r ClusterServiceResumeResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ClusterServiceResumeResponse) Status ¶
func (r ClusterServiceResumeResponse) Status() string
Status returns HTTPResponse.Status
func (ClusterServiceResumeResponse) StatusCode ¶
func (r ClusterServiceResumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClusterServiceStorageInfoResponse ¶
type ClusterServiceStorageInfoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1StorageInfoResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *GoogleRpcStatus
}
func ParseClusterServiceStorageInfoResponse ¶
func ParseClusterServiceStorageInfoResponse(rsp *http.Response) (*ClusterServiceStorageInfoResponse, error)
ParseClusterServiceStorageInfoResponse parses an HTTP response from a ClusterServiceStorageInfoWithResponse call
func (ClusterServiceStorageInfoResponse) ContentType ¶
func (r ClusterServiceStorageInfoResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClusterServiceStorageInfoResponse) GetBody ¶
func (r ClusterServiceStorageInfoResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClusterServiceStorageInfoResponse) GetJSON200 ¶
func (r ClusterServiceStorageInfoResponse) GetJSON200() *CloudruDbaasPostgresqlV1StorageInfoResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClusterServiceStorageInfoResponse) GetJSONDefault ¶
func (r ClusterServiceStorageInfoResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ClusterServiceStorageInfoResponse) Status ¶
func (r ClusterServiceStorageInfoResponse) Status() string
Status returns HTTPResponse.Status
func (ClusterServiceStorageInfoResponse) StatusCode ¶
func (r ClusterServiceStorageInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClusterServiceSuspendResponse ¶
type ClusterServiceSuspendResponse 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 ParseClusterServiceSuspendResponse ¶
func ParseClusterServiceSuspendResponse(rsp *http.Response) (*ClusterServiceSuspendResponse, error)
ParseClusterServiceSuspendResponse parses an HTTP response from a ClusterServiceSuspendWithResponse call
func (ClusterServiceSuspendResponse) ContentType ¶
func (r ClusterServiceSuspendResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClusterServiceSuspendResponse) GetBody ¶
func (r ClusterServiceSuspendResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClusterServiceSuspendResponse) GetJSON200 ¶
func (r ClusterServiceSuspendResponse) GetJSON200() *CloudruDbaasOperationOperation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClusterServiceSuspendResponse) GetJSONDefault ¶
func (r ClusterServiceSuspendResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ClusterServiceSuspendResponse) Status ¶
func (r ClusterServiceSuspendResponse) Status() string
Status returns HTTPResponse.Status
func (ClusterServiceSuspendResponse) StatusCode ¶
func (r ClusterServiceSuspendResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClusterServiceSwitchoverResponse ¶
type ClusterServiceSwitchoverResponse 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 ParseClusterServiceSwitchoverResponse ¶
func ParseClusterServiceSwitchoverResponse(rsp *http.Response) (*ClusterServiceSwitchoverResponse, error)
ParseClusterServiceSwitchoverResponse parses an HTTP response from a ClusterServiceSwitchoverWithResponse call
func (ClusterServiceSwitchoverResponse) ContentType ¶
func (r ClusterServiceSwitchoverResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClusterServiceSwitchoverResponse) GetBody ¶
func (r ClusterServiceSwitchoverResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ClusterServiceSwitchoverResponse) GetJSON200 ¶
func (r ClusterServiceSwitchoverResponse) GetJSON200() *CloudruDbaasOperationOperation
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ClusterServiceSwitchoverResponse) GetJSONDefault ¶
func (r ClusterServiceSwitchoverResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ClusterServiceSwitchoverResponse) Status ¶
func (r ClusterServiceSwitchoverResponse) Status() string
Status returns HTTPResponse.Status
func (ClusterServiceSwitchoverResponse) StatusCode ¶
func (r ClusterServiceSwitchoverResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClusterServiceUpdateJSONRequestBody ¶
type ClusterServiceUpdateJSONRequestBody = CloudruDbaasPostgresqlV1UpdateClusterRequest
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 = CloudruDbaasPostgresqlV1CreateDatabaseRequest
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 *CloudruDbaasPostgresqlV1Database
// 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() *CloudruDbaasPostgresqlV1Database
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 *CloudruDbaasPostgresqlV1DeleteDatabaseResponse
// 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() *CloudruDbaasPostgresqlV1DeleteDatabaseResponse
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 *CloudruDbaasPostgresqlV1Database
// 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() *CloudruDbaasPostgresqlV1Database
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 *CloudruDbaasPostgresqlV1ListDatabasesResponse
// 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() *CloudruDbaasPostgresqlV1ListDatabasesResponse
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 GoogleProtobufAny ¶
type GoogleProtobufAny struct {
// Type URL-адрес или имя ресурса, которое определяет тип сериализованного сообщения.
Type *string `json:"@type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
GoogleProtobufAny Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
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 SpecificationServiceListParams ¶
type SpecificationServiceListParams struct {
// VersionName Версия продукта.
// Укажите для получения спецификаций.
VersionName *string `form:"version_name,omitempty" json:"version_name,omitempty"`
// ProductType Название продукта. По умолчанию `postgres`.
ProductType *string `form:"product_type,omitempty" json:"product_type,omitempty"`
// ClusterId Идентификатор кластера.
// Укажите для получения спецификаций, доступных для вертикального масштабирования кластера.
ClusterId *string `form:"cluster_id,omitempty" json:"cluster_id,omitempty"`
}
SpecificationServiceListParams defines parameters for SpecificationServiceList.
type SpecificationServiceListResponse ¶
type SpecificationServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1ListSpecificationResponse
// 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() *CloudruDbaasPostgresqlV1ListSpecificationResponse
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 = CloudruDbaasPostgresqlV1CreateUserRequest
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 *CloudruDbaasPostgresqlV1User
// 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() *CloudruDbaasPostgresqlV1User
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 *CloudruDbaasPostgresqlV1DeleteUserResponse
// 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() *CloudruDbaasPostgresqlV1DeleteUserResponse
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 *CloudruDbaasPostgresqlV1User
// 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() *CloudruDbaasPostgresqlV1User
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UserServiceGetResponse) GetJSONDefault ¶
func (r UserServiceGetResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UserServiceGetResponse) Status ¶
func (r UserServiceGetResponse) Status() string
Status returns HTTPResponse.Status
func (UserServiceGetResponse) StatusCode ¶
func (r UserServiceGetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UserServiceListResponse ¶
type UserServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1ListUsersResponse
// 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() *CloudruDbaasPostgresqlV1ListUsersResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UserServiceListResponse) GetJSONDefault ¶
func (r UserServiceListResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UserServiceListResponse) Status ¶
func (r UserServiceListResponse) Status() string
Status returns HTTPResponse.Status
func (UserServiceListResponse) StatusCode ¶
func (r UserServiceListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UserServiceUpdateJSONRequestBody ¶
type UserServiceUpdateJSONRequestBody = CloudruDbaasPostgresqlV1UpdateUserRequest
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 *CloudruDbaasPostgresqlV1User
// 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() *CloudruDbaasPostgresqlV1User
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 VersionServiceListLocalesParams ¶
type VersionServiceListLocalesParams struct {
// ProductType Название продукта. По умолчанию `postgres`.
ProductType *string `form:"product_type,omitempty" json:"product_type,omitempty"`
}
VersionServiceListLocalesParams defines parameters for VersionServiceListLocales.
type VersionServiceListLocalesResponse ¶
type VersionServiceListLocalesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1ListVersionLocalesResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *GoogleRpcStatus
}
func ParseVersionServiceListLocalesResponse ¶
func ParseVersionServiceListLocalesResponse(rsp *http.Response) (*VersionServiceListLocalesResponse, error)
ParseVersionServiceListLocalesResponse parses an HTTP response from a VersionServiceListLocalesWithResponse call
func (VersionServiceListLocalesResponse) ContentType ¶
func (r VersionServiceListLocalesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VersionServiceListLocalesResponse) GetBody ¶
func (r VersionServiceListLocalesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VersionServiceListLocalesResponse) GetJSON200 ¶
func (r VersionServiceListLocalesResponse) GetJSON200() *CloudruDbaasPostgresqlV1ListVersionLocalesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VersionServiceListLocalesResponse) GetJSONDefault ¶
func (r VersionServiceListLocalesResponse) GetJSONDefault() *GoogleRpcStatus
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VersionServiceListLocalesResponse) Status ¶
func (r VersionServiceListLocalesResponse) Status() string
Status returns HTTPResponse.Status
func (VersionServiceListLocalesResponse) StatusCode ¶
func (r VersionServiceListLocalesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VersionServiceListParams ¶
type VersionServiceListParams struct {
// ProductType Название продукта. По умолчанию `postgres`.
ProductType *string `form:"product_type,omitempty" json:"product_type,omitempty"`
}
VersionServiceListParams defines parameters for VersionServiceList.
type VersionServiceListResponse ¶
type VersionServiceListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CloudruDbaasPostgresqlV1ListVersionsResponse
// 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() *CloudruDbaasPostgresqlV1ListVersionsResponse
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