Browse Source

DRDS SDK Auto Released By xingsui.gp,Version:1.53.10

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 years ago
parent
commit
c788daea4e

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-03-01 Version: 1.53.10
+1, This is an example of release-log.
+2, Please strictly follow this format to edit in English.
+3, Format:Number + , + Space + Description
+
 2019-03-01 Version: 1.53.9
 1, Support Build Function Compute Backend By SDK
 

+ 6 - 2
services/drds/create_drds_instance.go

@@ -76,16 +76,20 @@ func (client *Client) CreateDrdsInstanceWithCallback(request *CreateDrdsInstance
 // CreateDrdsInstanceRequest is the request struct for api CreateDrdsInstance
 type CreateDrdsInstanceRequest struct {
 	*requests.RpcRequest
+	IsAutoRenew    requests.Boolean `position:"Query" name:"IsAutoRenew"`
 	Quantity       requests.Integer `position:"Query" name:"Quantity"`
+	ClientToken    string           `position:"Query" name:"ClientToken"`
 	Description    string           `position:"Query" name:"Description"`
 	Specification  string           `position:"Query" name:"Specification"`
 	Type           string           `position:"Query" name:"Type"`
 	VswitchId      string           `position:"Query" name:"VswitchId"`
-	IsHa           requests.Boolean `position:"Query" name:"isHa"`
-	InstanceSeries string           `position:"Query" name:"instanceSeries"`
+	Duration       requests.Integer `position:"Query" name:"Duration"`
+	IsHa           requests.Boolean `position:"Query" name:"IsHa"`
+	InstanceSeries string           `position:"Query" name:"InstanceSeries"`
 	VpcId          string           `position:"Query" name:"VpcId"`
 	ZoneId         string           `position:"Query" name:"ZoneId"`
 	PayType        string           `position:"Query" name:"PayType"`
+	PricingCycle   string           `position:"Query" name:"PricingCycle"`
 }
 
 // CreateDrdsInstanceResponse is the response struct for api CreateDrdsInstance

+ 109 - 0
services/drds/describe_drds_instance_db_monitor.go

@@ -0,0 +1,109 @@
+package drds
+
+//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"
+)
+
+// DescribeDrdsInstanceDbMonitor invokes the drds.DescribeDrdsInstanceDbMonitor API synchronously
+// api document: https://help.aliyun.com/api/drds/describedrdsinstancedbmonitor.html
+func (client *Client) DescribeDrdsInstanceDbMonitor(request *DescribeDrdsInstanceDbMonitorRequest) (response *DescribeDrdsInstanceDbMonitorResponse, err error) {
+	response = CreateDescribeDrdsInstanceDbMonitorResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDrdsInstanceDbMonitorWithChan invokes the drds.DescribeDrdsInstanceDbMonitor API asynchronously
+// api document: https://help.aliyun.com/api/drds/describedrdsinstancedbmonitor.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDrdsInstanceDbMonitorWithChan(request *DescribeDrdsInstanceDbMonitorRequest) (<-chan *DescribeDrdsInstanceDbMonitorResponse, <-chan error) {
+	responseChan := make(chan *DescribeDrdsInstanceDbMonitorResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDrdsInstanceDbMonitor(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDrdsInstanceDbMonitorWithCallback invokes the drds.DescribeDrdsInstanceDbMonitor API asynchronously
+// api document: https://help.aliyun.com/api/drds/describedrdsinstancedbmonitor.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDrdsInstanceDbMonitorWithCallback(request *DescribeDrdsInstanceDbMonitorRequest, callback func(response *DescribeDrdsInstanceDbMonitorResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDrdsInstanceDbMonitorResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDrdsInstanceDbMonitor(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDrdsInstanceDbMonitorRequest is the request struct for api DescribeDrdsInstanceDbMonitor
+type DescribeDrdsInstanceDbMonitorRequest struct {
+	*requests.RpcRequest
+	DbName         string           `position:"Query" name:"DbName"`
+	EndTime        requests.Integer `position:"Query" name:"EndTime"`
+	StartTime      requests.Integer `position:"Query" name:"StartTime"`
+	DrdsInstanceId string           `position:"Query" name:"DrdsInstanceId"`
+	Key            string           `position:"Query" name:"Key"`
+}
+
+// DescribeDrdsInstanceDbMonitorResponse is the response struct for api DescribeDrdsInstanceDbMonitor
+type DescribeDrdsInstanceDbMonitorResponse struct {
+	*responses.BaseResponse
+	RequestId string                              `json:"RequestId" xml:"RequestId"`
+	Success   bool                                `json:"Success" xml:"Success"`
+	Data      DataInDescribeDrdsInstanceDbMonitor `json:"Data" xml:"Data"`
+}
+
+// CreateDescribeDrdsInstanceDbMonitorRequest creates a request to invoke DescribeDrdsInstanceDbMonitor API
+func CreateDescribeDrdsInstanceDbMonitorRequest() (request *DescribeDrdsInstanceDbMonitorRequest) {
+	request = &DescribeDrdsInstanceDbMonitorRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsInstanceDbMonitor", "", "")
+	return
+}
+
+// CreateDescribeDrdsInstanceDbMonitorResponse creates a response to parse from DescribeDrdsInstanceDbMonitor response
+func CreateDescribeDrdsInstanceDbMonitorResponse() (response *DescribeDrdsInstanceDbMonitorResponse) {
+	response = &DescribeDrdsInstanceDbMonitorResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/drds/describe_drds_instance_monitor.go

@@ -0,0 +1,109 @@
+package drds
+
+//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"
+)
+
+// DescribeDrdsInstanceMonitor invokes the drds.DescribeDrdsInstanceMonitor API synchronously
+// api document: https://help.aliyun.com/api/drds/describedrdsinstancemonitor.html
+func (client *Client) DescribeDrdsInstanceMonitor(request *DescribeDrdsInstanceMonitorRequest) (response *DescribeDrdsInstanceMonitorResponse, err error) {
+	response = CreateDescribeDrdsInstanceMonitorResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDrdsInstanceMonitorWithChan invokes the drds.DescribeDrdsInstanceMonitor API asynchronously
+// api document: https://help.aliyun.com/api/drds/describedrdsinstancemonitor.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDrdsInstanceMonitorWithChan(request *DescribeDrdsInstanceMonitorRequest) (<-chan *DescribeDrdsInstanceMonitorResponse, <-chan error) {
+	responseChan := make(chan *DescribeDrdsInstanceMonitorResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDrdsInstanceMonitor(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDrdsInstanceMonitorWithCallback invokes the drds.DescribeDrdsInstanceMonitor API asynchronously
+// api document: https://help.aliyun.com/api/drds/describedrdsinstancemonitor.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDrdsInstanceMonitorWithCallback(request *DescribeDrdsInstanceMonitorRequest, callback func(response *DescribeDrdsInstanceMonitorResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDrdsInstanceMonitorResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDrdsInstanceMonitor(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDrdsInstanceMonitorRequest is the request struct for api DescribeDrdsInstanceMonitor
+type DescribeDrdsInstanceMonitorRequest struct {
+	*requests.RpcRequest
+	EndTime        requests.Integer `position:"Query" name:"EndTime"`
+	StartTime      requests.Integer `position:"Query" name:"StartTime"`
+	DrdsInstanceId string           `position:"Query" name:"DrdsInstanceId"`
+	Key            string           `position:"Query" name:"Key"`
+	PeriodMultiple requests.Integer `position:"Query" name:"PeriodMultiple"`
+}
+
+// DescribeDrdsInstanceMonitorResponse is the response struct for api DescribeDrdsInstanceMonitor
+type DescribeDrdsInstanceMonitorResponse struct {
+	*responses.BaseResponse
+	RequestId string                            `json:"RequestId" xml:"RequestId"`
+	Success   bool                              `json:"Success" xml:"Success"`
+	Data      DataInDescribeDrdsInstanceMonitor `json:"Data" xml:"Data"`
+}
+
+// CreateDescribeDrdsInstanceMonitorRequest creates a request to invoke DescribeDrdsInstanceMonitor API
+func CreateDescribeDrdsInstanceMonitorRequest() (request *DescribeDrdsInstanceMonitorRequest) {
+	request = &DescribeDrdsInstanceMonitorRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Drds", "2017-10-16", "DescribeDrdsInstanceMonitor", "", "")
+	return
+}
+
+// CreateDescribeDrdsInstanceMonitorResponse creates a response to parse from DescribeDrdsInstanceMonitor response
+func CreateDescribeDrdsInstanceMonitorResponse() (response *DescribeDrdsInstanceMonitorResponse) {
+	response = &DescribeDrdsInstanceMonitorResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 21 - 0
services/drds/struct_data_in_describe_drds_instance_db_monitor.go

@@ -0,0 +1,21 @@
+package drds
+
+//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.
+
+// DataInDescribeDrdsInstanceDbMonitor is a nested struct in drds response
+type DataInDescribeDrdsInstanceDbMonitor struct {
+	PartialPerformanceData []PartialPerformanceData `json:"PartialPerformanceData" xml:"PartialPerformanceData"`
+}

+ 21 - 0
services/drds/struct_data_in_describe_drds_instance_monitor.go

@@ -0,0 +1,21 @@
+package drds
+
+//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.
+
+// DataInDescribeDrdsInstanceMonitor is a nested struct in drds response
+type DataInDescribeDrdsInstanceMonitor struct {
+	PartialPerformanceData []PartialPerformanceData `json:"PartialPerformanceData" xml:"PartialPerformanceData"`
+}

+ 1 - 0
services/drds/struct_db_intance_pair.go

@@ -19,4 +19,5 @@ package drds
 type DbIntancePair struct {
 	SubDbName    string `json:"SubDbName" xml:"SubDbName"`
 	InstanceName string `json:"InstanceName" xml:"InstanceName"`
+	GroupName    string `json:"GroupName" xml:"GroupName"`
 }

+ 23 - 0
services/drds/struct_partial_performance_data.go

@@ -0,0 +1,23 @@
+package drds
+
+//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.
+
+// PartialPerformanceData is a nested struct in drds response
+type PartialPerformanceData struct {
+	Key    string                              `json:"Key" xml:"Key"`
+	Unit   string                              `json:"Unit" xml:"Unit"`
+	Values ValuesInDescribeDrdsInstanceMonitor `json:"Values" xml:"Values"`
+}

+ 22 - 0
services/drds/struct_performance_value.go

@@ -0,0 +1,22 @@
+package drds
+
+//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.
+
+// PerformanceValue is a nested struct in drds response
+type PerformanceValue struct {
+	Value string `json:"Value" xml:"Value"`
+	Date  int    `json:"Date" xml:"Date"`
+}

+ 21 - 0
services/drds/struct_values_in_describe_drds_instance_db_monitor.go

@@ -0,0 +1,21 @@
+package drds
+
+//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.
+
+// ValuesInDescribeDrdsInstanceDbMonitor is a nested struct in drds response
+type ValuesInDescribeDrdsInstanceDbMonitor struct {
+	PerformanceValue []PerformanceValue `json:"PerformanceValue" xml:"PerformanceValue"`
+}

+ 21 - 0
services/drds/struct_values_in_describe_drds_instance_monitor.go

@@ -0,0 +1,21 @@
+package drds
+
+//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.
+
+// ValuesInDescribeDrdsInstanceMonitor is a nested struct in drds response
+type ValuesInDescribeDrdsInstanceMonitor struct {
+	PerformanceValue []PerformanceValue `json:"PerformanceValue" xml:"PerformanceValue"`
+}