Browse Source

EDAS SDK Auto Released By owen.zw,Version:1.53.25

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

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-03-12 Version: 1.53.25
+1, Add application name support for config center APIs.
+2, Add GetCluster API.
+3, Support debug switch in user region APIs.
+
 2019-03-12 Version: 1.53.24
 1, Add Vpc openapi interface,Support for new fields.
 2, Support for ipv6 gateway openapi.

+ 2 - 1
services/edas/delete_user_define_region.go

@@ -76,7 +76,8 @@ func (client *Client) DeleteUserDefineRegionWithCallback(request *DeleteUserDefi
 // DeleteUserDefineRegionRequest is the request struct for api DeleteUserDefineRegion
 type DeleteUserDefineRegionRequest struct {
 	*requests.RoaRequest
-	Id requests.Integer `position:"Query" name:"Id"`
+	RegionTag string           `position:"Query" name:"RegionTag"`
+	Id        requests.Integer `position:"Query" name:"Id"`
 }
 
 // DeleteUserDefineRegionResponse is the response struct for api DeleteUserDefineRegion

+ 107 - 0
services/edas/get_cluster.go

@@ -0,0 +1,107 @@
+package edas
+
+//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"
+)
+
+// GetCluster invokes the edas.GetCluster API synchronously
+// api document: https://help.aliyun.com/api/edas/getcluster.html
+func (client *Client) GetCluster(request *GetClusterRequest) (response *GetClusterResponse, err error) {
+	response = CreateGetClusterResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetClusterWithChan invokes the edas.GetCluster API asynchronously
+// api document: https://help.aliyun.com/api/edas/getcluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetClusterWithChan(request *GetClusterRequest) (<-chan *GetClusterResponse, <-chan error) {
+	responseChan := make(chan *GetClusterResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetCluster(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetClusterWithCallback invokes the edas.GetCluster API asynchronously
+// api document: https://help.aliyun.com/api/edas/getcluster.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetClusterWithCallback(request *GetClusterRequest, callback func(response *GetClusterResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetClusterResponse
+		var err error
+		defer close(result)
+		response, err = client.GetCluster(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetClusterRequest is the request struct for api GetCluster
+type GetClusterRequest struct {
+	*requests.RoaRequest
+	ClusterId string `position:"Query" name:"ClusterId"`
+}
+
+// GetClusterResponse is the response struct for api GetCluster
+type GetClusterResponse struct {
+	*responses.BaseResponse
+	RequestId string  `json:"RequestId" xml:"RequestId"`
+	Code      int     `json:"Code" xml:"Code"`
+	Message   string  `json:"Message" xml:"Message"`
+	Cluster   Cluster `json:"Cluster" xml:"Cluster"`
+}
+
+// CreateGetClusterRequest creates a request to invoke GetCluster API
+func CreateGetClusterRequest() (request *GetClusterRequest) {
+	request = &GetClusterRequest{
+		RoaRequest: &requests.RoaRequest{},
+	}
+	request.InitWithApiInfo("Edas", "2017-08-01", "GetCluster", "/pop/v5/resource/cluster", "edas", "openAPI")
+	request.Method = requests.GET
+	return
+}
+
+// CreateGetClusterResponse creates a response to parse from GetCluster response
+func CreateGetClusterResponse() (response *GetClusterResponse) {
+	response = &GetClusterResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/edas/insert_config_center.go

@@ -78,6 +78,7 @@ type InsertConfigCenterRequest struct {
 	*requests.RoaRequest
 	DataId          string `position:"Query" name:"DataId"`
 	Data            string `position:"Query" name:"Data"`
+	AppName         string `position:"Query" name:"AppName"`
 	LogicalRegionId string `position:"Query" name:"LogicalRegionId"`
 	Group           string `position:"Query" name:"Group"`
 }

+ 5 - 6
services/edas/insert_or_update_region.go

@@ -76,12 +76,11 @@ func (client *Client) InsertOrUpdateRegionWithCallback(request *InsertOrUpdateRe
 // InsertOrUpdateRegionRequest is the request struct for api InsertOrUpdateRegion
 type InsertOrUpdateRegionRequest struct {
 	*requests.RoaRequest
-	HybridCloudEnable requests.Boolean `position:"Query" name:"HybridCloudEnable"`
-	VpcId             string           `position:"Query" name:"VpcId"`
-	RegionTag         string           `position:"Query" name:"RegionTag"`
-	RegionName        string           `position:"Query" name:"RegionName"`
-	Description       string           `position:"Query" name:"Description"`
-	Id                requests.Integer `position:"Query" name:"Id"`
+	DebugEnable requests.Boolean `position:"Query" name:"DebugEnable"`
+	RegionTag   string           `position:"Query" name:"RegionTag"`
+	RegionName  string           `position:"Query" name:"RegionName"`
+	Description string           `position:"Query" name:"Description"`
+	Id          requests.Integer `position:"Query" name:"Id"`
 }
 
 // InsertOrUpdateRegionResponse is the response struct for api InsertOrUpdateRegion

+ 1 - 0
services/edas/list_config_centers.go

@@ -76,6 +76,7 @@ func (client *Client) ListConfigCentersWithCallback(request *ListConfigCentersRe
 // ListConfigCentersRequest is the request struct for api ListConfigCenters
 type ListConfigCentersRequest struct {
 	*requests.RoaRequest
+	AppName         string `position:"Query" name:"AppName"`
 	LogicalRegionId string `position:"Query" name:"LogicalRegionId"`
 	DataIdPattern   string `position:"Query" name:"DataIdPattern"`
 	Group           string `position:"Query" name:"Group"`

+ 1 - 1
services/edas/struct_cluster.go

@@ -27,8 +27,8 @@ type Cluster struct {
 	NetworkMode    int    `json:"NetworkMode" xml:"NetworkMode"`
 	RegionId       string `json:"RegionId" xml:"RegionId"`
 	ClusterName    string `json:"ClusterName" xml:"ClusterName"`
-	IaasProvider   string `json:"IaasProvider" xml:"IaasProvider"`
 	CpuUsed        int    `json:"CpuUsed" xml:"CpuUsed"`
+	IaasProvider   string `json:"IaasProvider" xml:"IaasProvider"`
 	ClusterType    int    `json:"ClusterType" xml:"ClusterType"`
 	VpcId          string `json:"VpcId" xml:"VpcId"`
 	Cpu            int    `json:"Cpu" xml:"Cpu"`

+ 1 - 0
services/edas/struct_config_center_info.go

@@ -21,4 +21,5 @@ type ConfigCenterInfo struct {
 	DataId  string `json:"DataId" xml:"DataId"`
 	Group   string `json:"Group" xml:"Group"`
 	Id      string `json:"Id" xml:"Id"`
+	AppName string `json:"AppName" xml:"AppName"`
 }

+ 4 - 3
services/edas/struct_list_config_centers.go

@@ -17,7 +17,8 @@ package edas
 
 // ListConfigCenters is a nested struct in edas response
 type ListConfigCenters struct {
-	DataId string `json:"DataId" xml:"DataId"`
-	Group  string `json:"Group" xml:"Group"`
-	Id     string `json:"Id" xml:"Id"`
+	DataId  string `json:"DataId" xml:"DataId"`
+	Group   string `json:"Group" xml:"Group"`
+	Id      string `json:"Id" xml:"Id"`
+	AppName string `json:"AppName" xml:"AppName"`
 }

+ 7 - 8
services/edas/struct_user_define_region_entity.go

@@ -17,12 +17,11 @@ package edas
 
 // UserDefineRegionEntity is a nested struct in edas response
 type UserDefineRegionEntity struct {
-	HybridCloudEnable bool   `json:"HybridCloudEnable" xml:"HybridCloudEnable"`
-	RegionId          string `json:"RegionId" xml:"RegionId"`
-	BelongRegion      string `json:"BelongRegion" xml:"BelongRegion"`
-	UserId            string `json:"UserId" xml:"UserId"`
-	Id                int    `json:"Id" xml:"Id"`
-	VpcId             string `json:"VpcId" xml:"VpcId"`
-	RegionName        string `json:"RegionName" xml:"RegionName"`
-	Description       string `json:"Description" xml:"Description"`
+	RegionId     string `json:"RegionId" xml:"RegionId"`
+	BelongRegion string `json:"BelongRegion" xml:"BelongRegion"`
+	DebugEnable  bool   `json:"DebugEnable" xml:"DebugEnable"`
+	UserId       string `json:"UserId" xml:"UserId"`
+	Id           int    `json:"Id" xml:"Id"`
+	RegionName   string `json:"RegionName" xml:"RegionName"`
+	Description  string `json:"Description" xml:"Description"`
 }