Browse Source

Generated 2019-01-01 for HBase.

sdk-team 6 years ago
parent
commit
b148508b46

+ 7 - 0
ChangeLog.txt

@@ -1,3 +1,10 @@
+2020-01-03 Version: v1.60.315
+- Generated 2019-01-01 for `HBase`.
+- ImmediateDelete.
+- DescribeInstance CreateTimeUTC ExpireTimeUTC.
+- DescribeInstances CreateTimeUTC ExpireTimeUTC.
+- DescribeIpWhitelist Groups GroupName.
+
 2019-01-02 Version: v1.60.314
 - Remove r-kvstore.
 

+ 2 - 1
services/hbase/delete_instance.go

@@ -76,7 +76,8 @@ func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest,
 // DeleteInstanceRequest is the request struct for api DeleteInstance
 type DeleteInstanceRequest struct {
 	*requests.RpcRequest
-	ClusterId string `position:"Query" name:"ClusterId"`
+	ImmediateDeleteFlag requests.Boolean `position:"Query" name:"ImmediateDeleteFlag"`
+	ClusterId           string           `position:"Query" name:"ClusterId"`
 }
 
 // DeleteInstanceResponse is the response struct for api DeleteInstance

+ 32 - 30
services/hbase/describe_instance.go

@@ -82,36 +82,38 @@ type DescribeInstanceRequest struct {
 // DescribeInstanceResponse is the response struct for api DescribeInstance
 type DescribeInstanceResponse struct {
 	*responses.BaseResponse
-	RequestId          string `json:"RequestId" xml:"RequestId"`
-	InstanceId         string `json:"InstanceId" xml:"InstanceId"`
-	InstanceName       string `json:"InstanceName" xml:"InstanceName"`
-	Status             string `json:"Status" xml:"Status"`
-	PayType            string `json:"PayType" xml:"PayType"`
-	CreatedTime        string `json:"CreatedTime" xml:"CreatedTime"`
-	ExpireTime         string `json:"ExpireTime" xml:"ExpireTime"`
-	MajorVersion       string `json:"MajorVersion" xml:"MajorVersion"`
-	MinorVersion       string `json:"MinorVersion" xml:"MinorVersion"`
-	Engine             string `json:"Engine" xml:"Engine"`
-	IsHa               bool   `json:"IsHa" xml:"IsHa"`
-	NetworkType        string `json:"NetworkType" xml:"NetworkType"`
-	VpcId              string `json:"VpcId" xml:"VpcId"`
-	VswitchId          string `json:"VswitchId" xml:"VswitchId"`
-	MasterInstanceType string `json:"MasterInstanceType" xml:"MasterInstanceType"`
-	MasterNodeCount    int    `json:"MasterNodeCount" xml:"MasterNodeCount"`
-	MasterDiskType     string `json:"MasterDiskType" xml:"MasterDiskType"`
-	MasterDiskSize     int    `json:"MasterDiskSize" xml:"MasterDiskSize"`
-	CoreInstanceType   string `json:"CoreInstanceType" xml:"CoreInstanceType"`
-	CoreNodeCount      int    `json:"CoreNodeCount" xml:"CoreNodeCount"`
-	CoreDiskType       string `json:"CoreDiskType" xml:"CoreDiskType"`
-	CoreDiskSize       int    `json:"CoreDiskSize" xml:"CoreDiskSize"`
-	RegionId           string `json:"RegionId" xml:"RegionId"`
-	ZoneId             string `json:"ZoneId" xml:"ZoneId"`
-	ColdStorageStatus  string `json:"ColdStorageStatus" xml:"ColdStorageStatus"`
-	BackupStatus       string `json:"BackupStatus" xml:"BackupStatus"`
-	CoreDiskCount      string `json:"CoreDiskCount" xml:"CoreDiskCount"`
-	MaintainStartTime  string `json:"MaintainStartTime" xml:"MaintainStartTime"`
-	MaintainEndTime    string `json:"MaintainEndTime" xml:"MaintainEndTime"`
-	Tags               Tags   `json:"Tags" xml:"Tags"`
+	RequestId          string                 `json:"RequestId" xml:"RequestId"`
+	InstanceId         string                 `json:"InstanceId" xml:"InstanceId"`
+	InstanceName       string                 `json:"InstanceName" xml:"InstanceName"`
+	Status             string                 `json:"Status" xml:"Status"`
+	PayType            string                 `json:"PayType" xml:"PayType"`
+	CreatedTime        string                 `json:"CreatedTime" xml:"CreatedTime"`
+	ExpireTime         string                 `json:"ExpireTime" xml:"ExpireTime"`
+	MajorVersion       string                 `json:"MajorVersion" xml:"MajorVersion"`
+	MinorVersion       string                 `json:"MinorVersion" xml:"MinorVersion"`
+	Engine             string                 `json:"Engine" xml:"Engine"`
+	IsHa               bool                   `json:"IsHa" xml:"IsHa"`
+	NetworkType        string                 `json:"NetworkType" xml:"NetworkType"`
+	VpcId              string                 `json:"VpcId" xml:"VpcId"`
+	VswitchId          string                 `json:"VswitchId" xml:"VswitchId"`
+	MasterInstanceType string                 `json:"MasterInstanceType" xml:"MasterInstanceType"`
+	MasterNodeCount    int                    `json:"MasterNodeCount" xml:"MasterNodeCount"`
+	MasterDiskType     string                 `json:"MasterDiskType" xml:"MasterDiskType"`
+	MasterDiskSize     int                    `json:"MasterDiskSize" xml:"MasterDiskSize"`
+	CoreInstanceType   string                 `json:"CoreInstanceType" xml:"CoreInstanceType"`
+	CoreNodeCount      int                    `json:"CoreNodeCount" xml:"CoreNodeCount"`
+	CoreDiskType       string                 `json:"CoreDiskType" xml:"CoreDiskType"`
+	CoreDiskSize       int                    `json:"CoreDiskSize" xml:"CoreDiskSize"`
+	RegionId           string                 `json:"RegionId" xml:"RegionId"`
+	ZoneId             string                 `json:"ZoneId" xml:"ZoneId"`
+	ColdStorageStatus  string                 `json:"ColdStorageStatus" xml:"ColdStorageStatus"`
+	BackupStatus       string                 `json:"BackupStatus" xml:"BackupStatus"`
+	CoreDiskCount      string                 `json:"CoreDiskCount" xml:"CoreDiskCount"`
+	MaintainStartTime  string                 `json:"MaintainStartTime" xml:"MaintainStartTime"`
+	MaintainEndTime    string                 `json:"MaintainEndTime" xml:"MaintainEndTime"`
+	CreatedTimeUTC     string                 `json:"CreatedTimeUTC" xml:"CreatedTimeUTC"`
+	ExpireTimeUTC      string                 `json:"ExpireTimeUTC" xml:"ExpireTimeUTC"`
+	Tags               TagsInDescribeInstance `json:"Tags" xml:"Tags"`
 }
 
 // CreateDescribeInstanceRequest creates a request to invoke DescribeInstance API

+ 11 - 2
services/hbase/describe_instances.go

@@ -76,8 +76,17 @@ func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRe
 // DescribeInstancesRequest is the request struct for api DescribeInstances
 type DescribeInstancesRequest struct {
 	*requests.RpcRequest
-	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
-	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	ClusterName string                  `position:"Query" name:"ClusterName"`
+	PageNumber  requests.Integer        `position:"Query" name:"PageNumber"`
+	PageSize    requests.Integer        `position:"Query" name:"PageSize"`
+	Tag         *[]DescribeInstancesTag `position:"Query" name:"Tag"  type:"Repeated"`
+	DbType      string                  `position:"Query" name:"DbType"`
+}
+
+// DescribeInstancesTag is a repeated param struct in DescribeInstancesRequest
+type DescribeInstancesTag struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
 }
 
 // DescribeInstancesResponse is the response struct for api DescribeInstances

+ 1 - 1
services/hbase/describe_ip_whitelist.go

@@ -83,7 +83,7 @@ type DescribeIpWhitelistRequest struct {
 type DescribeIpWhitelistResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	IpList    IpList `json:"IpList" xml:"IpList"`
+	Groups    Groups `json:"Groups" xml:"Groups"`
 }
 
 // CreateDescribeIpWhitelistRequest creates a request to invoke DescribeIpWhitelist API

+ 103 - 0
services/hbase/list_tags.go

@@ -0,0 +1,103 @@
+package hbase
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListTags invokes the hbase.ListTags API synchronously
+// api document: https://help.aliyun.com/api/hbase/listtags.html
+func (client *Client) ListTags(request *ListTagsRequest) (response *ListTagsResponse, err error) {
+	response = CreateListTagsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListTagsWithChan invokes the hbase.ListTags API asynchronously
+// api document: https://help.aliyun.com/api/hbase/listtags.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagsWithChan(request *ListTagsRequest) (<-chan *ListTagsResponse, <-chan error) {
+	responseChan := make(chan *ListTagsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListTags(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListTagsWithCallback invokes the hbase.ListTags API asynchronously
+// api document: https://help.aliyun.com/api/hbase/listtags.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagsWithCallback(request *ListTagsRequest, callback func(response *ListTagsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListTagsResponse
+		var err error
+		defer close(result)
+		response, err = client.ListTags(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListTagsRequest is the request struct for api ListTags
+type ListTagsRequest struct {
+	*requests.RpcRequest
+}
+
+// ListTagsResponse is the response struct for api ListTags
+type ListTagsResponse struct {
+	*responses.BaseResponse
+	RequestId string         `json:"RequestId" xml:"RequestId"`
+	Tags      TagsInListTags `json:"Tags" xml:"Tags"`
+}
+
+// CreateListTagsRequest creates a request to invoke ListTags API
+func CreateListTagsRequest() (request *ListTagsRequest) {
+	request = &ListTagsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("HBase", "2019-01-01", "ListTags", "hbase", "openAPI")
+	return
+}
+
+// CreateListTagsResponse creates a response to parse from ListTags response
+func CreateListTagsResponse() (response *ListTagsResponse) {
+	response = &ListTagsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 23 - 0
services/hbase/struct_group.go

@@ -0,0 +1,23 @@
+package hbase
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Group is a nested struct in hbase response
+type Group struct {
+	GroupName string `json:"GroupName" xml:"GroupName"`
+	IpVersion int    `json:"IpVersion" xml:"IpVersion"`
+	IpList    IpList `json:"IpList" xml:"IpList"`
+}

+ 21 - 0
services/hbase/struct_groups.go

@@ -0,0 +1,21 @@
+package hbase
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Groups is a nested struct in hbase response
+type Groups struct {
+	Group []Group `json:"Group" xml:"Group"`
+}

+ 28 - 24
services/hbase/struct_instance.go

@@ -17,28 +17,32 @@ package hbase
 
 // Instance is a nested struct in hbase response
 type Instance struct {
-	InstanceId         string `json:"InstanceId" xml:"InstanceId"`
-	InstanceName       string `json:"InstanceName" xml:"InstanceName"`
-	Status             string `json:"Status" xml:"Status"`
-	PayType            string `json:"PayType" xml:"PayType"`
-	CreatedTime        string `json:"CreatedTime" xml:"CreatedTime"`
-	ExpireTime         string `json:"ExpireTime" xml:"ExpireTime"`
-	MajorVersion       string `json:"MajorVersion" xml:"MajorVersion"`
-	Engine             string `json:"Engine" xml:"Engine"`
-	IsHa               bool   `json:"IsHa" xml:"IsHa"`
-	NetworkType        string `json:"NetworkType" xml:"NetworkType"`
-	VpcId              string `json:"VpcId" xml:"VpcId"`
-	VswitchId          string `json:"VswitchId" xml:"VswitchId"`
-	MasterInstanceType string `json:"MasterInstanceType" xml:"MasterInstanceType"`
-	MasterNodeCount    int    `json:"MasterNodeCount" xml:"MasterNodeCount"`
-	MasterDiskType     string `json:"MasterDiskType" xml:"MasterDiskType"`
-	MasterDiskSize     int    `json:"MasterDiskSize" xml:"MasterDiskSize"`
-	CoreInstanceType   string `json:"CoreInstanceType" xml:"CoreInstanceType"`
-	CoreNodeCount      int    `json:"CoreNodeCount" xml:"CoreNodeCount"`
-	CoreDiskType       string `json:"CoreDiskType" xml:"CoreDiskType"`
-	CoreDiskSize       int    `json:"CoreDiskSize" xml:"CoreDiskSize"`
-	RegionId           string `json:"RegionId" xml:"RegionId"`
-	ZoneId             string `json:"ZoneId" xml:"ZoneId"`
-	ColdStorageStatus  string `json:"ColdStorageStatus" xml:"ColdStorageStatus"`
-	BackupStatus       string `json:"BackupStatus" xml:"BackupStatus"`
+	InstanceId         string                  `json:"InstanceId" xml:"InstanceId"`
+	InstanceName       string                  `json:"InstanceName" xml:"InstanceName"`
+	Status             string                  `json:"Status" xml:"Status"`
+	PayType            string                  `json:"PayType" xml:"PayType"`
+	CreatedTime        string                  `json:"CreatedTime" xml:"CreatedTime"`
+	ExpireTime         string                  `json:"ExpireTime" xml:"ExpireTime"`
+	MajorVersion       string                  `json:"MajorVersion" xml:"MajorVersion"`
+	Engine             string                  `json:"Engine" xml:"Engine"`
+	IsHa               bool                    `json:"IsHa" xml:"IsHa"`
+	NetworkType        string                  `json:"NetworkType" xml:"NetworkType"`
+	VpcId              string                  `json:"VpcId" xml:"VpcId"`
+	VswitchId          string                  `json:"VswitchId" xml:"VswitchId"`
+	MasterInstanceType string                  `json:"MasterInstanceType" xml:"MasterInstanceType"`
+	MasterNodeCount    int                     `json:"MasterNodeCount" xml:"MasterNodeCount"`
+	MasterDiskType     string                  `json:"MasterDiskType" xml:"MasterDiskType"`
+	MasterDiskSize     int                     `json:"MasterDiskSize" xml:"MasterDiskSize"`
+	CoreInstanceType   string                  `json:"CoreInstanceType" xml:"CoreInstanceType"`
+	CoreNodeCount      int                     `json:"CoreNodeCount" xml:"CoreNodeCount"`
+	CoreDiskType       string                  `json:"CoreDiskType" xml:"CoreDiskType"`
+	CoreDiskSize       int                     `json:"CoreDiskSize" xml:"CoreDiskSize"`
+	RegionId           string                  `json:"RegionId" xml:"RegionId"`
+	ZoneId             string                  `json:"ZoneId" xml:"ZoneId"`
+	ColdStorageStatus  string                  `json:"ColdStorageStatus" xml:"ColdStorageStatus"`
+	BackupStatus       string                  `json:"BackupStatus" xml:"BackupStatus"`
+	ClusterType        string                  `json:"ClusterType" xml:"ClusterType"`
+	CreatedTimeUTC     string                  `json:"CreatedTimeUTC" xml:"CreatedTimeUTC"`
+	ExpireTimeUTC      string                  `json:"ExpireTimeUTC" xml:"ExpireTimeUTC"`
+	Tags               TagsInDescribeInstances `json:"Tags" xml:"Tags"`
 }

+ 1 - 1
services/hbase/struct_ip_list.go

@@ -17,5 +17,5 @@ package hbase
 
 // IpList is a nested struct in hbase response
 type IpList struct {
-	IP []string `json:"IP" xml:"IP"`
+	Ip []string `json:"Ip" xml:"Ip"`
 }

+ 4 - 2
services/hbase/struct_tag.go

@@ -17,6 +17,8 @@ package hbase
 
 // Tag is a nested struct in hbase response
 type Tag struct {
-	Key   string `json:"Key" xml:"Key"`
-	Value string `json:"Value" xml:"Value"`
+	Key      string `json:"Key" xml:"Key"`
+	Value    string `json:"Value" xml:"Value"`
+	TagValue string `json:"TagValue" xml:"TagValue"`
+	TagKey   string `json:"TagKey" xml:"TagKey"`
 }

+ 21 - 0
services/hbase/struct_tags_in_describe_instance.go

@@ -0,0 +1,21 @@
+package hbase
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TagsInDescribeInstance is a nested struct in hbase response
+type TagsInDescribeInstance struct {
+	Tag []Tag `json:"Tag" xml:"Tag"`
+}

+ 21 - 0
services/hbase/struct_tags_in_describe_instances.go

@@ -0,0 +1,21 @@
+package hbase
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TagsInDescribeInstances is a nested struct in hbase response
+type TagsInDescribeInstances struct {
+	Tag []Tag `json:"Tag" xml:"Tag"`
+}

+ 2 - 2
services/hbase/struct_tags.go → services/hbase/struct_tags_in_list_tags.go

@@ -15,7 +15,7 @@ package hbase
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// Tags is a nested struct in hbase response
-type Tags struct {
+// TagsInListTags is a nested struct in hbase response
+type TagsInListTags struct {
 	Tag []Tag `json:"Tag" xml:"Tag"`
 }