|
| 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.Sas; |
| 26 | +using Aliyun.Acs.Sas.Transform; |
| 27 | +using Aliyun.Acs.Sas.Transform.V20181203; |
| 28 | + |
| 29 | +namespace Aliyun.Acs.Sas.Model.V20181203 |
| 30 | +{ |
| 31 | + public class AddInstallCodeRequest : RpcAcsRequest<AddInstallCodeResponse> |
| 32 | + { |
| 33 | + public AddInstallCodeRequest() |
| 34 | + : base("Sas", "2018-12-03", "AddInstallCode") |
| 35 | + { |
| 36 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 37 | + { |
| 38 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Sas.Endpoint.endpointMap, null); |
| 39 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Sas.Endpoint.endpointRegionalType, null); |
| 40 | + } |
| 41 | + Method = MethodType.POST; |
| 42 | + } |
| 43 | + |
| 44 | + private long? expiredDate; |
| 45 | + |
| 46 | + private string os; |
| 47 | + |
| 48 | + private long? groupId; |
| 49 | + |
| 50 | + private bool? onlyImage; |
| 51 | + |
| 52 | + private string vendorName; |
| 53 | + |
| 54 | + public long? ExpiredDate |
| 55 | + { |
| 56 | + get |
| 57 | + { |
| 58 | + return expiredDate; |
| 59 | + } |
| 60 | + set |
| 61 | + { |
| 62 | + expiredDate = value; |
| 63 | + DictionaryUtil.Add(QueryParameters, "ExpiredDate", value.ToString()); |
| 64 | + } |
| 65 | + } |
| 66 | + |
| 67 | + public string Os |
| 68 | + { |
| 69 | + get |
| 70 | + { |
| 71 | + return os; |
| 72 | + } |
| 73 | + set |
| 74 | + { |
| 75 | + os = value; |
| 76 | + DictionaryUtil.Add(QueryParameters, "Os", value); |
| 77 | + } |
| 78 | + } |
| 79 | + |
| 80 | + public long? GroupId |
| 81 | + { |
| 82 | + get |
| 83 | + { |
| 84 | + return groupId; |
| 85 | + } |
| 86 | + set |
| 87 | + { |
| 88 | + groupId = value; |
| 89 | + DictionaryUtil.Add(QueryParameters, "GroupId", value.ToString()); |
| 90 | + } |
| 91 | + } |
| 92 | + |
| 93 | + public bool? OnlyImage |
| 94 | + { |
| 95 | + get |
| 96 | + { |
| 97 | + return onlyImage; |
| 98 | + } |
| 99 | + set |
| 100 | + { |
| 101 | + onlyImage = value; |
| 102 | + DictionaryUtil.Add(QueryParameters, "OnlyImage", value.ToString()); |
| 103 | + } |
| 104 | + } |
| 105 | + |
| 106 | + public string VendorName |
| 107 | + { |
| 108 | + get |
| 109 | + { |
| 110 | + return vendorName; |
| 111 | + } |
| 112 | + set |
| 113 | + { |
| 114 | + vendorName = value; |
| 115 | + DictionaryUtil.Add(QueryParameters, "VendorName", value); |
| 116 | + } |
| 117 | + } |
| 118 | + |
| 119 | + public override bool CheckShowJsonItemName() |
| 120 | + { |
| 121 | + return false; |
| 122 | + } |
| 123 | + |
| 124 | + public override AddInstallCodeResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 125 | + { |
| 126 | + return AddInstallCodeResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 127 | + } |
| 128 | + } |
| 129 | +} |
0 commit comments