|
| 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.idaas_doraemon.Transform; |
| 26 | +using Aliyun.Acs.idaas_doraemon.Transform.V20210520; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.idaas_doraemon.Model.V20210520 |
| 29 | +{ |
| 30 | + public class ListCostUnitOrdersRequest : RpcAcsRequest<ListCostUnitOrdersResponse> |
| 31 | + { |
| 32 | + public ListCostUnitOrdersRequest() |
| 33 | + : base("idaas-doraemon", "2021-05-20", "ListCostUnitOrders", "idaasauth", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.idaas_doraemon.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.idaas_doraemon.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private string beginDate; |
| 44 | + |
| 45 | + private int? pageNumber; |
| 46 | + |
| 47 | + private string finalDate; |
| 48 | + |
| 49 | + private int? pageSize; |
| 50 | + |
| 51 | + public string BeginDate |
| 52 | + { |
| 53 | + get |
| 54 | + { |
| 55 | + return beginDate; |
| 56 | + } |
| 57 | + set |
| 58 | + { |
| 59 | + beginDate = value; |
| 60 | + DictionaryUtil.Add(QueryParameters, "BeginDate", value); |
| 61 | + } |
| 62 | + } |
| 63 | + |
| 64 | + public int? PageNumber |
| 65 | + { |
| 66 | + get |
| 67 | + { |
| 68 | + return pageNumber; |
| 69 | + } |
| 70 | + set |
| 71 | + { |
| 72 | + pageNumber = value; |
| 73 | + DictionaryUtil.Add(QueryParameters, "PageNumber", value.ToString()); |
| 74 | + } |
| 75 | + } |
| 76 | + |
| 77 | + public string FinalDate |
| 78 | + { |
| 79 | + get |
| 80 | + { |
| 81 | + return finalDate; |
| 82 | + } |
| 83 | + set |
| 84 | + { |
| 85 | + finalDate = value; |
| 86 | + DictionaryUtil.Add(QueryParameters, "FinalDate", value); |
| 87 | + } |
| 88 | + } |
| 89 | + |
| 90 | + public int? PageSize |
| 91 | + { |
| 92 | + get |
| 93 | + { |
| 94 | + return pageSize; |
| 95 | + } |
| 96 | + set |
| 97 | + { |
| 98 | + pageSize = value; |
| 99 | + DictionaryUtil.Add(QueryParameters, "PageSize", value.ToString()); |
| 100 | + } |
| 101 | + } |
| 102 | + |
| 103 | + public override bool CheckShowJsonItemName() |
| 104 | + { |
| 105 | + return false; |
| 106 | + } |
| 107 | + |
| 108 | + public override ListCostUnitOrdersResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 109 | + { |
| 110 | + return ListCostUnitOrdersResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 111 | + } |
| 112 | + } |
| 113 | +} |
0 commit comments