Documentation ¶
Index ¶
- func GaussDBClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForChangeMysqlInstanceSpecification() *def.HttpRequestDef
- func GenReqDefForCreateMysqlBackup() *def.HttpRequestDef
- func GenReqDefForCreateMysqlInstance() *def.HttpRequestDef
- func GenReqDefForCreateMysqlProxy() *def.HttpRequestDef
- func GenReqDefForCreateMysqlReadonlyNode() *def.HttpRequestDef
- func GenReqDefForDeleteMysqlInstance() *def.HttpRequestDef
- func GenReqDefForDeleteMysqlProxy() *def.HttpRequestDef
- func GenReqDefForDeleteMysqlReadonlyNode() *def.HttpRequestDef
- func GenReqDefForExpandMysqlInstanceVolume() *def.HttpRequestDef
- func GenReqDefForExpandMysqlProxy() *def.HttpRequestDef
- func GenReqDefForListDedicatedResources() *def.HttpRequestDef
- func GenReqDefForListMysqlConfigurations() *def.HttpRequestDef
- func GenReqDefForListMysqlErrorLog() *def.HttpRequestDef
- func GenReqDefForListMysqlSlowLog() *def.HttpRequestDef
- func GenReqDefForResetMysqlPassword() *def.HttpRequestDef
- func GenReqDefForSetMysqlQuotas() *def.HttpRequestDef
- func GenReqDefForShowMysqlBackupList() *def.HttpRequestDef
- func GenReqDefForShowMysqlBackupPolicy() *def.HttpRequestDef
- func GenReqDefForShowMysqlEngineVersion() *def.HttpRequestDef
- func GenReqDefForShowMysqlFlavors() *def.HttpRequestDef
- func GenReqDefForShowMysqlInstanceInfo() *def.HttpRequestDef
- func GenReqDefForShowMysqlInstanceList() *def.HttpRequestDef
- func GenReqDefForShowMysqlJobInfo() *def.HttpRequestDef
- func GenReqDefForShowMysqlProjectQuotas() *def.HttpRequestDef
- func GenReqDefForShowMysqlProxy() *def.HttpRequestDef
- func GenReqDefForShowMysqlProxyFlavors() *def.HttpRequestDef
- func GenReqDefForShowMysqlQuotas() *def.HttpRequestDef
- func GenReqDefForUpdateMysqlBackupPolicy() *def.HttpRequestDef
- func GenReqDefForUpdateMysqlInstanceName() *def.HttpRequestDef
- func GenReqDefForUpdateMysqlQuotas() *def.HttpRequestDef
- type GaussDBClient
- func (c *GaussDBClient) ChangeMysqlInstanceSpecification(request *model.ChangeMysqlInstanceSpecificationRequest) (*model.ChangeMysqlInstanceSpecificationResponse, error)
- func (c *GaussDBClient) CreateMysqlBackup(request *model.CreateMysqlBackupRequest) (*model.CreateMysqlBackupResponse, error)
- func (c *GaussDBClient) CreateMysqlInstance(request *model.CreateMysqlInstanceRequest) (*model.CreateMysqlInstanceResponse, error)
- func (c *GaussDBClient) CreateMysqlProxy(request *model.CreateMysqlProxyRequest) (*model.CreateMysqlProxyResponse, error)
- func (c *GaussDBClient) CreateMysqlReadonlyNode(request *model.CreateMysqlReadonlyNodeRequest) (*model.CreateMysqlReadonlyNodeResponse, error)
- func (c *GaussDBClient) DeleteMysqlInstance(request *model.DeleteMysqlInstanceRequest) (*model.DeleteMysqlInstanceResponse, error)
- func (c *GaussDBClient) DeleteMysqlProxy(request *model.DeleteMysqlProxyRequest) (*model.DeleteMysqlProxyResponse, error)
- func (c *GaussDBClient) DeleteMysqlReadonlyNode(request *model.DeleteMysqlReadonlyNodeRequest) (*model.DeleteMysqlReadonlyNodeResponse, error)
- func (c *GaussDBClient) ExpandMysqlInstanceVolume(request *model.ExpandMysqlInstanceVolumeRequest) (*model.ExpandMysqlInstanceVolumeResponse, error)
- func (c *GaussDBClient) ExpandMysqlProxy(request *model.ExpandMysqlProxyRequest) (*model.ExpandMysqlProxyResponse, error)
- func (c *GaussDBClient) ListDedicatedResources(request *model.ListDedicatedResourcesRequest) (*model.ListDedicatedResourcesResponse, error)
- func (c *GaussDBClient) ListMysqlConfigurations(request *model.ListMysqlConfigurationsRequest) (*model.ListMysqlConfigurationsResponse, error)
- func (c *GaussDBClient) ListMysqlErrorLog(request *model.ListMysqlErrorLogRequest) (*model.ListMysqlErrorLogResponse, error)
- func (c *GaussDBClient) ListMysqlSlowLog(request *model.ListMysqlSlowLogRequest) (*model.ListMysqlSlowLogResponse, error)
- func (c *GaussDBClient) ResetMysqlPassword(request *model.ResetMysqlPasswordRequest) (*model.ResetMysqlPasswordResponse, error)
- func (c *GaussDBClient) SetMysqlQuotas(request *model.SetMysqlQuotasRequest) (*model.SetMysqlQuotasResponse, error)
- func (c *GaussDBClient) ShowMysqlBackupList(request *model.ShowMysqlBackupListRequest) (*model.ShowMysqlBackupListResponse, error)
- func (c *GaussDBClient) ShowMysqlBackupPolicy(request *model.ShowMysqlBackupPolicyRequest) (*model.ShowMysqlBackupPolicyResponse, error)
- func (c *GaussDBClient) ShowMysqlEngineVersion(request *model.ShowMysqlEngineVersionRequest) (*model.ShowMysqlEngineVersionResponse, error)
- func (c *GaussDBClient) ShowMysqlFlavors(request *model.ShowMysqlFlavorsRequest) (*model.ShowMysqlFlavorsResponse, error)
- func (c *GaussDBClient) ShowMysqlInstanceInfo(request *model.ShowMysqlInstanceInfoRequest) (*model.ShowMysqlInstanceInfoResponse, error)
- func (c *GaussDBClient) ShowMysqlInstanceList(request *model.ShowMysqlInstanceListRequest) (*model.ShowMysqlInstanceListResponse, error)
- func (c *GaussDBClient) ShowMysqlJobInfo(request *model.ShowMysqlJobInfoRequest) (*model.ShowMysqlJobInfoResponse, error)
- func (c *GaussDBClient) ShowMysqlProjectQuotas(request *model.ShowMysqlProjectQuotasRequest) (*model.ShowMysqlProjectQuotasResponse, error)
- func (c *GaussDBClient) ShowMysqlProxy(request *model.ShowMysqlProxyRequest) (*model.ShowMysqlProxyResponse, error)
- func (c *GaussDBClient) ShowMysqlProxyFlavors(request *model.ShowMysqlProxyFlavorsRequest) (*model.ShowMysqlProxyFlavorsResponse, error)
- func (c *GaussDBClient) ShowMysqlQuotas(request *model.ShowMysqlQuotasRequest) (*model.ShowMysqlQuotasResponse, error)
- func (c *GaussDBClient) UpdateMysqlBackupPolicy(request *model.UpdateMysqlBackupPolicyRequest) (*model.UpdateMysqlBackupPolicyResponse, error)
- func (c *GaussDBClient) UpdateMysqlInstanceName(request *model.UpdateMysqlInstanceNameRequest) (*model.UpdateMysqlInstanceNameResponse, error)
- func (c *GaussDBClient) UpdateMysqlQuotas(request *model.UpdateMysqlQuotasRequest) (*model.UpdateMysqlQuotasResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GaussDBClientBuilder ¶
func GaussDBClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForChangeMysqlInstanceSpecification ¶
func GenReqDefForChangeMysqlInstanceSpecification() *def.HttpRequestDef
func GenReqDefForCreateMysqlBackup ¶
func GenReqDefForCreateMysqlBackup() *def.HttpRequestDef
func GenReqDefForCreateMysqlInstance ¶
func GenReqDefForCreateMysqlInstance() *def.HttpRequestDef
func GenReqDefForCreateMysqlProxy ¶
func GenReqDefForCreateMysqlProxy() *def.HttpRequestDef
func GenReqDefForCreateMysqlReadonlyNode ¶
func GenReqDefForCreateMysqlReadonlyNode() *def.HttpRequestDef
func GenReqDefForDeleteMysqlInstance ¶
func GenReqDefForDeleteMysqlInstance() *def.HttpRequestDef
func GenReqDefForDeleteMysqlProxy ¶
func GenReqDefForDeleteMysqlProxy() *def.HttpRequestDef
func GenReqDefForDeleteMysqlReadonlyNode ¶
func GenReqDefForDeleteMysqlReadonlyNode() *def.HttpRequestDef
func GenReqDefForExpandMysqlInstanceVolume ¶
func GenReqDefForExpandMysqlInstanceVolume() *def.HttpRequestDef
func GenReqDefForExpandMysqlProxy ¶
func GenReqDefForExpandMysqlProxy() *def.HttpRequestDef
func GenReqDefForListDedicatedResources ¶ added in v0.0.58
func GenReqDefForListDedicatedResources() *def.HttpRequestDef
func GenReqDefForListMysqlConfigurations ¶
func GenReqDefForListMysqlConfigurations() *def.HttpRequestDef
func GenReqDefForListMysqlErrorLog ¶
func GenReqDefForListMysqlErrorLog() *def.HttpRequestDef
func GenReqDefForListMysqlSlowLog ¶
func GenReqDefForListMysqlSlowLog() *def.HttpRequestDef
func GenReqDefForResetMysqlPassword ¶
func GenReqDefForResetMysqlPassword() *def.HttpRequestDef
func GenReqDefForSetMysqlQuotas ¶
func GenReqDefForSetMysqlQuotas() *def.HttpRequestDef
func GenReqDefForShowMysqlBackupList ¶
func GenReqDefForShowMysqlBackupList() *def.HttpRequestDef
func GenReqDefForShowMysqlBackupPolicy ¶
func GenReqDefForShowMysqlBackupPolicy() *def.HttpRequestDef
func GenReqDefForShowMysqlEngineVersion ¶
func GenReqDefForShowMysqlEngineVersion() *def.HttpRequestDef
func GenReqDefForShowMysqlFlavors ¶
func GenReqDefForShowMysqlFlavors() *def.HttpRequestDef
func GenReqDefForShowMysqlInstanceInfo ¶
func GenReqDefForShowMysqlInstanceInfo() *def.HttpRequestDef
func GenReqDefForShowMysqlInstanceList ¶
func GenReqDefForShowMysqlInstanceList() *def.HttpRequestDef
func GenReqDefForShowMysqlJobInfo ¶
func GenReqDefForShowMysqlJobInfo() *def.HttpRequestDef
func GenReqDefForShowMysqlProjectQuotas ¶
func GenReqDefForShowMysqlProjectQuotas() *def.HttpRequestDef
func GenReqDefForShowMysqlProxy ¶
func GenReqDefForShowMysqlProxy() *def.HttpRequestDef
func GenReqDefForShowMysqlProxyFlavors ¶
func GenReqDefForShowMysqlProxyFlavors() *def.HttpRequestDef
func GenReqDefForShowMysqlQuotas ¶
func GenReqDefForShowMysqlQuotas() *def.HttpRequestDef
func GenReqDefForUpdateMysqlBackupPolicy ¶
func GenReqDefForUpdateMysqlBackupPolicy() *def.HttpRequestDef
func GenReqDefForUpdateMysqlInstanceName ¶
func GenReqDefForUpdateMysqlInstanceName() *def.HttpRequestDef
func GenReqDefForUpdateMysqlQuotas ¶
func GenReqDefForUpdateMysqlQuotas() *def.HttpRequestDef
Types ¶
type GaussDBClient ¶
type GaussDBClient struct {
HcClient *http_client.HcHttpClient
}
func NewGaussDBClient ¶
func NewGaussDBClient(hcClient *http_client.HcHttpClient) *GaussDBClient
func (*GaussDBClient) ChangeMysqlInstanceSpecification ¶
func (c *GaussDBClient) ChangeMysqlInstanceSpecification(request *model.ChangeMysqlInstanceSpecificationRequest) (*model.ChangeMysqlInstanceSpecificationResponse, error)
变更数据库实例的规格。
func (*GaussDBClient) CreateMysqlBackup ¶
func (c *GaussDBClient) CreateMysqlBackup(request *model.CreateMysqlBackupRequest) (*model.CreateMysqlBackupResponse, error)
创建手动备份
func (*GaussDBClient) CreateMysqlInstance ¶
func (c *GaussDBClient) CreateMysqlInstance(request *model.CreateMysqlInstanceRequest) (*model.CreateMysqlInstanceResponse, error)
创建云数据库 GaussDB(for MySQL)实例。
func (*GaussDBClient) CreateMysqlProxy ¶
func (c *GaussDBClient) CreateMysqlProxy(request *model.CreateMysqlProxyRequest) (*model.CreateMysqlProxyResponse, error)
开启数据库代理,只支持ELB模式。
func (*GaussDBClient) CreateMysqlReadonlyNode ¶
func (c *GaussDBClient) CreateMysqlReadonlyNode(request *model.CreateMysqlReadonlyNodeRequest) (*model.CreateMysqlReadonlyNodeResponse, error)
创建只读节点。
func (*GaussDBClient) DeleteMysqlInstance ¶
func (c *GaussDBClient) DeleteMysqlInstance(request *model.DeleteMysqlInstanceRequest) (*model.DeleteMysqlInstanceResponse, error)
删除数据库实例,不支持删除包周期实例。
func (*GaussDBClient) DeleteMysqlProxy ¶
func (c *GaussDBClient) DeleteMysqlProxy(request *model.DeleteMysqlProxyRequest) (*model.DeleteMysqlProxyResponse, error)
关闭数据库代理。
func (*GaussDBClient) DeleteMysqlReadonlyNode ¶
func (c *GaussDBClient) DeleteMysqlReadonlyNode(request *model.DeleteMysqlReadonlyNodeRequest) (*model.DeleteMysqlReadonlyNodeResponse, error)
删除实例的只读节点。多可用区模式删除只读节点时,要保证删除后,剩余的只读节点和主节点在不同的可用区中,否则无法删除该只读节点。
func (*GaussDBClient) ExpandMysqlInstanceVolume ¶
func (c *GaussDBClient) ExpandMysqlInstanceVolume(request *model.ExpandMysqlInstanceVolumeRequest) (*model.ExpandMysqlInstanceVolumeResponse, error)
包周期存储扩容
func (*GaussDBClient) ExpandMysqlProxy ¶
func (c *GaussDBClient) ExpandMysqlProxy(request *model.ExpandMysqlProxyRequest) (*model.ExpandMysqlProxyResponse, error)
扩容数据库代理节点的数量。 DeC专属云账号暂不支持数据库代理。
func (*GaussDBClient) ListDedicatedResources ¶ added in v0.0.58
func (c *GaussDBClient) ListDedicatedResources(request *model.ListDedicatedResourcesRequest) (*model.ListDedicatedResourcesResponse, error)
获取专属资源池列表,包括用户开通的所有专属资源池信息。
func (*GaussDBClient) ListMysqlConfigurations ¶
func (c *GaussDBClient) ListMysqlConfigurations(request *model.ListMysqlConfigurationsRequest) (*model.ListMysqlConfigurationsResponse, error)
获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。
func (*GaussDBClient) ListMysqlErrorLog ¶
func (c *GaussDBClient) ListMysqlErrorLog(request *model.ListMysqlErrorLogRequest) (*model.ListMysqlErrorLogResponse, error)
查询数据库错误日志。
func (*GaussDBClient) ListMysqlSlowLog ¶
func (c *GaussDBClient) ListMysqlSlowLog(request *model.ListMysqlSlowLogRequest) (*model.ListMysqlSlowLogResponse, error)
查询数据库慢日志
func (*GaussDBClient) ResetMysqlPassword ¶
func (c *GaussDBClient) ResetMysqlPassword(request *model.ResetMysqlPasswordRequest) (*model.ResetMysqlPasswordResponse, error)
重置数据库密码
func (*GaussDBClient) SetMysqlQuotas ¶
func (c *GaussDBClient) SetMysqlQuotas(request *model.SetMysqlQuotasRequest) (*model.SetMysqlQuotasResponse, error)
设置指定企业项目的资源配额。
func (*GaussDBClient) ShowMysqlBackupList ¶
func (c *GaussDBClient) ShowMysqlBackupList(request *model.ShowMysqlBackupListRequest) (*model.ShowMysqlBackupListResponse, error)
查询备份列表
func (*GaussDBClient) ShowMysqlBackupPolicy ¶
func (c *GaussDBClient) ShowMysqlBackupPolicy(request *model.ShowMysqlBackupPolicyRequest) (*model.ShowMysqlBackupPolicyResponse, error)
查询自动备份策略。
func (*GaussDBClient) ShowMysqlEngineVersion ¶
func (c *GaussDBClient) ShowMysqlEngineVersion(request *model.ShowMysqlEngineVersionRequest) (*model.ShowMysqlEngineVersionResponse, error)
获取指定数据库引擎对应的数据库版本信息。
func (*GaussDBClient) ShowMysqlFlavors ¶
func (c *GaussDBClient) ShowMysqlFlavors(request *model.ShowMysqlFlavorsRequest) (*model.ShowMysqlFlavorsResponse, error)
获取指定数据库引擎版本对应的规格信息。
func (*GaussDBClient) ShowMysqlInstanceInfo ¶
func (c *GaussDBClient) ShowMysqlInstanceInfo(request *model.ShowMysqlInstanceInfoRequest) (*model.ShowMysqlInstanceInfoResponse, error)
查询实例详情信息
func (*GaussDBClient) ShowMysqlInstanceList ¶
func (c *GaussDBClient) ShowMysqlInstanceList(request *model.ShowMysqlInstanceListRequest) (*model.ShowMysqlInstanceListResponse, error)
根据指定条件查询实例列表。
func (*GaussDBClient) ShowMysqlJobInfo ¶
func (c *GaussDBClient) ShowMysqlJobInfo(request *model.ShowMysqlJobInfoRequest) (*model.ShowMysqlJobInfoResponse, error)
获取指定ID的任务信息。
func (*GaussDBClient) ShowMysqlProjectQuotas ¶
func (c *GaussDBClient) ShowMysqlProjectQuotas(request *model.ShowMysqlProjectQuotasRequest) (*model.ShowMysqlProjectQuotasResponse, error)
获取指定租户的资源配额。
func (*GaussDBClient) ShowMysqlProxy ¶
func (c *GaussDBClient) ShowMysqlProxy(request *model.ShowMysqlProxyRequest) (*model.ShowMysqlProxyResponse, error)
查询数据库代理信息。
func (*GaussDBClient) ShowMysqlProxyFlavors ¶
func (c *GaussDBClient) ShowMysqlProxyFlavors(request *model.ShowMysqlProxyFlavorsRequest) (*model.ShowMysqlProxyFlavorsResponse, error)
查询数据库代理规格信息。
func (*GaussDBClient) ShowMysqlQuotas ¶
func (c *GaussDBClient) ShowMysqlQuotas(request *model.ShowMysqlQuotasRequest) (*model.ShowMysqlQuotasResponse, error)
获取指定企业项目的资源配额。
func (*GaussDBClient) UpdateMysqlBackupPolicy ¶
func (c *GaussDBClient) UpdateMysqlBackupPolicy(request *model.UpdateMysqlBackupPolicyRequest) (*model.UpdateMysqlBackupPolicyResponse, error)
修改备份策略
func (*GaussDBClient) UpdateMysqlInstanceName ¶
func (c *GaussDBClient) UpdateMysqlInstanceName(request *model.UpdateMysqlInstanceNameRequest) (*model.UpdateMysqlInstanceNameResponse, error)
修改实例名称
func (*GaussDBClient) UpdateMysqlQuotas ¶
func (c *GaussDBClient) UpdateMysqlQuotas(request *model.UpdateMysqlQuotasRequest) (*model.UpdateMysqlQuotasResponse, error)
修改指定企业项目的资源配额。
Click to show internal directories.
Click to hide internal directories.