|
| 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.amqp_open.Transform; |
| 26 | +using Aliyun.Acs.amqp_open.Transform.V20191212; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.amqp_open.Model.V20191212 |
| 29 | +{ |
| 30 | + public class UpdateInstanceRequest : RpcAcsRequest<UpdateInstanceResponse> |
| 31 | + { |
| 32 | + public UpdateInstanceRequest() |
| 33 | + : base("amqp-open", "2019-12-12", "UpdateInstance", "onsproxy", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.amqp_open.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.amqp_open.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private long? maxPrivateTps; |
| 44 | + |
| 45 | + private string clientToken; |
| 46 | + |
| 47 | + private int? storageSize; |
| 48 | + |
| 49 | + private int? queueCapacity; |
| 50 | + |
| 51 | + private int? tracingStorageTime; |
| 52 | + |
| 53 | + private int? maxConnections; |
| 54 | + |
| 55 | + private bool? supportTracing; |
| 56 | + |
| 57 | + private string serverlessChargeType; |
| 58 | + |
| 59 | + private string instanceType; |
| 60 | + |
| 61 | + private string instanceId; |
| 62 | + |
| 63 | + private bool? supportEip; |
| 64 | + |
| 65 | + private string modifyType; |
| 66 | + |
| 67 | + private long? maxEipTps; |
| 68 | + |
| 69 | + public long? MaxPrivateTps |
| 70 | + { |
| 71 | + get |
| 72 | + { |
| 73 | + return maxPrivateTps; |
| 74 | + } |
| 75 | + set |
| 76 | + { |
| 77 | + maxPrivateTps = value; |
| 78 | + DictionaryUtil.Add(QueryParameters, "MaxPrivateTps", value.ToString()); |
| 79 | + } |
| 80 | + } |
| 81 | + |
| 82 | + public string ClientToken |
| 83 | + { |
| 84 | + get |
| 85 | + { |
| 86 | + return clientToken; |
| 87 | + } |
| 88 | + set |
| 89 | + { |
| 90 | + clientToken = value; |
| 91 | + DictionaryUtil.Add(QueryParameters, "ClientToken", value); |
| 92 | + } |
| 93 | + } |
| 94 | + |
| 95 | + public int? StorageSize |
| 96 | + { |
| 97 | + get |
| 98 | + { |
| 99 | + return storageSize; |
| 100 | + } |
| 101 | + set |
| 102 | + { |
| 103 | + storageSize = value; |
| 104 | + DictionaryUtil.Add(QueryParameters, "StorageSize", value.ToString()); |
| 105 | + } |
| 106 | + } |
| 107 | + |
| 108 | + public int? QueueCapacity |
| 109 | + { |
| 110 | + get |
| 111 | + { |
| 112 | + return queueCapacity; |
| 113 | + } |
| 114 | + set |
| 115 | + { |
| 116 | + queueCapacity = value; |
| 117 | + DictionaryUtil.Add(QueryParameters, "QueueCapacity", value.ToString()); |
| 118 | + } |
| 119 | + } |
| 120 | + |
| 121 | + public int? TracingStorageTime |
| 122 | + { |
| 123 | + get |
| 124 | + { |
| 125 | + return tracingStorageTime; |
| 126 | + } |
| 127 | + set |
| 128 | + { |
| 129 | + tracingStorageTime = value; |
| 130 | + DictionaryUtil.Add(QueryParameters, "TracingStorageTime", value.ToString()); |
| 131 | + } |
| 132 | + } |
| 133 | + |
| 134 | + public int? MaxConnections |
| 135 | + { |
| 136 | + get |
| 137 | + { |
| 138 | + return maxConnections; |
| 139 | + } |
| 140 | + set |
| 141 | + { |
| 142 | + maxConnections = value; |
| 143 | + DictionaryUtil.Add(QueryParameters, "MaxConnections", value.ToString()); |
| 144 | + } |
| 145 | + } |
| 146 | + |
| 147 | + public bool? SupportTracing |
| 148 | + { |
| 149 | + get |
| 150 | + { |
| 151 | + return supportTracing; |
| 152 | + } |
| 153 | + set |
| 154 | + { |
| 155 | + supportTracing = value; |
| 156 | + DictionaryUtil.Add(QueryParameters, "SupportTracing", value.ToString()); |
| 157 | + } |
| 158 | + } |
| 159 | + |
| 160 | + public string ServerlessChargeType |
| 161 | + { |
| 162 | + get |
| 163 | + { |
| 164 | + return serverlessChargeType; |
| 165 | + } |
| 166 | + set |
| 167 | + { |
| 168 | + serverlessChargeType = value; |
| 169 | + DictionaryUtil.Add(QueryParameters, "ServerlessChargeType", value); |
| 170 | + } |
| 171 | + } |
| 172 | + |
| 173 | + public string InstanceType |
| 174 | + { |
| 175 | + get |
| 176 | + { |
| 177 | + return instanceType; |
| 178 | + } |
| 179 | + set |
| 180 | + { |
| 181 | + instanceType = value; |
| 182 | + DictionaryUtil.Add(QueryParameters, "InstanceType", value); |
| 183 | + } |
| 184 | + } |
| 185 | + |
| 186 | + public string InstanceId |
| 187 | + { |
| 188 | + get |
| 189 | + { |
| 190 | + return instanceId; |
| 191 | + } |
| 192 | + set |
| 193 | + { |
| 194 | + instanceId = value; |
| 195 | + DictionaryUtil.Add(QueryParameters, "InstanceId", value); |
| 196 | + } |
| 197 | + } |
| 198 | + |
| 199 | + public bool? SupportEip |
| 200 | + { |
| 201 | + get |
| 202 | + { |
| 203 | + return supportEip; |
| 204 | + } |
| 205 | + set |
| 206 | + { |
| 207 | + supportEip = value; |
| 208 | + DictionaryUtil.Add(QueryParameters, "SupportEip", value.ToString()); |
| 209 | + } |
| 210 | + } |
| 211 | + |
| 212 | + public string ModifyType |
| 213 | + { |
| 214 | + get |
| 215 | + { |
| 216 | + return modifyType; |
| 217 | + } |
| 218 | + set |
| 219 | + { |
| 220 | + modifyType = value; |
| 221 | + DictionaryUtil.Add(QueryParameters, "ModifyType", value); |
| 222 | + } |
| 223 | + } |
| 224 | + |
| 225 | + public long? MaxEipTps |
| 226 | + { |
| 227 | + get |
| 228 | + { |
| 229 | + return maxEipTps; |
| 230 | + } |
| 231 | + set |
| 232 | + { |
| 233 | + maxEipTps = value; |
| 234 | + DictionaryUtil.Add(QueryParameters, "MaxEipTps", value.ToString()); |
| 235 | + } |
| 236 | + } |
| 237 | + |
| 238 | + public override bool CheckShowJsonItemName() |
| 239 | + { |
| 240 | + return false; |
| 241 | + } |
| 242 | + |
| 243 | + public override UpdateInstanceResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 244 | + { |
| 245 | + return UpdateInstanceResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 246 | + } |
| 247 | + } |
| 248 | +} |
0 commit comments