Browse Source

Generated 2018-11-01 for dms-enterprise.

sdk-team 5 years ago
parent
commit
a132b68fef

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-02-15 Version: v1.60.381
+- Generated 2018-11-01 for `dms-enterprise`.
+- Supported ListWorkFlowTemplates, ListWorkFlowNodes API.
+
 2020-02-15 Version: v1.60.380
 2020-02-15 Version: v1.60.380
 - Generated 2017-08-01 for `polardb`.
 - Generated 2017-08-01 for `polardb`.
 - Add DescribeDBClusterSSL.
 - Add DescribeDBClusterSSL.

+ 108 - 0
services/dms_enterprise/list_work_flow_nodes.go

@@ -0,0 +1,108 @@
+package dms_enterprise
+
+//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"
+)
+
+// ListWorkFlowNodes invokes the dms_enterprise.ListWorkFlowNodes API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listworkflownodes.html
+func (client *Client) ListWorkFlowNodes(request *ListWorkFlowNodesRequest) (response *ListWorkFlowNodesResponse, err error) {
+	response = CreateListWorkFlowNodesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListWorkFlowNodesWithChan invokes the dms_enterprise.ListWorkFlowNodes API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listworkflownodes.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListWorkFlowNodesWithChan(request *ListWorkFlowNodesRequest) (<-chan *ListWorkFlowNodesResponse, <-chan error) {
+	responseChan := make(chan *ListWorkFlowNodesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListWorkFlowNodes(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListWorkFlowNodesWithCallback invokes the dms_enterprise.ListWorkFlowNodes API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listworkflownodes.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListWorkFlowNodesWithCallback(request *ListWorkFlowNodesRequest, callback func(response *ListWorkFlowNodesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListWorkFlowNodesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListWorkFlowNodes(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListWorkFlowNodesRequest is the request struct for api ListWorkFlowNodes
+type ListWorkFlowNodesRequest struct {
+	*requests.RpcRequest
+	SearchName string           `position:"Query" name:"SearchName"`
+	Tid        requests.Integer `position:"Query" name:"Tid"`
+}
+
+// ListWorkFlowNodesResponse is the response struct for api ListWorkFlowNodes
+type ListWorkFlowNodesResponse struct {
+	*responses.BaseResponse
+	RequestId     string                           `json:"RequestId" xml:"RequestId"`
+	Success       bool                             `json:"Success" xml:"Success"`
+	ErrorMessage  string                           `json:"ErrorMessage" xml:"ErrorMessage"`
+	ErrorCode     string                           `json:"ErrorCode" xml:"ErrorCode"`
+	WorkFlowNodes WorkFlowNodesInListWorkFlowNodes `json:"WorkFlowNodes" xml:"WorkFlowNodes"`
+}
+
+// CreateListWorkFlowNodesRequest creates a request to invoke ListWorkFlowNodes API
+func CreateListWorkFlowNodesRequest() (request *ListWorkFlowNodesRequest) {
+	request = &ListWorkFlowNodesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "ListWorkFlowNodes", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateListWorkFlowNodesResponse creates a response to parse from ListWorkFlowNodes response
+func CreateListWorkFlowNodesResponse() (response *ListWorkFlowNodesResponse) {
+	response = &ListWorkFlowNodesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/dms_enterprise/list_work_flow_templates.go

@@ -0,0 +1,108 @@
+package dms_enterprise
+
+//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"
+)
+
+// ListWorkFlowTemplates invokes the dms_enterprise.ListWorkFlowTemplates API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listworkflowtemplates.html
+func (client *Client) ListWorkFlowTemplates(request *ListWorkFlowTemplatesRequest) (response *ListWorkFlowTemplatesResponse, err error) {
+	response = CreateListWorkFlowTemplatesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListWorkFlowTemplatesWithChan invokes the dms_enterprise.ListWorkFlowTemplates API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listworkflowtemplates.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListWorkFlowTemplatesWithChan(request *ListWorkFlowTemplatesRequest) (<-chan *ListWorkFlowTemplatesResponse, <-chan error) {
+	responseChan := make(chan *ListWorkFlowTemplatesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListWorkFlowTemplates(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListWorkFlowTemplatesWithCallback invokes the dms_enterprise.ListWorkFlowTemplates API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listworkflowtemplates.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListWorkFlowTemplatesWithCallback(request *ListWorkFlowTemplatesRequest, callback func(response *ListWorkFlowTemplatesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListWorkFlowTemplatesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListWorkFlowTemplates(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListWorkFlowTemplatesRequest is the request struct for api ListWorkFlowTemplates
+type ListWorkFlowTemplatesRequest struct {
+	*requests.RpcRequest
+	SearchName string           `position:"Query" name:"SearchName"`
+	Tid        requests.Integer `position:"Query" name:"Tid"`
+}
+
+// ListWorkFlowTemplatesResponse is the response struct for api ListWorkFlowTemplates
+type ListWorkFlowTemplatesResponse struct {
+	*responses.BaseResponse
+	RequestId         string            `json:"RequestId" xml:"RequestId"`
+	Success           bool              `json:"Success" xml:"Success"`
+	ErrorMessage      string            `json:"ErrorMessage" xml:"ErrorMessage"`
+	ErrorCode         string            `json:"ErrorCode" xml:"ErrorCode"`
+	WorkFlowTemplates WorkFlowTemplates `json:"WorkFlowTemplates" xml:"WorkFlowTemplates"`
+}
+
+// CreateListWorkFlowTemplatesRequest creates a request to invoke ListWorkFlowTemplates API
+func CreateListWorkFlowTemplatesRequest() (request *ListWorkFlowTemplatesRequest) {
+	request = &ListWorkFlowTemplatesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "ListWorkFlowTemplates", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateListWorkFlowTemplatesResponse creates a response to parse from ListWorkFlowTemplates response
+func CreateListWorkFlowTemplatesResponse() (response *ListWorkFlowTemplatesResponse) {
+	response = &ListWorkFlowTemplatesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 9 - 9
services/dms_enterprise/struct_approval_detail.go

@@ -17,13 +17,13 @@ package dms_enterprise
 
 
 // ApprovalDetail is a nested struct in dms_enterprise response
 // ApprovalDetail is a nested struct in dms_enterprise response
 type ApprovalDetail struct {
 type ApprovalDetail struct {
-	AuditId         int64           `json:"AuditId" xml:"AuditId"`
-	OrderId         int64           `json:"OrderId" xml:"OrderId"`
-	OrderType       string          `json:"OrderType" xml:"OrderType"`
-	Title           string          `json:"Title" xml:"Title"`
-	WorkflowInsCode string          `json:"WorkflowInsCode" xml:"WorkflowInsCode"`
-	Description     string          `json:"Description" xml:"Description"`
-	ReasonList      ReasonList      `json:"ReasonList" xml:"ReasonList"`
-	WorkflowNodes   WorkflowNodes   `json:"WorkflowNodes" xml:"WorkflowNodes"`
-	CurrentHandlers CurrentHandlers `json:"CurrentHandlers" xml:"CurrentHandlers"`
+	AuditId         int64                            `json:"AuditId" xml:"AuditId"`
+	OrderId         int64                            `json:"OrderId" xml:"OrderId"`
+	OrderType       string                           `json:"OrderType" xml:"OrderType"`
+	Title           string                           `json:"Title" xml:"Title"`
+	WorkflowInsCode string                           `json:"WorkflowInsCode" xml:"WorkflowInsCode"`
+	Description     string                           `json:"Description" xml:"Description"`
+	ReasonList      ReasonList                       `json:"ReasonList" xml:"ReasonList"`
+	WorkflowNodes   WorkflowNodesInGetApprovalDetail `json:"WorkflowNodes" xml:"WorkflowNodes"`
+	CurrentHandlers CurrentHandlers                  `json:"CurrentHandlers" xml:"CurrentHandlers"`
 }
 }

+ 23 - 0
services/dms_enterprise/struct_audit_user.go

@@ -0,0 +1,23 @@
+package dms_enterprise
+
+//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.
+
+// AuditUser is a nested struct in dms_enterprise response
+type AuditUser struct {
+	UserId   int64  `json:"UserId" xml:"UserId"`
+	NickName string `json:"NickName" xml:"NickName"`
+	RealName string `json:"RealName" xml:"RealName"`
+}

+ 21 - 0
services/dms_enterprise/struct_audit_users.go

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

+ 21 - 0
services/dms_enterprise/struct_work_flow_nodes_in_list_work_flow_nodes.go

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

+ 21 - 0
services/dms_enterprise/struct_work_flow_nodes_in_list_work_flow_templates.go

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

+ 26 - 0
services/dms_enterprise/struct_work_flow_template.go

@@ -0,0 +1,26 @@
+package dms_enterprise
+
+//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.
+
+// WorkFlowTemplate is a nested struct in dms_enterprise response
+type WorkFlowTemplate struct {
+	TemplateName  string                               `json:"TemplateName" xml:"TemplateName"`
+	Comment       string                               `json:"Comment" xml:"Comment"`
+	TemplateId    int64                                `json:"TemplateId" xml:"TemplateId"`
+	IsSystem      int                                  `json:"IsSystem" xml:"IsSystem"`
+	Enabled       string                               `json:"Enabled" xml:"Enabled"`
+	WorkFlowNodes WorkFlowNodesInListWorkFlowTemplates `json:"WorkFlowNodes" xml:"WorkFlowNodes"`
+}

+ 21 - 0
services/dms_enterprise/struct_work_flow_templates.go

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

+ 14 - 6
services/dms_enterprise/struct_workflow_node.go

@@ -17,10 +17,18 @@ package dms_enterprise
 
 
 // WorkflowNode is a nested struct in dms_enterprise response
 // WorkflowNode is a nested struct in dms_enterprise response
 type WorkflowNode struct {
 type WorkflowNode struct {
-	NodeName        string          `json:"NodeName" xml:"NodeName"`
-	OperateComment  string          `json:"OperateComment" xml:"OperateComment"`
-	OperateTime     string          `json:"OperateTime" xml:"OperateTime"`
-	OperatorId      int64           `json:"OperatorId" xml:"OperatorId"`
-	WorkflowInsCode string          `json:"WorkflowInsCode" xml:"WorkflowInsCode"`
-	AuditUserIdList AuditUserIdList `json:"AuditUserIdList" xml:"AuditUserIdList"`
+	TemplateId         int64           `json:"TemplateId" xml:"TemplateId"`
+	CreateUserId       int64           `json:"CreateUserId" xml:"CreateUserId"`
+	CreateUserNickName string          `json:"CreateUserNickName" xml:"CreateUserNickName"`
+	Comment            string          `json:"Comment" xml:"Comment"`
+	NodeName           string          `json:"NodeName" xml:"NodeName"`
+	OperateTime        string          `json:"OperateTime" xml:"OperateTime"`
+	NodeId             int64           `json:"NodeId" xml:"NodeId"`
+	OperateComment     string          `json:"OperateComment" xml:"OperateComment"`
+	OperatorId         int64           `json:"OperatorId" xml:"OperatorId"`
+	Position           int             `json:"Position" xml:"Position"`
+	NodeType           string          `json:"NodeType" xml:"NodeType"`
+	WorkflowInsCode    string          `json:"WorkflowInsCode" xml:"WorkflowInsCode"`
+	AuditUserIdList    AuditUserIdList `json:"AuditUserIdList" xml:"AuditUserIdList"`
+	AuditUsers         AuditUsers      `json:"AuditUsers" xml:"AuditUsers"`
 }
 }

+ 2 - 2
services/dms_enterprise/struct_workflow_nodes.go → services/dms_enterprise/struct_workflow_nodes_in_get_approval_detail.go

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