diff --git a/CHANGELOG b/CHANGELOG index 707474d78..40f8d7989 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2024-11-26 Version: 2.0.31 +- Update DescribeApiMetering API. + 2024-11-26 Version: 2.0.30 - Update DescribeApiMetering API. diff --git a/aliyun-net-sdk-market/Market/Model/V20151101/DescribeInstanceForIsvRequest.cs b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeInstanceForIsvRequest.cs new file mode 100644 index 000000000..e72a1d249 --- /dev/null +++ b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeInstanceForIsvRequest.cs @@ -0,0 +1,71 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.Market.Transform; +using Aliyun.Acs.Market.Transform.V20151101; + +namespace Aliyun.Acs.Market.Model.V20151101 +{ + public class DescribeInstanceForIsvRequest : RpcAcsRequest + { + public DescribeInstanceForIsvRequest() + : base("Market", "2015-11-01", "DescribeInstanceForIsv", "yunmarket", "openAPI") + { + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) + { + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Market.Endpoint.endpointMap, null); + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Market.Endpoint.endpointRegionalType, null); + } + Protocol = ProtocolType.HTTPS; + Method = MethodType.POST; + } + + private string instanceId; + + [JsonProperty(PropertyName = "InstanceId")] + public string InstanceId + { + get + { + return instanceId; + } + set + { + instanceId = value; + DictionaryUtil.Add(QueryParameters, "InstanceId", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override DescribeInstanceForIsvResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return DescribeInstanceForIsvResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-market/Market/Model/V20151101/DescribeInstanceForIsvResponse.cs b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeInstanceForIsvResponse.cs new file mode 100644 index 000000000..b3e95640f --- /dev/null +++ b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeInstanceForIsvResponse.cs @@ -0,0 +1,287 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.Market.Model.V20151101 +{ + public class DescribeInstanceForIsvResponse : AcsResponse + { + + private string status; + + private string productName; + + private long? instanceId; + + private string extendJson; + + private bool? isTrial; + + private long? beganOn; + + private string componentJson; + + private string productType; + + private string productSkuCode; + + private long? createdOn; + + private long? endOn; + + private long? orderId; + + private string productCode; + + private string supplierName; + + private string requestId; + + private DescribeInstanceForIsv_RelationalData relationalData; + + [JsonProperty(PropertyName = "Status")] + public string Status + { + get + { + return status; + } + set + { + status = value; + } + } + + [JsonProperty(PropertyName = "ProductName")] + public string ProductName + { + get + { + return productName; + } + set + { + productName = value; + } + } + + [JsonProperty(PropertyName = "InstanceId")] + public long? InstanceId + { + get + { + return instanceId; + } + set + { + instanceId = value; + } + } + + [JsonProperty(PropertyName = "ExtendJson")] + public string ExtendJson + { + get + { + return extendJson; + } + set + { + extendJson = value; + } + } + + [JsonProperty(PropertyName = "IsTrial")] + public bool? IsTrial + { + get + { + return isTrial; + } + set + { + isTrial = value; + } + } + + [JsonProperty(PropertyName = "BeganOn")] + public long? BeganOn + { + get + { + return beganOn; + } + set + { + beganOn = value; + } + } + + [JsonProperty(PropertyName = "ComponentJson")] + public string ComponentJson + { + get + { + return componentJson; + } + set + { + componentJson = value; + } + } + + [JsonProperty(PropertyName = "ProductType")] + public string ProductType + { + get + { + return productType; + } + set + { + productType = value; + } + } + + [JsonProperty(PropertyName = "ProductSkuCode")] + public string ProductSkuCode + { + get + { + return productSkuCode; + } + set + { + productSkuCode = value; + } + } + + [JsonProperty(PropertyName = "CreatedOn")] + public long? CreatedOn + { + get + { + return createdOn; + } + set + { + createdOn = value; + } + } + + [JsonProperty(PropertyName = "EndOn")] + public long? EndOn + { + get + { + return endOn; + } + set + { + endOn = value; + } + } + + [JsonProperty(PropertyName = "OrderId")] + public long? OrderId + { + get + { + return orderId; + } + set + { + orderId = value; + } + } + + [JsonProperty(PropertyName = "ProductCode")] + public string ProductCode + { + get + { + return productCode; + } + set + { + productCode = value; + } + } + + [JsonProperty(PropertyName = "SupplierName")] + public string SupplierName + { + get + { + return supplierName; + } + set + { + supplierName = value; + } + } + + [JsonProperty(PropertyName = "RequestId")] + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + [JsonProperty(PropertyName = "RelationalData")] + public DescribeInstanceForIsv_RelationalData RelationalData + { + get + { + return relationalData; + } + set + { + relationalData = value; + } + } + + public class DescribeInstanceForIsv_RelationalData + { + + private string serviceStatus; + + [JsonProperty(PropertyName = "ServiceStatus")] + public string ServiceStatus + { + get + { + return serviceStatus; + } + set + { + serviceStatus = value; + } + } + } + } +} diff --git a/aliyun-net-sdk-market/Market/Model/V20151101/DescribeOrderForIsvRequest.cs b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeOrderForIsvRequest.cs new file mode 100644 index 000000000..87a8f13bf --- /dev/null +++ b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeOrderForIsvRequest.cs @@ -0,0 +1,71 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; + +using Aliyun.Acs.Core; +using Aliyun.Acs.Core.Http; +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Core.Utils; +using Aliyun.Acs.Market.Transform; +using Aliyun.Acs.Market.Transform.V20151101; + +namespace Aliyun.Acs.Market.Model.V20151101 +{ + public class DescribeOrderForIsvRequest : RpcAcsRequest + { + public DescribeOrderForIsvRequest() + : base("Market", "2015-11-01", "DescribeOrderForIsv", "yunmarket", "openAPI") + { + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) + { + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Market.Endpoint.endpointMap, null); + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Market.Endpoint.endpointRegionalType, null); + } + Protocol = ProtocolType.HTTPS; + Method = MethodType.POST; + } + + private string orderId; + + [JsonProperty(PropertyName = "OrderId")] + public string OrderId + { + get + { + return orderId; + } + set + { + orderId = value; + DictionaryUtil.Add(QueryParameters, "OrderId", value); + } + } + + public override bool CheckShowJsonItemName() + { + return false; + } + + public override DescribeOrderForIsvResponse GetResponse(UnmarshallerContext unmarshallerContext) + { + return DescribeOrderForIsvResponseUnmarshaller.Unmarshall(unmarshallerContext); + } + } +} diff --git a/aliyun-net-sdk-market/Market/Model/V20151101/DescribeOrderForIsvResponse.cs b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeOrderForIsvResponse.cs new file mode 100644 index 000000000..9283cfb67 --- /dev/null +++ b/aliyun-net-sdk-market/Market/Model/V20151101/DescribeOrderForIsvResponse.cs @@ -0,0 +1,328 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System.Collections.Generic; +using Newtonsoft.Json; +using Aliyun.Acs.Core; + +namespace Aliyun.Acs.Market.Model.V20151101 +{ + public class DescribeOrderForIsvResponse : AcsResponse + { + + private string productName; + + private float? originalPrice; + + private long? aliUid; + + private float? couponPrice; + + private long? accountQuantity; + + private string periodType; + + private string payStatus; + + private float? paymentPrice; + + private string orderStatus; + + private string productSkuCode; + + private long? paidOn; + + private string components; + + private long? createdOn; + + private string orderType; + + private float? totalPrice; + + private int? quantity; + + private long? orderId; + + private string productCode; + + private string requestId; + + private List instanceIds; + + [JsonProperty(PropertyName = "ProductName")] + public string ProductName + { + get + { + return productName; + } + set + { + productName = value; + } + } + + [JsonProperty(PropertyName = "OriginalPrice")] + public float? OriginalPrice + { + get + { + return originalPrice; + } + set + { + originalPrice = value; + } + } + + [JsonProperty(PropertyName = "AliUid")] + public long? AliUid + { + get + { + return aliUid; + } + set + { + aliUid = value; + } + } + + [JsonProperty(PropertyName = "CouponPrice")] + public float? CouponPrice + { + get + { + return couponPrice; + } + set + { + couponPrice = value; + } + } + + [JsonProperty(PropertyName = "AccountQuantity")] + public long? AccountQuantity + { + get + { + return accountQuantity; + } + set + { + accountQuantity = value; + } + } + + [JsonProperty(PropertyName = "PeriodType")] + public string PeriodType + { + get + { + return periodType; + } + set + { + periodType = value; + } + } + + [JsonProperty(PropertyName = "PayStatus")] + public string PayStatus + { + get + { + return payStatus; + } + set + { + payStatus = value; + } + } + + [JsonProperty(PropertyName = "PaymentPrice")] + public float? PaymentPrice + { + get + { + return paymentPrice; + } + set + { + paymentPrice = value; + } + } + + [JsonProperty(PropertyName = "OrderStatus")] + public string OrderStatus + { + get + { + return orderStatus; + } + set + { + orderStatus = value; + } + } + + [JsonProperty(PropertyName = "ProductSkuCode")] + public string ProductSkuCode + { + get + { + return productSkuCode; + } + set + { + productSkuCode = value; + } + } + + [JsonProperty(PropertyName = "PaidOn")] + public long? PaidOn + { + get + { + return paidOn; + } + set + { + paidOn = value; + } + } + + [JsonProperty(PropertyName = "Components")] + public string Components + { + get + { + return components; + } + set + { + components = value; + } + } + + [JsonProperty(PropertyName = "CreatedOn")] + public long? CreatedOn + { + get + { + return createdOn; + } + set + { + createdOn = value; + } + } + + [JsonProperty(PropertyName = "OrderType")] + public string OrderType + { + get + { + return orderType; + } + set + { + orderType = value; + } + } + + [JsonProperty(PropertyName = "TotalPrice")] + public float? TotalPrice + { + get + { + return totalPrice; + } + set + { + totalPrice = value; + } + } + + [JsonProperty(PropertyName = "Quantity")] + public int? Quantity + { + get + { + return quantity; + } + set + { + quantity = value; + } + } + + [JsonProperty(PropertyName = "OrderId")] + public long? OrderId + { + get + { + return orderId; + } + set + { + orderId = value; + } + } + + [JsonProperty(PropertyName = "ProductCode")] + public string ProductCode + { + get + { + return productCode; + } + set + { + productCode = value; + } + } + + [JsonProperty(PropertyName = "RequestId")] + public string RequestId + { + get + { + return requestId; + } + set + { + requestId = value; + } + } + + [JsonProperty(PropertyName = "InstanceIds")] + public List InstanceIds + { + get + { + return instanceIds; + } + set + { + instanceIds = value; + } + } + } +} diff --git a/aliyun-net-sdk-market/Market/Transform/V20151101/DescribeInstanceForIsvResponseUnmarshaller.cs b/aliyun-net-sdk-market/Market/Transform/V20151101/DescribeInstanceForIsvResponseUnmarshaller.cs new file mode 100644 index 000000000..25a63d70f --- /dev/null +++ b/aliyun-net-sdk-market/Market/Transform/V20151101/DescribeInstanceForIsvResponseUnmarshaller.cs @@ -0,0 +1,57 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Market.Model.V20151101; + +namespace Aliyun.Acs.Market.Transform.V20151101 +{ + public class DescribeInstanceForIsvResponseUnmarshaller + { + public static DescribeInstanceForIsvResponse Unmarshall(UnmarshallerContext _ctx) + { + DescribeInstanceForIsvResponse describeInstanceForIsvResponse = new DescribeInstanceForIsvResponse(); + + describeInstanceForIsvResponse.HttpResponse = _ctx.HttpResponse; + describeInstanceForIsvResponse.Status = _ctx.StringValue("DescribeInstanceForIsv.Status"); + describeInstanceForIsvResponse.ProductName = _ctx.StringValue("DescribeInstanceForIsv.ProductName"); + describeInstanceForIsvResponse.InstanceId = _ctx.LongValue("DescribeInstanceForIsv.InstanceId"); + describeInstanceForIsvResponse.ExtendJson = _ctx.StringValue("DescribeInstanceForIsv.ExtendJson"); + describeInstanceForIsvResponse.IsTrial = _ctx.BooleanValue("DescribeInstanceForIsv.IsTrial"); + describeInstanceForIsvResponse.BeganOn = _ctx.LongValue("DescribeInstanceForIsv.BeganOn"); + describeInstanceForIsvResponse.ComponentJson = _ctx.StringValue("DescribeInstanceForIsv.ComponentJson"); + describeInstanceForIsvResponse.ProductType = _ctx.StringValue("DescribeInstanceForIsv.ProductType"); + describeInstanceForIsvResponse.ProductSkuCode = _ctx.StringValue("DescribeInstanceForIsv.ProductSkuCode"); + describeInstanceForIsvResponse.CreatedOn = _ctx.LongValue("DescribeInstanceForIsv.CreatedOn"); + describeInstanceForIsvResponse.EndOn = _ctx.LongValue("DescribeInstanceForIsv.EndOn"); + describeInstanceForIsvResponse.OrderId = _ctx.LongValue("DescribeInstanceForIsv.OrderId"); + describeInstanceForIsvResponse.ProductCode = _ctx.StringValue("DescribeInstanceForIsv.ProductCode"); + describeInstanceForIsvResponse.SupplierName = _ctx.StringValue("DescribeInstanceForIsv.SupplierName"); + describeInstanceForIsvResponse.RequestId = _ctx.StringValue("DescribeInstanceForIsv.RequestId"); + + DescribeInstanceForIsvResponse.DescribeInstanceForIsv_RelationalData relationalData = new DescribeInstanceForIsvResponse.DescribeInstanceForIsv_RelationalData(); + relationalData.ServiceStatus = _ctx.StringValue("DescribeInstanceForIsv.RelationalData.ServiceStatus"); + describeInstanceForIsvResponse.RelationalData = relationalData; + + return describeInstanceForIsvResponse; + } + } +} diff --git a/aliyun-net-sdk-market/Market/Transform/V20151101/DescribeOrderForIsvResponseUnmarshaller.cs b/aliyun-net-sdk-market/Market/Transform/V20151101/DescribeOrderForIsvResponseUnmarshaller.cs new file mode 100644 index 000000000..6346c0d78 --- /dev/null +++ b/aliyun-net-sdk-market/Market/Transform/V20151101/DescribeOrderForIsvResponseUnmarshaller.cs @@ -0,0 +1,63 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ +using System; +using System.Collections.Generic; + +using Aliyun.Acs.Core.Transform; +using Aliyun.Acs.Market.Model.V20151101; + +namespace Aliyun.Acs.Market.Transform.V20151101 +{ + public class DescribeOrderForIsvResponseUnmarshaller + { + public static DescribeOrderForIsvResponse Unmarshall(UnmarshallerContext _ctx) + { + DescribeOrderForIsvResponse describeOrderForIsvResponse = new DescribeOrderForIsvResponse(); + + describeOrderForIsvResponse.HttpResponse = _ctx.HttpResponse; + describeOrderForIsvResponse.ProductName = _ctx.StringValue("DescribeOrderForIsv.ProductName"); + describeOrderForIsvResponse.OriginalPrice = _ctx.FloatValue("DescribeOrderForIsv.OriginalPrice"); + describeOrderForIsvResponse.AliUid = _ctx.LongValue("DescribeOrderForIsv.AliUid"); + describeOrderForIsvResponse.CouponPrice = _ctx.FloatValue("DescribeOrderForIsv.CouponPrice"); + describeOrderForIsvResponse.AccountQuantity = _ctx.LongValue("DescribeOrderForIsv.AccountQuantity"); + describeOrderForIsvResponse.PeriodType = _ctx.StringValue("DescribeOrderForIsv.PeriodType"); + describeOrderForIsvResponse.PayStatus = _ctx.StringValue("DescribeOrderForIsv.PayStatus"); + describeOrderForIsvResponse.PaymentPrice = _ctx.FloatValue("DescribeOrderForIsv.PaymentPrice"); + describeOrderForIsvResponse.OrderStatus = _ctx.StringValue("DescribeOrderForIsv.OrderStatus"); + describeOrderForIsvResponse.ProductSkuCode = _ctx.StringValue("DescribeOrderForIsv.ProductSkuCode"); + describeOrderForIsvResponse.PaidOn = _ctx.LongValue("DescribeOrderForIsv.PaidOn"); + describeOrderForIsvResponse.Components = _ctx.StringValue("DescribeOrderForIsv.Components"); + describeOrderForIsvResponse.CreatedOn = _ctx.LongValue("DescribeOrderForIsv.CreatedOn"); + describeOrderForIsvResponse.OrderType = _ctx.StringValue("DescribeOrderForIsv.OrderType"); + describeOrderForIsvResponse.TotalPrice = _ctx.FloatValue("DescribeOrderForIsv.TotalPrice"); + describeOrderForIsvResponse.Quantity = _ctx.IntegerValue("DescribeOrderForIsv.Quantity"); + describeOrderForIsvResponse.OrderId = _ctx.LongValue("DescribeOrderForIsv.OrderId"); + describeOrderForIsvResponse.ProductCode = _ctx.StringValue("DescribeOrderForIsv.ProductCode"); + describeOrderForIsvResponse.RequestId = _ctx.StringValue("DescribeOrderForIsv.RequestId"); + + List describeOrderForIsvResponse_instanceIds = new List(); + for (int i = 0; i < _ctx.Length("DescribeOrderForIsv.InstanceIds.Length"); i++) { + describeOrderForIsvResponse_instanceIds.Add(_ctx.StringValue("DescribeOrderForIsv.InstanceIds["+ i +"]")); + } + describeOrderForIsvResponse.InstanceIds = describeOrderForIsvResponse_instanceIds; + + return describeOrderForIsvResponse; + } + } +} diff --git a/aliyun-net-sdk-market/aliyun-net-sdk-market.vs2017.csproj b/aliyun-net-sdk-market/aliyun-net-sdk-market.vs2017.csproj index 40794d050..d64c172fd 100644 --- a/aliyun-net-sdk-market/aliyun-net-sdk-market.vs2017.csproj +++ b/aliyun-net-sdk-market/aliyun-net-sdk-market.vs2017.csproj @@ -3,7 +3,7 @@ netstandard2.0;net45 Aliyun.Acs.Market - 2.0.30 + 2.0.31 Alibaba Cloud ©2009-2019 Alibaba Cloud false