|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | +using System.Collections.Generic; |
| 20 | + |
| 21 | +using Aliyun.Acs.Core; |
| 22 | +using Aliyun.Acs.Core.Http; |
| 23 | +using Aliyun.Acs.Core.Transform; |
| 24 | +using Aliyun.Acs.Core.Utils; |
| 25 | +using Aliyun.Acs.NAS.Transform; |
| 26 | +using Aliyun.Acs.NAS.Transform.V20170626; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.NAS.Model.V20170626 |
| 29 | +{ |
| 30 | + public class CancelDataFlowSubTaskRequest : RpcAcsRequest<CancelDataFlowSubTaskResponse> |
| 31 | + { |
| 32 | + public CancelDataFlowSubTaskRequest() |
| 33 | + : base("NAS", "2017-06-26", "CancelDataFlowSubTask", "nas", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.NAS.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.NAS.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private string clientToken; |
| 44 | + |
| 45 | + private string dataFlowTaskId; |
| 46 | + |
| 47 | + private string dataFlowSubTaskId; |
| 48 | + |
| 49 | + private string fileSystemId; |
| 50 | + |
| 51 | + private bool? dryRun; |
| 52 | + |
| 53 | + private string dataFlowId; |
| 54 | + |
| 55 | + public string ClientToken |
| 56 | + { |
| 57 | + get |
| 58 | + { |
| 59 | + return clientToken; |
| 60 | + } |
| 61 | + set |
| 62 | + { |
| 63 | + clientToken = value; |
| 64 | + DictionaryUtil.Add(QueryParameters, "ClientToken", value); |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + public string DataFlowTaskId |
| 69 | + { |
| 70 | + get |
| 71 | + { |
| 72 | + return dataFlowTaskId; |
| 73 | + } |
| 74 | + set |
| 75 | + { |
| 76 | + dataFlowTaskId = value; |
| 77 | + DictionaryUtil.Add(QueryParameters, "DataFlowTaskId", value); |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + public string DataFlowSubTaskId |
| 82 | + { |
| 83 | + get |
| 84 | + { |
| 85 | + return dataFlowSubTaskId; |
| 86 | + } |
| 87 | + set |
| 88 | + { |
| 89 | + dataFlowSubTaskId = value; |
| 90 | + DictionaryUtil.Add(QueryParameters, "DataFlowSubTaskId", value); |
| 91 | + } |
| 92 | + } |
| 93 | + |
| 94 | + public string FileSystemId |
| 95 | + { |
| 96 | + get |
| 97 | + { |
| 98 | + return fileSystemId; |
| 99 | + } |
| 100 | + set |
| 101 | + { |
| 102 | + fileSystemId = value; |
| 103 | + DictionaryUtil.Add(QueryParameters, "FileSystemId", value); |
| 104 | + } |
| 105 | + } |
| 106 | + |
| 107 | + public bool? DryRun |
| 108 | + { |
| 109 | + get |
| 110 | + { |
| 111 | + return dryRun; |
| 112 | + } |
| 113 | + set |
| 114 | + { |
| 115 | + dryRun = value; |
| 116 | + DictionaryUtil.Add(QueryParameters, "DryRun", value.ToString()); |
| 117 | + } |
| 118 | + } |
| 119 | + |
| 120 | + public string DataFlowId |
| 121 | + { |
| 122 | + get |
| 123 | + { |
| 124 | + return dataFlowId; |
| 125 | + } |
| 126 | + set |
| 127 | + { |
| 128 | + dataFlowId = value; |
| 129 | + DictionaryUtil.Add(QueryParameters, "DataFlowId", value); |
| 130 | + } |
| 131 | + } |
| 132 | + |
| 133 | + public override CancelDataFlowSubTaskResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 134 | + { |
| 135 | + return CancelDataFlowSubTaskResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 136 | + } |
| 137 | + } |
| 138 | +} |
0 commit comments