Skip to content

Commit 7438400

Browse files
author
SDK Automation
committed
Generated from addfb1fa4ed6f546c1215840edfb98a3188ac1d7
fix spacing
1 parent 11119d0 commit 7438400

File tree

8 files changed

+86
-34
lines changed

8 files changed

+86
-34
lines changed

sdk/policy/mgmt-v2016_12_01/pom.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.3.0</version>
14+
<version>1.1.0</version>
1515
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-policy</artifactId>
18-
<version>1.0.0-beta-2</version>
18+
<version>1.0.0-beta</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for Authorization Management</name>
2121
<description>This package contains Microsoft Authorization Management SDK.</description>
22-
<url>https://github.com/Azure/azure-libraries-for-java</url>
22+
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323
<licenses>
2424
<license>
2525
<name>The MIT License (MIT)</name>
@@ -28,8 +28,8 @@
2828
</license>
2929
</licenses>
3030
<scm>
31-
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
32-
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
31+
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
32+
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
3333
<tag>HEAD</tag>
3434
</scm>
3535
<properties>
@@ -71,6 +71,8 @@
7171
<artifactId>azure-arm-client-runtime</artifactId>
7272
<type>test-jar</type>
7373
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
7476
</dependency>
7577
</dependencies>
7678
<build>

sdk/policy/mgmt-v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignment.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ interface Blank extends WithScope {
8484
interface WithScope {
8585
/**
8686
* Specifies scope.
87+
* @param scope The scope of the policy assignment
88+
* @return the next definition stage
8789
*/
8890
WithCreate withScope(String scope);
8991
}
@@ -94,6 +96,8 @@ interface WithScope {
9496
interface WithDescription {
9597
/**
9698
* Specifies description.
99+
* @param description This message will be part of response in case of policy violation
100+
* @return the next definition stage
97101
*/
98102
WithCreate withDescription(String description);
99103
}
@@ -104,6 +108,8 @@ interface WithDescription {
104108
interface WithDisplayName {
105109
/**
106110
* Specifies displayName.
111+
* @param displayName The display name of the policy assignment
112+
* @return the next definition stage
107113
*/
108114
WithCreate withDisplayName(String displayName);
109115
}
@@ -114,6 +120,8 @@ interface WithDisplayName {
114120
interface WithParameters {
115121
/**
116122
* Specifies parameters.
123+
* @param parameters Required if a parameter is used in policy rule
124+
* @return the next definition stage
117125
*/
118126
WithCreate withParameters(Object parameters);
119127
}
@@ -124,6 +132,8 @@ interface WithParameters {
124132
interface WithPolicyDefinitionId {
125133
/**
126134
* Specifies policyDefinitionId.
135+
* @param policyDefinitionId The ID of the policy definition
136+
* @return the next definition stage
127137
*/
128138
WithCreate withPolicyDefinitionId(String policyDefinitionId);
129139
}
@@ -134,6 +144,8 @@ interface WithPolicyDefinitionId {
134144
interface WithScopeProperty {
135145
/**
136146
* Specifies scopeProperty.
147+
* @param scopeProperty The scope for the policy assignment
148+
* @return the next definition stage
137149
*/
138150
WithCreate withScopeProperty(String scopeProperty);
139151
}
@@ -162,6 +174,8 @@ interface UpdateStages {
162174
interface WithDescription {
163175
/**
164176
* Specifies description.
177+
* @param description This message will be part of response in case of policy violation
178+
* @return the next update stage
165179
*/
166180
Update withDescription(String description);
167181
}
@@ -172,6 +186,8 @@ interface WithDescription {
172186
interface WithDisplayName {
173187
/**
174188
* Specifies displayName.
189+
* @param displayName The display name of the policy assignment
190+
* @return the next update stage
175191
*/
176192
Update withDisplayName(String displayName);
177193
}
@@ -182,6 +198,8 @@ interface WithDisplayName {
182198
interface WithParameters {
183199
/**
184200
* Specifies parameters.
201+
* @param parameters Required if a parameter is used in policy rule
202+
* @return the next update stage
185203
*/
186204
Update withParameters(Object parameters);
187205
}
@@ -192,6 +210,8 @@ interface WithParameters {
192210
interface WithPolicyDefinitionId {
193211
/**
194212
* Specifies policyDefinitionId.
213+
* @param policyDefinitionId The ID of the policy definition
214+
* @return the next update stage
195215
*/
196216
Update withPolicyDefinitionId(String policyDefinitionId);
197217
}
@@ -202,6 +222,8 @@ interface WithPolicyDefinitionId {
202222
interface WithScopeProperty {
203223
/**
204224
* Specifies scopeProperty.
225+
* @param scopeProperty The scope for the policy assignment
226+
* @return the next update stage
205227
*/
206228
Update withScopeProperty(String scopeProperty);
207229
}

sdk/policy/mgmt-v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyAssignments.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public interface PolicyAssignments extends SupportsCreating<PolicyAssignment.Def
5656

5757
/**
5858
* Deletes a policy assignment by ID.
59-
* 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.
59+
* 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.
6060
*
6161
* @param policyAssignmentId The ID of the policy assignment to delete. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
6262
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -66,7 +66,7 @@ public interface PolicyAssignments extends SupportsCreating<PolicyAssignment.Def
6666

6767
/**
6868
* Creates a policy assignment by ID.
69-
* 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.
69+
* 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.
7070
*
7171
* @param policyAssignmentId The ID of the policy assignment to create. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
7272
* @param parameters Parameters for policy assignment.
@@ -77,7 +77,7 @@ public interface PolicyAssignments extends SupportsCreating<PolicyAssignment.Def
7777

7878
/**
7979
* Gets a policy assignment by ID.
80-
* 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.
80+
* 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.
8181
*
8282
* @param policyAssignmentId The ID of the policy assignment to get. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
8383
* @throws IllegalArgumentException thrown if parameters fail the validation

sdk/policy/mgmt-v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/PolicyDefinition.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ interface Blank extends WithCreate {
8989
interface WithDescription {
9090
/**
9191
* Specifies description.
92+
* @param description The policy definition description
93+
* @return the next definition stage
9294
*/
9395
WithCreate withDescription(String description);
9496
}
@@ -99,6 +101,8 @@ interface WithDescription {
99101
interface WithDisplayName {
100102
/**
101103
* Specifies displayName.
104+
* @param displayName The display name of the policy definition
105+
* @return the next definition stage
102106
*/
103107
WithCreate withDisplayName(String displayName);
104108
}
@@ -109,6 +113,8 @@ interface WithDisplayName {
109113
interface WithMetadata {
110114
/**
111115
* Specifies metadata.
116+
* @param metadata The policy definition metadata
117+
* @return the next definition stage
112118
*/
113119
WithCreate withMetadata(Object metadata);
114120
}
@@ -119,6 +125,8 @@ interface WithMetadata {
119125
interface WithMode {
120126
/**
121127
* Specifies mode.
128+
* @param mode The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', 'All'
129+
* @return the next definition stage
122130
*/
123131
WithCreate withMode(PolicyMode mode);
124132
}
@@ -129,6 +137,8 @@ interface WithMode {
129137
interface WithParameters {
130138
/**
131139
* Specifies parameters.
140+
* @param parameters Required if a parameter is used in policy rule
141+
* @return the next definition stage
132142
*/
133143
WithCreate withParameters(Object parameters);
134144
}
@@ -139,6 +149,8 @@ interface WithParameters {
139149
interface WithPolicyRule {
140150
/**
141151
* Specifies policyRule.
152+
* @param policyRule The policy rule
153+
* @return the next definition stage
142154
*/
143155
WithCreate withPolicyRule(Object policyRule);
144156
}
@@ -149,6 +161,8 @@ interface WithPolicyRule {
149161
interface WithPolicyType {
150162
/**
151163
* Specifies policyType.
164+
* @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom'
165+
* @return the next definition stage
152166
*/
153167
WithCreate withPolicyType(PolicyType policyType);
154168
}
@@ -177,6 +191,8 @@ interface UpdateStages {
177191
interface WithDescription {
178192
/**
179193
* Specifies description.
194+
* @param description The policy definition description
195+
* @return the next update stage
180196
*/
181197
Update withDescription(String description);
182198
}
@@ -187,6 +203,8 @@ interface WithDescription {
187203
interface WithDisplayName {
188204
/**
189205
* Specifies displayName.
206+
* @param displayName The display name of the policy definition
207+
* @return the next update stage
190208
*/
191209
Update withDisplayName(String displayName);
192210
}
@@ -197,6 +215,8 @@ interface WithDisplayName {
197215
interface WithMetadata {
198216
/**
199217
* Specifies metadata.
218+
* @param metadata The policy definition metadata
219+
* @return the next update stage
200220
*/
201221
Update withMetadata(Object metadata);
202222
}
@@ -207,6 +227,8 @@ interface WithMetadata {
207227
interface WithMode {
208228
/**
209229
* Specifies mode.
230+
* @param mode The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', 'All'
231+
* @return the next update stage
210232
*/
211233
Update withMode(PolicyMode mode);
212234
}
@@ -217,6 +239,8 @@ interface WithMode {
217239
interface WithParameters {
218240
/**
219241
* Specifies parameters.
242+
* @param parameters Required if a parameter is used in policy rule
243+
* @return the next update stage
220244
*/
221245
Update withParameters(Object parameters);
222246
}
@@ -227,6 +251,8 @@ interface WithParameters {
227251
interface WithPolicyRule {
228252
/**
229253
* Specifies policyRule.
254+
* @param policyRule The policy rule
255+
* @return the next update stage
230256
*/
231257
Update withPolicyRule(Object policyRule);
232258
}
@@ -237,6 +263,8 @@ interface WithPolicyRule {
237263
interface WithPolicyType {
238264
/**
239265
* Specifies policyType.
266+
* @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom'
267+
* @return the next update stage
240268
*/
241269
Update withPolicyType(PolicyType policyType);
242270
}

sdk/policy/mgmt-v2016_12_01/src/main/java/com/microsoft/azure/management/policy/v2016_12_01/implementation/PolicyAssignmentImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ class PolicyAssignmentImpl extends CreatableUpdatableImpl<PolicyAssignment, Poli
3131
this.manager = manager;
3232
// Set resource name
3333
this.policyAssignmentName = inner.name();
34-
// resource ancestor names
34+
// set resource ancestor and positional variables
3535
this.policyAssignmentName = IdParsingUtils.getValueFromIdByName(inner.id(), "policyAssignments");
3636
this.scope = IdParsingUtils.getValueFromIdByPosition(inner.id(), 0);
37-
//
37+
// set other parameters for create and update
3838
}
3939

4040
@Override

0 commit comments

Comments
 (0)