Documentation ¶
Index ¶
- func GaussDBforopenGaussClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAllowDbPrivileges() *def.HttpRequestDef
- func GenReqDefForCreateDatabase() *def.HttpRequestDef
- func GenReqDefForCreateDatabaseSchemas() *def.HttpRequestDef
- func GenReqDefForCreateDbUser() *def.HttpRequestDef
- func GenReqDefForCreateInstance() *def.HttpRequestDef
- func GenReqDefForCreateManualBackup() *def.HttpRequestDef
- func GenReqDefForCreateRestoreInstance() *def.HttpRequestDef
- func GenReqDefForDeleteInstance() *def.HttpRequestDef
- func GenReqDefForDeleteManualBackup() *def.HttpRequestDef
- func GenReqDefForListBackups() *def.HttpRequestDef
- func GenReqDefForListConfigurations() *def.HttpRequestDef
- func GenReqDefForListDatabaseSchemas() *def.HttpRequestDef
- func GenReqDefForListDatabases() *def.HttpRequestDef
- func GenReqDefForListDatastores() *def.HttpRequestDef
- func GenReqDefForListDbUsers() *def.HttpRequestDef
- func GenReqDefForListFlavors() *def.HttpRequestDef
- func GenReqDefForListInstances() *def.HttpRequestDef
- func GenReqDefForListRestoreTimes() *def.HttpRequestDef
- func GenReqDefForListStorageTypes() *def.HttpRequestDef
- func GenReqDefForResetPwd() *def.HttpRequestDef
- func GenReqDefForRestartInstance() *def.HttpRequestDef
- func GenReqDefForRunInstanceAction() *def.HttpRequestDef
- func GenReqDefForSetBackupPolicy() *def.HttpRequestDef
- func GenReqDefForSetDbUserPwd() *def.HttpRequestDef
- func GenReqDefForShowBackupPolicy() *def.HttpRequestDef
- func GenReqDefForShowInstanceConfiguration() *def.HttpRequestDef
- func GenReqDefForUpdateInstanceConfiguration() *def.HttpRequestDef
- func GenReqDefForUpdateInstanceName() *def.HttpRequestDef
- type GaussDBforopenGaussClient
- func (c *GaussDBforopenGaussClient) AllowDbPrivileges(request *model.AllowDbPrivilegesRequest) (*model.AllowDbPrivilegesResponse, error)
- func (c *GaussDBforopenGaussClient) CreateDatabase(request *model.CreateDatabaseRequest) (*model.CreateDatabaseResponse, error)
- func (c *GaussDBforopenGaussClient) CreateDatabaseSchemas(request *model.CreateDatabaseSchemasRequest) (*model.CreateDatabaseSchemasResponse, error)
- func (c *GaussDBforopenGaussClient) CreateDbUser(request *model.CreateDbUserRequest) (*model.CreateDbUserResponse, error)
- func (c *GaussDBforopenGaussClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error)
- func (c *GaussDBforopenGaussClient) CreateManualBackup(request *model.CreateManualBackupRequest) (*model.CreateManualBackupResponse, error)
- func (c *GaussDBforopenGaussClient) CreateRestoreInstance(request *model.CreateRestoreInstanceRequest) (*model.CreateRestoreInstanceResponse, error)
- func (c *GaussDBforopenGaussClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error)
- func (c *GaussDBforopenGaussClient) DeleteManualBackup(request *model.DeleteManualBackupRequest) (*model.DeleteManualBackupResponse, error)
- func (c *GaussDBforopenGaussClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)
- func (c *GaussDBforopenGaussClient) ListConfigurations(request *model.ListConfigurationsRequest) (*model.ListConfigurationsResponse, error)
- func (c *GaussDBforopenGaussClient) ListDatabaseSchemas(request *model.ListDatabaseSchemasRequest) (*model.ListDatabaseSchemasResponse, error)
- func (c *GaussDBforopenGaussClient) ListDatabases(request *model.ListDatabasesRequest) (*model.ListDatabasesResponse, error)
- func (c *GaussDBforopenGaussClient) ListDatastores(request *model.ListDatastoresRequest) (*model.ListDatastoresResponse, error)
- func (c *GaussDBforopenGaussClient) ListDbUsers(request *model.ListDbUsersRequest) (*model.ListDbUsersResponse, error)
- func (c *GaussDBforopenGaussClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error)
- func (c *GaussDBforopenGaussClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)
- func (c *GaussDBforopenGaussClient) ListRestoreTimes(request *model.ListRestoreTimesRequest) (*model.ListRestoreTimesResponse, error)
- func (c *GaussDBforopenGaussClient) ListStorageTypes(request *model.ListStorageTypesRequest) (*model.ListStorageTypesResponse, error)
- func (c *GaussDBforopenGaussClient) ResetPwd(request *model.ResetPwdRequest) (*model.ResetPwdResponse, error)
- func (c *GaussDBforopenGaussClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error)
- func (c *GaussDBforopenGaussClient) RunInstanceAction(request *model.RunInstanceActionRequest) (*model.RunInstanceActionResponse, error)
- func (c *GaussDBforopenGaussClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error)
- func (c *GaussDBforopenGaussClient) SetDbUserPwd(request *model.SetDbUserPwdRequest) (*model.SetDbUserPwdResponse, error)
- func (c *GaussDBforopenGaussClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error)
- func (c *GaussDBforopenGaussClient) ShowInstanceConfiguration(request *model.ShowInstanceConfigurationRequest) (*model.ShowInstanceConfigurationResponse, error)
- func (c *GaussDBforopenGaussClient) UpdateInstanceConfiguration(request *model.UpdateInstanceConfigurationRequest) (*model.UpdateInstanceConfigurationResponse, error)
- func (c *GaussDBforopenGaussClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GaussDBforopenGaussClientBuilder ¶
func GaussDBforopenGaussClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForAllowDbPrivileges ¶ added in v0.0.88
func GenReqDefForAllowDbPrivileges() *def.HttpRequestDef
func GenReqDefForCreateDatabase ¶ added in v0.0.88
func GenReqDefForCreateDatabase() *def.HttpRequestDef
func GenReqDefForCreateDatabaseSchemas ¶ added in v0.0.88
func GenReqDefForCreateDatabaseSchemas() *def.HttpRequestDef
func GenReqDefForCreateDbUser ¶ added in v0.0.88
func GenReqDefForCreateDbUser() *def.HttpRequestDef
func GenReqDefForCreateInstance ¶
func GenReqDefForCreateInstance() *def.HttpRequestDef
func GenReqDefForCreateManualBackup ¶ added in v0.0.88
func GenReqDefForCreateManualBackup() *def.HttpRequestDef
func GenReqDefForCreateRestoreInstance ¶ added in v0.0.88
func GenReqDefForCreateRestoreInstance() *def.HttpRequestDef
func GenReqDefForDeleteInstance ¶
func GenReqDefForDeleteInstance() *def.HttpRequestDef
func GenReqDefForDeleteManualBackup ¶ added in v0.0.88
func GenReqDefForDeleteManualBackup() *def.HttpRequestDef
func GenReqDefForListBackups ¶ added in v0.0.88
func GenReqDefForListBackups() *def.HttpRequestDef
func GenReqDefForListConfigurations ¶ added in v0.0.83
func GenReqDefForListConfigurations() *def.HttpRequestDef
func GenReqDefForListDatabaseSchemas ¶ added in v0.0.88
func GenReqDefForListDatabaseSchemas() *def.HttpRequestDef
func GenReqDefForListDatabases ¶ added in v0.0.88
func GenReqDefForListDatabases() *def.HttpRequestDef
func GenReqDefForListDatastores ¶ added in v0.0.83
func GenReqDefForListDatastores() *def.HttpRequestDef
func GenReqDefForListDbUsers ¶ added in v0.0.88
func GenReqDefForListDbUsers() *def.HttpRequestDef
func GenReqDefForListFlavors ¶ added in v0.0.83
func GenReqDefForListFlavors() *def.HttpRequestDef
func GenReqDefForListInstances ¶
func GenReqDefForListInstances() *def.HttpRequestDef
func GenReqDefForListRestoreTimes ¶ added in v0.0.88
func GenReqDefForListRestoreTimes() *def.HttpRequestDef
func GenReqDefForListStorageTypes ¶ added in v0.0.83
func GenReqDefForListStorageTypes() *def.HttpRequestDef
func GenReqDefForResetPwd ¶
func GenReqDefForResetPwd() *def.HttpRequestDef
func GenReqDefForRestartInstance ¶ added in v0.0.84
func GenReqDefForRestartInstance() *def.HttpRequestDef
func GenReqDefForRunInstanceAction ¶
func GenReqDefForRunInstanceAction() *def.HttpRequestDef
func GenReqDefForSetBackupPolicy ¶
func GenReqDefForSetBackupPolicy() *def.HttpRequestDef
func GenReqDefForSetDbUserPwd ¶ added in v0.0.88
func GenReqDefForSetDbUserPwd() *def.HttpRequestDef
func GenReqDefForShowBackupPolicy ¶ added in v0.0.88
func GenReqDefForShowBackupPolicy() *def.HttpRequestDef
func GenReqDefForShowInstanceConfiguration ¶ added in v0.0.84
func GenReqDefForShowInstanceConfiguration() *def.HttpRequestDef
func GenReqDefForUpdateInstanceConfiguration ¶
func GenReqDefForUpdateInstanceConfiguration() *def.HttpRequestDef
func GenReqDefForUpdateInstanceName ¶
func GenReqDefForUpdateInstanceName() *def.HttpRequestDef
Types ¶
type GaussDBforopenGaussClient ¶
type GaussDBforopenGaussClient struct {
HcClient *http_client.HcHttpClient
}
func NewGaussDBforopenGaussClient ¶
func NewGaussDBforopenGaussClient(hcClient *http_client.HcHttpClient) *GaussDBforopenGaussClient
func (*GaussDBforopenGaussClient) AllowDbPrivileges ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) AllowDbPrivileges(request *model.AllowDbPrivilegesRequest) (*model.AllowDbPrivilegesResponse, error)
授权数据库帐号
在指定实例的数据库中, 设置帐号的权限。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) CreateDatabase ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) CreateDatabase(request *model.CreateDatabaseRequest) (*model.CreateDatabaseResponse, error)
创建数据库
在指定实例中创建数据库。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) CreateDatabaseSchemas ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) CreateDatabaseSchemas(request *model.CreateDatabaseSchemasRequest) (*model.CreateDatabaseSchemasResponse, error)
创建数据库SCHEMA
在指定实例的数据库中, 创建数据库schema。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) CreateDbUser ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) CreateDbUser(request *model.CreateDbUserRequest) (*model.CreateDbUserResponse, error)
创建数据库用户
在指定实例中创建数据库用户。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) CreateInstance ¶
func (c *GaussDBforopenGaussClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error)
创建数据库实例
创建数据库企业版和集中式实例
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) CreateManualBackup ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) CreateManualBackup(request *model.CreateManualBackupRequest) (*model.CreateManualBackupResponse, error)
创建手动备份
创建手动备份。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) CreateRestoreInstance ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) CreateRestoreInstance(request *model.CreateRestoreInstanceRequest) (*model.CreateRestoreInstanceResponse, error)
恢复到新实例
根据备份恢复新实例。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) DeleteInstance ¶
func (c *GaussDBforopenGaussClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error)
删除实例
删除数据库实例。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) DeleteManualBackup ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) DeleteManualBackup(request *model.DeleteManualBackupRequest) (*model.DeleteManualBackupResponse, error)
删除手动备份
删除手动备份。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListBackups ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error)
查询备份列表
获取备份列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListConfigurations ¶ added in v0.0.83
func (c *GaussDBforopenGaussClient) ListConfigurations(request *model.ListConfigurationsRequest) (*model.ListConfigurationsResponse, error)
获取参数模板列表
获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListDatabaseSchemas ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) ListDatabaseSchemas(request *model.ListDatabaseSchemasRequest) (*model.ListDatabaseSchemasResponse, error)
查询数据库SCHEMA列表
查询指定实例的数据库SCHEMA列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListDatabases ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) ListDatabases(request *model.ListDatabasesRequest) (*model.ListDatabasesResponse, error)
查询数据库列表
查询指定实例中的数据库列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListDatastores ¶ added in v0.0.83
func (c *GaussDBforopenGaussClient) ListDatastores(request *model.ListDatastoresRequest) (*model.ListDatastoresResponse, error)
查询数据库引擎的版本
查询指定数据库引擎对应的版本信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListDbUsers ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) ListDbUsers(request *model.ListDbUsersRequest) (*model.ListDbUsersResponse, error)
查询数据库用户列表
在指定实例中查询数据库用户列表。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListFlavors ¶ added in v0.0.83
func (c *GaussDBforopenGaussClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error)
查询数据库规格
查询数据库的规格信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListInstances ¶
func (c *GaussDBforopenGaussClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)
查询数据库实例列表/查询实例详情
查询数据库实例列表/查询实例详情
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListRestoreTimes ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) ListRestoreTimes(request *model.ListRestoreTimesRequest) (*model.ListRestoreTimesResponse, error)
查询可恢复时间段
查询可恢复时间段。 如果您备份策略中的保存天数设置较长,建议您传入查询日期“date”。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ListStorageTypes ¶ added in v0.0.83
func (c *GaussDBforopenGaussClient) ListStorageTypes(request *model.ListStorageTypesRequest) (*model.ListStorageTypesResponse, error)
查询数据库磁盘类型
查询指定数据库引擎对应的磁盘类型。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ResetPwd ¶
func (c *GaussDBforopenGaussClient) ResetPwd(request *model.ResetPwdRequest) (*model.ResetPwdResponse, error)
重置数据库密码。
重置数据库密码。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) RestartInstance ¶ added in v0.0.84
func (c *GaussDBforopenGaussClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error)
重启数据库实例
重启数据库实例。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) RunInstanceAction ¶
func (c *GaussDBforopenGaussClient) RunInstanceAction(request *model.RunInstanceActionRequest) (*model.RunInstanceActionResponse, error)
CN横向扩容/DN分片扩容/磁盘扩容
CN横向扩容/DN分片扩容/磁盘扩容
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) SetBackupPolicy ¶
func (c *GaussDBforopenGaussClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error)
设置自动备份策略。
设置自动备份策略。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) SetDbUserPwd ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) SetDbUserPwd(request *model.SetDbUserPwdRequest) (*model.SetDbUserPwdResponse, error)
重置数据库帐号密码
重置指定数据库帐号的密码。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ShowBackupPolicy ¶ added in v0.0.88
func (c *GaussDBforopenGaussClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error)
查询自动备份策略
查询自动备份策略。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) ShowInstanceConfiguration ¶ added in v0.0.84
func (c *GaussDBforopenGaussClient) ShowInstanceConfiguration(request *model.ShowInstanceConfigurationRequest) (*model.ShowInstanceConfigurationResponse, error)
获取指定实例的参数模板
获取指定实例的参数模板。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) UpdateInstanceConfiguration ¶
func (c *GaussDBforopenGaussClient) UpdateInstanceConfiguration(request *model.UpdateInstanceConfigurationRequest) (*model.UpdateInstanceConfigurationResponse, error)
修改指定实例的参数
修改指定实例的参数。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*GaussDBforopenGaussClient) UpdateInstanceName ¶
func (c *GaussDBforopenGaussClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error)
修改实例名称
修改实例名称。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.