From 6abf2bbbbdfa684e3dc5eacd62698ecaef5e2bc7 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Sun, 30 Jun 2024 06:32:25 +0000 Subject: [PATCH] Add UsageMetric. --- aliyun-java-sdk-quotas/ChangeLog.txt | 3 + aliyun-java-sdk-quotas/pom.xml | 2 +- ...eQuotaApplicationsForTemplateResponse.java | 33 ++++ .../v20200510/GetProductQuotaResponse.java | 53 ++++++ .../GetQuotaApplicationApprovalRequest.java | 54 ++++++ .../GetQuotaApplicationApprovalResponse.java | 180 ++++++++++++++++++ .../v20200510/ListAlarmHistoriesRequest.java | 13 ++ .../ListProductQuotaDimensionsRequest.java | 26 +-- .../ListProductQuotaDimensionsResponse.java | 33 ++++ .../v20200510/ListProductQuotasResponse.java | 53 ++++++ ...tQuotaApplicationsForTemplateResponse.java | 20 ++ ...RemindQuotaApplicationApprovalRequest.java | 54 ++++++ ...emindQuotaApplicationApprovalResponse.java | 137 +++++++++++++ ...ationsForTemplateResponseUnmarshaller.java | 15 +- .../GetProductQuotaResponseUnmarshaller.java | 8 + ...plicationApprovalResponseUnmarshaller.java | 53 ++++++ ...ctQuotaDimensionsResponseUnmarshaller.java | 13 +- ...ListProductQuotasResponseUnmarshaller.java | 8 + ...ationsForTemplateResponseUnmarshaller.java | 7 + ...plicationApprovalResponseUnmarshaller.java | 46 +++++ 20 files changed, 794 insertions(+), 17 deletions(-) create mode 100644 aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalRequest.java create mode 100644 aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalResponse.java create mode 100644 aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalRequest.java create mode 100644 aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalResponse.java create mode 100644 aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetQuotaApplicationApprovalResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/RemindQuotaApplicationApprovalResponseUnmarshaller.java diff --git a/aliyun-java-sdk-quotas/ChangeLog.txt b/aliyun-java-sdk-quotas/ChangeLog.txt index 9c07869bb8..cc6009d067 100644 --- a/aliyun-java-sdk-quotas/ChangeLog.txt +++ b/aliyun-java-sdk-quotas/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-06-30 Version: 1.0.3 +- Add UsageMetric. + 2023-09-18 Version: 1.0.2 Support QuotaApplications For Template. diff --git a/aliyun-java-sdk-quotas/pom.xml b/aliyun-java-sdk-quotas/pom.xml index 144defc93d..c1b3fa3631 100644 --- a/aliyun-java-sdk-quotas/pom.xml +++ b/aliyun-java-sdk-quotas/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-quotas jar - 1.0.2 + 1.0.3 aliyun-java-sdk-quotas http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/CreateQuotaApplicationsForTemplateResponse.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/CreateQuotaApplicationsForTemplateResponse.java index 94d6c4b211..cbf75450ad 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/CreateQuotaApplicationsForTemplateResponse.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/CreateQuotaApplicationsForTemplateResponse.java @@ -29,6 +29,8 @@ public class CreateQuotaApplicationsForTemplateResponse extends AcsResponse { private String batchQuotaApplicationId; + private List failResults; + private List aliyunUids; public String getRequestId() { @@ -47,6 +49,14 @@ public void setBatchQuotaApplicationId(String batchQuotaApplicationId) { this.batchQuotaApplicationId = batchQuotaApplicationId; } + public List getFailResults() { + return this.failResults; + } + + public void setFailResults(List failResults) { + this.failResults = failResults; + } + public List getAliyunUids() { return this.aliyunUids; } @@ -55,6 +65,29 @@ public void setAliyunUids(List aliyunUids) { this.aliyunUids = aliyunUids; } + public static class FailResultsItem { + + private String aliyunUid; + + private String reason; + + public String getAliyunUid() { + return this.aliyunUid; + } + + public void setAliyunUid(String aliyunUid) { + this.aliyunUid = aliyunUid; + } + + public String getReason() { + return this.reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + } + @Override public CreateQuotaApplicationsForTemplateResponse getInstance(UnmarshallerContext context) { return CreateQuotaApplicationsForTemplateResponseUnmarshaller.unmarshall(this, context); diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetProductQuotaResponse.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetProductQuotaResponse.java index f5767c0984..57c76d78d4 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetProductQuotaResponse.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetProductQuotaResponse.java @@ -84,6 +84,8 @@ public static class Quota { private String applyReasonTips; + private Boolean globalQuota; + private List quotaItems; private List applicableRange; @@ -92,6 +94,8 @@ public static class Quota { private Period period; + private UsageMetric usageMetric; + public String getQuotaUnit() { return this.quotaUnit; } @@ -236,6 +240,14 @@ public void setApplyReasonTips(String applyReasonTips) { this.applyReasonTips = applyReasonTips; } + public Boolean getGlobalQuota() { + return this.globalQuota; + } + + public void setGlobalQuota(Boolean globalQuota) { + this.globalQuota = globalQuota; + } + public List getQuotaItems() { return this.quotaItems; } @@ -268,6 +280,14 @@ public void setPeriod(Period period) { this.period = period; } + public UsageMetric getUsageMetric() { + return this.usageMetric; + } + + public void setUsageMetric(UsageMetric usageMetric) { + this.usageMetric = usageMetric; + } + public static class QuotaItemsItem { private String type; @@ -333,6 +353,39 @@ public void setPeriodUnit(String periodUnit) { this.periodUnit = periodUnit; } } + + public static class UsageMetric { + + private String metricNamespace; + + private String metricName; + + private Map metricDimensions; + + public String getMetricNamespace() { + return this.metricNamespace; + } + + public void setMetricNamespace(String metricNamespace) { + this.metricNamespace = metricNamespace; + } + + public String getMetricName() { + return this.metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public Map getMetricDimensions() { + return this.metricDimensions; + } + + public void setMetricDimensions(Map metricDimensions) { + this.metricDimensions = metricDimensions; + } + } } @Override diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalRequest.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalRequest.java new file mode 100644 index 0000000000..564a3b9687 --- /dev/null +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalRequest.java @@ -0,0 +1,54 @@ +/* + * Licensed 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. + */ + +package com.aliyuncs.quotas.model.v20200510; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.quotas.Endpoint; + +/** + * @author auto create + * @version + */ +public class GetQuotaApplicationApprovalRequest extends RpcAcsRequest { + + + private String applicationId; + public GetQuotaApplicationApprovalRequest() { + super("quotas", "2020-05-10", "GetQuotaApplicationApproval", "quotas"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getApplicationId() { + return this.applicationId; + } + + public void setApplicationId(String applicationId) { + this.applicationId = applicationId; + if(applicationId != null){ + putBodyParameter("ApplicationId", applicationId); + } + } + + @Override + public Class getResponseClass() { + return GetQuotaApplicationApprovalResponse.class; + } + +} diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalResponse.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalResponse.java new file mode 100644 index 0000000000..1a62ef189d --- /dev/null +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/GetQuotaApplicationApprovalResponse.java @@ -0,0 +1,180 @@ +/* + * Licensed 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. + */ + +package com.aliyuncs.quotas.model.v20200510; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.quotas.transform.v20200510.GetQuotaApplicationApprovalResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetQuotaApplicationApprovalResponse extends AcsResponse { + + private String requestId; + + private Integer httpStatusCode; + + private String dynamicCode; + + private String dynamicMessage; + + private String errorMsg; + + private String errorCode; + + private Boolean success; + + private Boolean allowRetry; + + private List errorArgs; + + private Module module; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public String getDynamicCode() { + return this.dynamicCode; + } + + public void setDynamicCode(String dynamicCode) { + this.dynamicCode = dynamicCode; + } + + public String getDynamicMessage() { + return this.dynamicMessage; + } + + public void setDynamicMessage(String dynamicMessage) { + this.dynamicMessage = dynamicMessage; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public Boolean getAllowRetry() { + return this.allowRetry; + } + + public void setAllowRetry(Boolean allowRetry) { + this.allowRetry = allowRetry; + } + + public List getErrorArgs() { + return this.errorArgs; + } + + public void setErrorArgs(List errorArgs) { + this.errorArgs = errorArgs; + } + + public Module getModule() { + return this.module; + } + + public void setModule(Module module) { + this.module = module; + } + + public static class Module { + + private Integer approvalHours; + + private Boolean supportReminder; + + private String unsupportReminderReason; + + private Integer reminderIntervalHours; + + public Integer getApprovalHours() { + return this.approvalHours; + } + + public void setApprovalHours(Integer approvalHours) { + this.approvalHours = approvalHours; + } + + public Boolean getSupportReminder() { + return this.supportReminder; + } + + public void setSupportReminder(Boolean supportReminder) { + this.supportReminder = supportReminder; + } + + public String getUnsupportReminderReason() { + return this.unsupportReminderReason; + } + + public void setUnsupportReminderReason(String unsupportReminderReason) { + this.unsupportReminderReason = unsupportReminderReason; + } + + public Integer getReminderIntervalHours() { + return this.reminderIntervalHours; + } + + public void setReminderIntervalHours(Integer reminderIntervalHours) { + this.reminderIntervalHours = reminderIntervalHours; + } + } + + @Override + public GetQuotaApplicationApprovalResponse getInstance(UnmarshallerContext context) { + return GetQuotaApplicationApprovalResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListAlarmHistoriesRequest.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListAlarmHistoriesRequest.java index 7b6b0b9295..1147de1b84 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListAlarmHistoriesRequest.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListAlarmHistoriesRequest.java @@ -35,6 +35,8 @@ public class ListAlarmHistoriesRequest extends RpcAcsRequest dependentDimensions1; + public String getName() { return this.name; } @@ -158,6 +160,37 @@ public String getValue() { public void setValue(String value) { this.value = value; } + + public List getDependentDimensions1() { + return this.dependentDimensions1; + } + + public void setDependentDimensions1(List dependentDimensions1) { + this.dependentDimensions1 = dependentDimensions1; + } + + public static class DependentDimension { + + private String key; + + private String value; + + public String getKey() { + return this.key; + } + + public void setKey(String key) { + this.key = key; + } + + public String getValue() { + return this.value; + } + + public void setValue(String value) { + this.value = value; + } + } } } diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListProductQuotasResponse.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListProductQuotasResponse.java index 12403e9ad5..bdd115c218 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListProductQuotasResponse.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListProductQuotasResponse.java @@ -114,6 +114,8 @@ public static class QuotasItem { private String applyReasonTips; + private Boolean globalQuota; + private List quotaItems; private List applicableRange; @@ -122,6 +124,8 @@ public static class QuotasItem { private Period period; + private UsageMetric usageMetric; + public String getQuotaUnit() { return this.quotaUnit; } @@ -266,6 +270,14 @@ public void setApplyReasonTips(String applyReasonTips) { this.applyReasonTips = applyReasonTips; } + public Boolean getGlobalQuota() { + return this.globalQuota; + } + + public void setGlobalQuota(Boolean globalQuota) { + this.globalQuota = globalQuota; + } + public List getQuotaItems() { return this.quotaItems; } @@ -298,6 +310,14 @@ public void setPeriod(Period period) { this.period = period; } + public UsageMetric getUsageMetric() { + return this.usageMetric; + } + + public void setUsageMetric(UsageMetric usageMetric) { + this.usageMetric = usageMetric; + } + public static class QuotaItemsItem { private String type; @@ -363,6 +383,39 @@ public void setPeriodUnit(String periodUnit) { this.periodUnit = periodUnit; } } + + public static class UsageMetric { + + private String metricNamespace; + + private String metricName; + + private Map metricDimensions; + + public String getMetricNamespace() { + return this.metricNamespace; + } + + public void setMetricNamespace(String metricNamespace) { + this.metricNamespace = metricNamespace; + } + + public String getMetricName() { + return this.metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public Map getMetricDimensions() { + return this.metricDimensions; + } + + public void setMetricDimensions(Map metricDimensions) { + this.metricDimensions = metricDimensions; + } + } } @Override diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListQuotaApplicationsForTemplateResponse.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListQuotaApplicationsForTemplateResponse.java index 1f748604be..9765a28f2d 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListQuotaApplicationsForTemplateResponse.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/ListQuotaApplicationsForTemplateResponse.java @@ -96,8 +96,12 @@ public static class QuotaBatchApplicationsItem { private Map dimensions; + private String reason; + private List auditStatusVos; + private List aliyunUids; + public String getProductCode() { return this.productCode; } @@ -170,6 +174,14 @@ public void setDimensions(Map dimensions) { this.dimensions = dimensions; } + public String getReason() { + return this.reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + public List getAuditStatusVos() { return this.auditStatusVos; } @@ -178,6 +190,14 @@ public void setAuditStatusVos(List auditStatusVos) { this.auditStatusVos = auditStatusVos; } + public List getAliyunUids() { + return this.aliyunUids; + } + + public void setAliyunUids(List aliyunUids) { + this.aliyunUids = aliyunUids; + } + public static class AuditStatusVo { private String status; diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalRequest.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalRequest.java new file mode 100644 index 0000000000..e3f2ef88a5 --- /dev/null +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalRequest.java @@ -0,0 +1,54 @@ +/* + * Licensed 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. + */ + +package com.aliyuncs.quotas.model.v20200510; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.quotas.Endpoint; + +/** + * @author auto create + * @version + */ +public class RemindQuotaApplicationApprovalRequest extends RpcAcsRequest { + + + private String applicationId; + public RemindQuotaApplicationApprovalRequest() { + super("quotas", "2020-05-10", "RemindQuotaApplicationApproval", "quotas"); + setMethod(MethodType.POST); + try { + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); + com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); + } catch (Exception e) {} + } + + public String getApplicationId() { + return this.applicationId; + } + + public void setApplicationId(String applicationId) { + this.applicationId = applicationId; + if(applicationId != null){ + putBodyParameter("ApplicationId", applicationId); + } + } + + @Override + public Class getResponseClass() { + return RemindQuotaApplicationApprovalResponse.class; + } + +} diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalResponse.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalResponse.java new file mode 100644 index 0000000000..b03a75ee08 --- /dev/null +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/model/v20200510/RemindQuotaApplicationApprovalResponse.java @@ -0,0 +1,137 @@ +/* + * Licensed 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. + */ + +package com.aliyuncs.quotas.model.v20200510; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.quotas.transform.v20200510.RemindQuotaApplicationApprovalResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RemindQuotaApplicationApprovalResponse extends AcsResponse { + + private String requestId; + + private Integer httpStatusCode; + + private String dynamicCode; + + private String dynamicMessage; + + private String errorMsg; + + private String errorCode; + + private Boolean success; + + private String module; + + private Boolean allowRetry; + + private List errorArgs; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public String getDynamicCode() { + return this.dynamicCode; + } + + public void setDynamicCode(String dynamicCode) { + this.dynamicCode = dynamicCode; + } + + public String getDynamicMessage() { + return this.dynamicMessage; + } + + public void setDynamicMessage(String dynamicMessage) { + this.dynamicMessage = dynamicMessage; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getModule() { + return this.module; + } + + public void setModule(String module) { + this.module = module; + } + + public Boolean getAllowRetry() { + return this.allowRetry; + } + + public void setAllowRetry(Boolean allowRetry) { + this.allowRetry = allowRetry; + } + + public List getErrorArgs() { + return this.errorArgs; + } + + public void setErrorArgs(List errorArgs) { + this.errorArgs = errorArgs; + } + + @Override + public RemindQuotaApplicationApprovalResponse getInstance(UnmarshallerContext context) { + return RemindQuotaApplicationApprovalResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/CreateQuotaApplicationsForTemplateResponseUnmarshaller.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/CreateQuotaApplicationsForTemplateResponseUnmarshaller.java index 06ddf52a3b..25b5fc5e47 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/CreateQuotaApplicationsForTemplateResponseUnmarshaller.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/CreateQuotaApplicationsForTemplateResponseUnmarshaller.java @@ -17,7 +17,8 @@ import java.util.ArrayList; import java.util.List; -import com.aliyuncs.quotas.model.v20200510.CreateQuotaApplicationsForTemplateResponse; +import com.aliyuncs.quotas.model.v20200510.CreateQuotaApplicationsForTemplateResponse; +import com.aliyuncs.quotas.model.v20200510.CreateQuotaApplicationsForTemplateResponse.FailResultsItem; import com.aliyuncs.transform.UnmarshallerContext; @@ -32,7 +33,17 @@ public static CreateQuotaApplicationsForTemplateResponse unmarshall(CreateQuotaA for (int i = 0; i < _ctx.lengthValue("CreateQuotaApplicationsForTemplateResponse.AliyunUids.Length"); i++) { aliyunUids.add(_ctx.stringValue("CreateQuotaApplicationsForTemplateResponse.AliyunUids["+ i +"]")); } - createQuotaApplicationsForTemplateResponse.setAliyunUids(aliyunUids); + createQuotaApplicationsForTemplateResponse.setAliyunUids(aliyunUids); + + List failResults = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("CreateQuotaApplicationsForTemplateResponse.FailResults.Length"); i++) { + FailResultsItem failResultsItem = new FailResultsItem(); + failResultsItem.setAliyunUid(_ctx.stringValue("CreateQuotaApplicationsForTemplateResponse.FailResults["+ i +"].AliyunUid")); + failResultsItem.setReason(_ctx.stringValue("CreateQuotaApplicationsForTemplateResponse.FailResults["+ i +"].Reason")); + + failResults.add(failResultsItem); + } + createQuotaApplicationsForTemplateResponse.setFailResults(failResults); return createQuotaApplicationsForTemplateResponse; } diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetProductQuotaResponseUnmarshaller.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetProductQuotaResponseUnmarshaller.java index 60fe1da244..13ffcfa370 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetProductQuotaResponseUnmarshaller.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetProductQuotaResponseUnmarshaller.java @@ -21,6 +21,7 @@ import com.aliyuncs.quotas.model.v20200510.GetProductQuotaResponse.Quota; import com.aliyuncs.quotas.model.v20200510.GetProductQuotaResponse.Quota.Period; import com.aliyuncs.quotas.model.v20200510.GetProductQuotaResponse.Quota.QuotaItemsItem; +import com.aliyuncs.quotas.model.v20200510.GetProductQuotaResponse.Quota.UsageMetric; import java.util.Map; import com.aliyuncs.transform.UnmarshallerContext; @@ -50,6 +51,7 @@ public static GetProductQuotaResponse unmarshall(GetProductQuotaResponse getProd quota.setExpireTime(_ctx.stringValue("GetProductQuotaResponse.Quota.ExpireTime")); quota.setQuotaCategory(_ctx.stringValue("GetProductQuotaResponse.Quota.QuotaCategory")); quota.setApplyReasonTips(_ctx.stringValue("GetProductQuotaResponse.Quota.ApplyReasonTips")); + quota.setGlobalQuota(_ctx.booleanValue("GetProductQuotaResponse.Quota.GlobalQuota")); List applicableRange = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("GetProductQuotaResponse.Quota.ApplicableRange.Length"); i++) { @@ -68,6 +70,12 @@ public static GetProductQuotaResponse unmarshall(GetProductQuotaResponse getProd period.setPeriodUnit(_ctx.stringValue("GetProductQuotaResponse.Quota.Period.PeriodUnit")); quota.setPeriod(period); + UsageMetric usageMetric = new UsageMetric(); + usageMetric.setMetricNamespace(_ctx.stringValue("GetProductQuotaResponse.Quota.UsageMetric.MetricNamespace")); + usageMetric.setMetricName(_ctx.stringValue("GetProductQuotaResponse.Quota.UsageMetric.MetricName")); + usageMetric.setMetricDimensions(_ctx.mapValue("GetProductQuotaResponse.Quota.UsageMetric.MetricDimensions")); + quota.setUsageMetric(usageMetric); + List quotaItems = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("GetProductQuotaResponse.Quota.QuotaItems.Length"); i++) { QuotaItemsItem quotaItemsItem = new QuotaItemsItem(); diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetQuotaApplicationApprovalResponseUnmarshaller.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetQuotaApplicationApprovalResponseUnmarshaller.java new file mode 100644 index 0000000000..bbe31c5199 --- /dev/null +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/GetQuotaApplicationApprovalResponseUnmarshaller.java @@ -0,0 +1,53 @@ +/* + * Licensed 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. + */ + +package com.aliyuncs.quotas.transform.v20200510; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.quotas.model.v20200510.GetQuotaApplicationApprovalResponse; +import com.aliyuncs.quotas.model.v20200510.GetQuotaApplicationApprovalResponse.Module; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetQuotaApplicationApprovalResponseUnmarshaller { + + public static GetQuotaApplicationApprovalResponse unmarshall(GetQuotaApplicationApprovalResponse getQuotaApplicationApprovalResponse, UnmarshallerContext _ctx) { + + getQuotaApplicationApprovalResponse.setRequestId(_ctx.stringValue("GetQuotaApplicationApprovalResponse.RequestId")); + getQuotaApplicationApprovalResponse.setHttpStatusCode(_ctx.integerValue("GetQuotaApplicationApprovalResponse.HttpStatusCode")); + getQuotaApplicationApprovalResponse.setDynamicCode(_ctx.stringValue("GetQuotaApplicationApprovalResponse.DynamicCode")); + getQuotaApplicationApprovalResponse.setDynamicMessage(_ctx.stringValue("GetQuotaApplicationApprovalResponse.DynamicMessage")); + getQuotaApplicationApprovalResponse.setErrorMsg(_ctx.stringValue("GetQuotaApplicationApprovalResponse.ErrorMsg")); + getQuotaApplicationApprovalResponse.setErrorCode(_ctx.stringValue("GetQuotaApplicationApprovalResponse.ErrorCode")); + getQuotaApplicationApprovalResponse.setSuccess(_ctx.booleanValue("GetQuotaApplicationApprovalResponse.Success")); + getQuotaApplicationApprovalResponse.setAllowRetry(_ctx.booleanValue("GetQuotaApplicationApprovalResponse.AllowRetry")); + + List errorArgs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetQuotaApplicationApprovalResponse.ErrorArgs.Length"); i++) { + errorArgs.add(_ctx.stringValue("GetQuotaApplicationApprovalResponse.ErrorArgs["+ i +"]")); + } + getQuotaApplicationApprovalResponse.setErrorArgs(errorArgs); + + Module module = new Module(); + module.setApprovalHours(_ctx.integerValue("GetQuotaApplicationApprovalResponse.Module.ApprovalHours")); + module.setSupportReminder(_ctx.booleanValue("GetQuotaApplicationApprovalResponse.Module.SupportReminder")); + module.setUnsupportReminderReason(_ctx.stringValue("GetQuotaApplicationApprovalResponse.Module.UnsupportReminderReason")); + module.setReminderIntervalHours(_ctx.integerValue("GetQuotaApplicationApprovalResponse.Module.ReminderIntervalHours")); + getQuotaApplicationApprovalResponse.setModule(module); + + return getQuotaApplicationApprovalResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotaDimensionsResponseUnmarshaller.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotaDimensionsResponseUnmarshaller.java index d0f371e9c5..08e78da8d3 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotaDimensionsResponseUnmarshaller.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotaDimensionsResponseUnmarshaller.java @@ -19,7 +19,8 @@ import com.aliyuncs.quotas.model.v20200510.ListProductQuotaDimensionsResponse; import com.aliyuncs.quotas.model.v20200510.ListProductQuotaDimensionsResponse.QuotaDimensionsItem; -import com.aliyuncs.quotas.model.v20200510.ListProductQuotaDimensionsResponse.QuotaDimensionsItem.DimensionValueDetailItem; +import com.aliyuncs.quotas.model.v20200510.ListProductQuotaDimensionsResponse.QuotaDimensionsItem.DimensionValueDetailItem; +import com.aliyuncs.quotas.model.v20200510.ListProductQuotaDimensionsResponse.QuotaDimensionsItem.DimensionValueDetailItem.DependentDimension; import com.aliyuncs.transform.UnmarshallerContext; @@ -57,6 +58,16 @@ public static ListProductQuotaDimensionsResponse unmarshall(ListProductQuotaDime dimensionValueDetailItem.setName(_ctx.stringValue("ListProductQuotaDimensionsResponse.QuotaDimensions["+ i +"].DimensionValueDetail["+ j +"].Name")); dimensionValueDetailItem.setValue(_ctx.stringValue("ListProductQuotaDimensionsResponse.QuotaDimensions["+ i +"].DimensionValueDetail["+ j +"].Value")); + List dependentDimensions1 = new ArrayList(); + for (int k = 0; k < _ctx.lengthValue("ListProductQuotaDimensionsResponse.QuotaDimensions["+ i +"].DimensionValueDetail["+ j +"].DependentDimensions.Length"); k++) { + DependentDimension dependentDimension = new DependentDimension(); + dependentDimension.setKey(_ctx.stringValue("ListProductQuotaDimensionsResponse.QuotaDimensions["+ i +"].DimensionValueDetail["+ j +"].DependentDimensions["+ k +"].Key")); + dependentDimension.setValue(_ctx.stringValue("ListProductQuotaDimensionsResponse.QuotaDimensions["+ i +"].DimensionValueDetail["+ j +"].DependentDimensions["+ k +"].Value")); + + dependentDimensions1.add(dependentDimension); + } + dimensionValueDetailItem.setDependentDimensions1(dependentDimensions1); + dimensionValueDetail.add(dimensionValueDetailItem); } quotaDimensionsItem.setDimensionValueDetail(dimensionValueDetail); diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotasResponseUnmarshaller.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotasResponseUnmarshaller.java index 71f74321b4..9c0d0e11d8 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotasResponseUnmarshaller.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListProductQuotasResponseUnmarshaller.java @@ -21,6 +21,7 @@ import com.aliyuncs.quotas.model.v20200510.ListProductQuotasResponse.QuotasItem; import com.aliyuncs.quotas.model.v20200510.ListProductQuotasResponse.QuotasItem.Period; import com.aliyuncs.quotas.model.v20200510.ListProductQuotasResponse.QuotasItem.QuotaItemsItem; +import com.aliyuncs.quotas.model.v20200510.ListProductQuotasResponse.QuotasItem.UsageMetric; import java.util.Map; import com.aliyuncs.transform.UnmarshallerContext; @@ -55,6 +56,7 @@ public static ListProductQuotasResponse unmarshall(ListProductQuotasResponse lis quotasItem.setExpireTime(_ctx.stringValue("ListProductQuotasResponse.Quotas["+ i +"].ExpireTime")); quotasItem.setQuotaCategory(_ctx.stringValue("ListProductQuotasResponse.Quotas["+ i +"].QuotaCategory")); quotasItem.setApplyReasonTips(_ctx.stringValue("ListProductQuotasResponse.Quotas["+ i +"].ApplyReasonTips")); + quotasItem.setGlobalQuota(_ctx.booleanValue("ListProductQuotasResponse.Quotas["+ i +"].GlobalQuota")); List applicableRange = new ArrayList(); for (int j = 0; j < _ctx.lengthValue("ListProductQuotasResponse.Quotas["+ i +"].ApplicableRange.Length"); j++) { @@ -73,6 +75,12 @@ public static ListProductQuotasResponse unmarshall(ListProductQuotasResponse lis period.setPeriodUnit(_ctx.stringValue("ListProductQuotasResponse.Quotas["+ i +"].Period.PeriodUnit")); quotasItem.setPeriod(period); + UsageMetric usageMetric = new UsageMetric(); + usageMetric.setMetricNamespace(_ctx.stringValue("ListProductQuotasResponse.Quotas["+ i +"].UsageMetric.MetricNamespace")); + usageMetric.setMetricName(_ctx.stringValue("ListProductQuotasResponse.Quotas["+ i +"].UsageMetric.MetricName")); + usageMetric.setMetricDimensions(_ctx.mapValue("ListProductQuotasResponse.Quotas["+ i +"].UsageMetric.MetricDimensions")); + quotasItem.setUsageMetric(usageMetric); + List quotaItems = new ArrayList(); for (int j = 0; j < _ctx.lengthValue("ListProductQuotasResponse.Quotas["+ i +"].QuotaItems.Length"); j++) { QuotaItemsItem quotaItemsItem = new QuotaItemsItem(); diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListQuotaApplicationsForTemplateResponseUnmarshaller.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListQuotaApplicationsForTemplateResponseUnmarshaller.java index 5185c0190a..d3d86a08df 100644 --- a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListQuotaApplicationsForTemplateResponseUnmarshaller.java +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/ListQuotaApplicationsForTemplateResponseUnmarshaller.java @@ -45,6 +45,13 @@ public static ListQuotaApplicationsForTemplateResponse unmarshall(ListQuotaAppli quotaBatchApplicationsItem.setDesireValue(_ctx.doubleValue("ListQuotaApplicationsForTemplateResponse.QuotaBatchApplications["+ i +"].DesireValue")); quotaBatchApplicationsItem.setQuotaCategory(_ctx.stringValue("ListQuotaApplicationsForTemplateResponse.QuotaBatchApplications["+ i +"].QuotaCategory")); quotaBatchApplicationsItem.setDimensions(_ctx.mapValue("ListQuotaApplicationsForTemplateResponse.QuotaBatchApplications["+ i +"].Dimensions")); + quotaBatchApplicationsItem.setReason(_ctx.stringValue("ListQuotaApplicationsForTemplateResponse.QuotaBatchApplications["+ i +"].Reason")); + + List aliyunUids = new ArrayList(); + for (int j = 0; j < _ctx.lengthValue("ListQuotaApplicationsForTemplateResponse.QuotaBatchApplications["+ i +"].AliyunUids.Length"); j++) { + aliyunUids.add(_ctx.stringValue("ListQuotaApplicationsForTemplateResponse.QuotaBatchApplications["+ i +"].AliyunUids["+ j +"]")); + } + quotaBatchApplicationsItem.setAliyunUids(aliyunUids); List auditStatusVos = new ArrayList(); for (int j = 0; j < _ctx.lengthValue("ListQuotaApplicationsForTemplateResponse.QuotaBatchApplications["+ i +"].AuditStatusVos.Length"); j++) { diff --git a/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/RemindQuotaApplicationApprovalResponseUnmarshaller.java b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/RemindQuotaApplicationApprovalResponseUnmarshaller.java new file mode 100644 index 0000000000..be28b52f5b --- /dev/null +++ b/aliyun-java-sdk-quotas/src/main/java/com/aliyuncs/quotas/transform/v20200510/RemindQuotaApplicationApprovalResponseUnmarshaller.java @@ -0,0 +1,46 @@ +/* + * Licensed 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. + */ + +package com.aliyuncs.quotas.transform.v20200510; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.quotas.model.v20200510.RemindQuotaApplicationApprovalResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RemindQuotaApplicationApprovalResponseUnmarshaller { + + public static RemindQuotaApplicationApprovalResponse unmarshall(RemindQuotaApplicationApprovalResponse remindQuotaApplicationApprovalResponse, UnmarshallerContext _ctx) { + + remindQuotaApplicationApprovalResponse.setRequestId(_ctx.stringValue("RemindQuotaApplicationApprovalResponse.RequestId")); + remindQuotaApplicationApprovalResponse.setHttpStatusCode(_ctx.integerValue("RemindQuotaApplicationApprovalResponse.HttpStatusCode")); + remindQuotaApplicationApprovalResponse.setDynamicCode(_ctx.stringValue("RemindQuotaApplicationApprovalResponse.DynamicCode")); + remindQuotaApplicationApprovalResponse.setDynamicMessage(_ctx.stringValue("RemindQuotaApplicationApprovalResponse.DynamicMessage")); + remindQuotaApplicationApprovalResponse.setErrorMsg(_ctx.stringValue("RemindQuotaApplicationApprovalResponse.ErrorMsg")); + remindQuotaApplicationApprovalResponse.setErrorCode(_ctx.stringValue("RemindQuotaApplicationApprovalResponse.ErrorCode")); + remindQuotaApplicationApprovalResponse.setSuccess(_ctx.booleanValue("RemindQuotaApplicationApprovalResponse.Success")); + remindQuotaApplicationApprovalResponse.setModule(_ctx.stringValue("RemindQuotaApplicationApprovalResponse.Module")); + remindQuotaApplicationApprovalResponse.setAllowRetry(_ctx.booleanValue("RemindQuotaApplicationApprovalResponse.AllowRetry")); + + List errorArgs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("RemindQuotaApplicationApprovalResponse.ErrorArgs.Length"); i++) { + errorArgs.add(_ctx.stringValue("RemindQuotaApplicationApprovalResponse.ErrorArgs["+ i +"]")); + } + remindQuotaApplicationApprovalResponse.setErrorArgs(errorArgs); + + return remindQuotaApplicationApprovalResponse; + } +} \ No newline at end of file