From 1bb4caaac992a7e6ed5787adc63a5026efc75a96 Mon Sep 17 00:00:00 2001 From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com> Date: Wed, 28 Aug 2019 00:57:50 +0000 Subject: [PATCH] Generated from edd74f0a1be6f17caa185525a63e594aef956acc (#224) Addressed review comments. --- policy/resource-manager/v2016_12_01/pom.xml | 12 ++++---- .../policy/v2016_12_01/PolicyAssignment.java | 22 +++++++++++++++ .../policy/v2016_12_01/PolicyAssignments.java | 6 ++-- .../policy/v2016_12_01/PolicyDefinition.java | 28 +++++++++++++++++++ .../implementation/PolicyAssignmentImpl.java | 4 +-- .../PolicyAssignmentsInner.java | 24 ++++++++-------- .../implementation/PolicyClientImpl.java | 20 ++++++------- .../implementation/PolicyDefinitionImpl.java | 4 +-- 8 files changed, 85 insertions(+), 35 deletions(-) diff --git a/policy/resource-manager/v2016_12_01/pom.xml b/policy/resource-manager/v2016_12_01/pom.xml index 4f52a022e5c78..6245e5813d113 100644 --- a/policy/resource-manager/v2016_12_01/pom.xml +++ b/policy/resource-manager/v2016_12_01/pom.xml @@ -11,15 +11,15 @@ com.microsoft.azure azure-arm-parent - 1.1.0 - ../../../pom.management.xml + 0.0.3-beta + ../../../pom.xml azure-mgmt-policy - 1.0.0-beta-1 + 1.0.0-beta jar Microsoft Azure SDK for Authorization Management This package contains Microsoft Authorization Management SDK. - https://github.com/Azure/azure-libraries-for-java + https://github.com/Azure/azure-sdk-for-java The MIT License (MIT) @@ -28,8 +28,8 @@ - scm:git:https://github.com/Azure/azure-libraries-for-java - scm:git:git@github.com:Azure/azure-libraries-for-java.git + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git HEAD diff --git a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignment.java b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignment.java index e682d922d322b..53125a6564f9f 100644 --- a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignment.java +++ b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignment.java @@ -84,6 +84,8 @@ interface Blank extends WithScope { interface WithScope { /** * Specifies scope. + * @param scope The scope of the policy assignment + * @return the next definition stage */ WithCreate withScope(String scope); } @@ -94,6 +96,8 @@ interface WithScope { interface WithDescription { /** * Specifies description. + * @param description This message will be part of response in case of policy violation + * @return the next definition stage */ WithCreate withDescription(String description); } @@ -104,6 +108,8 @@ interface WithDescription { interface WithDisplayName { /** * Specifies displayName. + * @param displayName The display name of the policy assignment + * @return the next definition stage */ WithCreate withDisplayName(String displayName); } @@ -114,6 +120,8 @@ interface WithDisplayName { interface WithParameters { /** * Specifies parameters. + * @param parameters Required if a parameter is used in policy rule + * @return the next definition stage */ WithCreate withParameters(Object parameters); } @@ -124,6 +132,8 @@ interface WithParameters { interface WithPolicyDefinitionId { /** * Specifies policyDefinitionId. + * @param policyDefinitionId The ID of the policy definition + * @return the next definition stage */ WithCreate withPolicyDefinitionId(String policyDefinitionId); } @@ -134,6 +144,8 @@ interface WithPolicyDefinitionId { interface WithScopeProperty { /** * Specifies scopeProperty. + * @param scopeProperty The scope for the policy assignment + * @return the next definition stage */ WithCreate withScopeProperty(String scopeProperty); } @@ -162,6 +174,8 @@ interface UpdateStages { interface WithDescription { /** * Specifies description. + * @param description This message will be part of response in case of policy violation + * @return the next update stage */ Update withDescription(String description); } @@ -172,6 +186,8 @@ interface WithDescription { interface WithDisplayName { /** * Specifies displayName. + * @param displayName The display name of the policy assignment + * @return the next update stage */ Update withDisplayName(String displayName); } @@ -182,6 +198,8 @@ interface WithDisplayName { interface WithParameters { /** * Specifies parameters. + * @param parameters Required if a parameter is used in policy rule + * @return the next update stage */ Update withParameters(Object parameters); } @@ -192,6 +210,8 @@ interface WithParameters { interface WithPolicyDefinitionId { /** * Specifies policyDefinitionId. + * @param policyDefinitionId The ID of the policy definition + * @return the next update stage */ Update withPolicyDefinitionId(String policyDefinitionId); } @@ -202,6 +222,8 @@ interface WithPolicyDefinitionId { interface WithScopeProperty { /** * Specifies scopeProperty. + * @param scopeProperty The scope for the policy assignment + * @return the next update stage */ Update withScopeProperty(String scopeProperty); } diff --git a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignments.java b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignments.java index cabdc102fa344..9e9ecbad2ce1f 100644 --- a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignments.java +++ b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignments.java @@ -56,7 +56,7 @@ public interface PolicyAssignments extends SupportsCreating> listDelegate(Response deleteByIdAsync(String policyAssignm /** * Deletes a policy assignment by ID. - * When providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. + * When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. * * @param policyAssignmentId The ID of the policy assignment to delete. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1156,7 +1156,7 @@ public PolicyAssignmentInner call(ServiceResponse respons /** * Deletes a policy assignment by ID. - * When providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. + * When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. * * @param policyAssignmentId The ID of the policy assignment to delete. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1192,7 +1192,7 @@ private ServiceResponse deleteByIdDelegate(Response createByIdAsync(String policyAssignm /** * Creates a policy assignment by ID. - * Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. + * Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. * * @param policyAssignmentId The ID of the policy assignment to create. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. * @param parameters Parameters for policy assignment. @@ -1239,7 +1239,7 @@ public PolicyAssignmentInner call(ServiceResponse respons /** * Creates a policy assignment by ID. - * Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. + * Policy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the group. When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. * * @param policyAssignmentId The ID of the policy assignment to create. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. * @param parameters Parameters for policy assignment. @@ -1280,7 +1280,7 @@ private ServiceResponse createByIdDelegate(Response getByIdAsync(String policyAssignment /** * Gets a policy assignment by ID. - * When providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. + * When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. * * @param policyAssignmentId The ID of the policy assignment to get. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1324,7 +1324,7 @@ public PolicyAssignmentInner call(ServiceResponse respons /** * Gets a policy assignment by ID. - * When providing a scope for the assigment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. + * When providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions, '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for resource groups, and '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}' for resources. * * @param policyAssignmentId The ID of the policy assignment to get. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'. * @throws IllegalArgumentException thrown if parameters fail the validation diff --git a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyClientImpl.java b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyClientImpl.java index 3dde62ee59924..71ccaf379d555 100644 --- a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyClientImpl.java +++ b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyClientImpl.java @@ -63,11 +63,11 @@ public String apiVersion() { return this.apiVersion; } - /** Gets or sets the preferred language for the response. */ + /** The preferred language for the response. */ private String acceptLanguage; /** - * Gets Gets or sets the preferred language for the response. + * Gets The preferred language for the response. * * @return the acceptLanguage value. */ @@ -76,7 +76,7 @@ public String acceptLanguage() { } /** - * Sets Gets or sets the preferred language for the response. + * Sets The preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself @@ -86,11 +86,11 @@ public PolicyClientImpl withAcceptLanguage(String acceptLanguage) { return this; } - /** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */ + /** The retry timeout in seconds for Long Running Operations. Default value is 30. */ private int longRunningOperationRetryTimeout; /** - * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Gets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */ @@ -99,7 +99,7 @@ public int longRunningOperationRetryTimeout() { } /** - * Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * Sets The retry timeout in seconds for Long Running Operations. Default value is 30. * * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself @@ -109,11 +109,11 @@ public PolicyClientImpl withLongRunningOperationRetryTimeout(int longRunningOper return this; } - /** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ + /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ private boolean generateClientRequestId; /** - * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @return the generateClientRequestId value. */ @@ -122,7 +122,7 @@ public boolean generateClientRequestId() { } /** - * Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself @@ -205,6 +205,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "PolicyClient", "2016-12-01"); + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "PolicyClient", "2016-12-01"); } } diff --git a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyDefinitionImpl.java b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyDefinitionImpl.java index 9bb8daa067261..6edb014a0d0f8 100644 --- a/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyDefinitionImpl.java +++ b/policy/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyDefinitionImpl.java @@ -32,9 +32,9 @@ class PolicyDefinitionImpl extends CreatableUpdatableImpl