v2

package
v0.0.87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DwsClientBuilder

func DwsClientBuilder() *http_client.HcHttpClientBuilder

func GenReqDefForCreateCluster

func GenReqDefForCreateCluster() *def.HttpRequestDef

func GenReqDefForCreateSnapshot

func GenReqDefForCreateSnapshot() *def.HttpRequestDef

func GenReqDefForDeleteCluster

func GenReqDefForDeleteCluster() *def.HttpRequestDef

func GenReqDefForDeleteSnapshot

func GenReqDefForDeleteSnapshot() *def.HttpRequestDef

func GenReqDefForListClusterDetails

func GenReqDefForListClusterDetails() *def.HttpRequestDef

func GenReqDefForListClusters

func GenReqDefForListClusters() *def.HttpRequestDef

func GenReqDefForListNodeTypes

func GenReqDefForListNodeTypes() *def.HttpRequestDef

func GenReqDefForListSnapshotDetails

func GenReqDefForListSnapshotDetails() *def.HttpRequestDef

func GenReqDefForListSnapshots

func GenReqDefForListSnapshots() *def.HttpRequestDef

func GenReqDefForResetPassword

func GenReqDefForResetPassword() *def.HttpRequestDef

func GenReqDefForResizeCluster

func GenReqDefForResizeCluster() *def.HttpRequestDef

func GenReqDefForRestartCluster

func GenReqDefForRestartCluster() *def.HttpRequestDef

func GenReqDefForRestoreCluster

func GenReqDefForRestoreCluster() *def.HttpRequestDef

Types

type DwsClient

type DwsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewDwsClient

func NewDwsClient(hcClient *http_client.HcHttpClient) *DwsClient

func (*DwsClient) CreateCluster

func (c *DwsClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error)

创建集群

该接口用于创建集群。 集群必须要运行在VPC之内,创建集群前,您需要先创建VPC,并获取VPC和子网的id。 该接口为异步接口,创建集群需要10~15分钟。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) CreateSnapshot

func (c *DwsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error)

创建快照

该接口用于为指定集群创建快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) DeleteCluster

func (c *DwsClient) DeleteCluster(request *model.DeleteClusterRequest) (*model.DeleteClusterResponse, error)

删除集群

此接口用于删除集群。集群删除后将释放此集群的所有资源,包括客户数据。为了安全起见,请在删除集群前为这个集群创建快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) DeleteSnapshot

func (c *DwsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error)

删除快照

该接口用于删除一个指定手动快照。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListClusterDetails

func (c *DwsClient) ListClusterDetails(request *model.ListClusterDetailsRequest) (*model.ListClusterDetailsResponse, error)

查询集群详情

该接口用于查询集群详情。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListClusters

func (c *DwsClient) ListClusters(request *model.ListClustersRequest) (*model.ListClustersResponse, error)

查询集群列表

该接口用于查询并显示集群列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListNodeTypes

func (c *DwsClient) ListNodeTypes(request *model.ListNodeTypesRequest) (*model.ListNodeTypesResponse, error)

查询节点类型

该接口用于查询所有GaussDB(DWS)服务支持的节点类型。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListSnapshotDetails

查询快照详情

该接口用于使用快照ID查询快照详情。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ListSnapshots

func (c *DwsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error)

查询快照列表

该接口用于查询快照列表。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ResetPassword

func (c *DwsClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error)

重置密码

此接口用于重置集群管理员密码。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) ResizeCluster

func (c *DwsClient) ResizeCluster(request *model.ResizeClusterRequest) (*model.ResizeClusterResponse, error)

扩容集群调整集群大小

此接口用于扩容集群。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) RestartCluster

func (c *DwsClient) RestartCluster(request *model.RestartClusterRequest) (*model.RestartClusterResponse, error)

重启集群

此接口用于重启集群。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*DwsClient) RestoreCluster

func (c *DwsClient) RestoreCluster(request *model.RestoreClusterRequest) (*model.RestoreClusterResponse, error)

恢复集群

该接口用于使用快照恢复集群。

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL