Skip to content

Commit 9668068

Browse files
author
SDK Automation
committed
Generated from ee67e477dc606aea359b5055aae86e11ce1542f8
Add read only according to comment.
1 parent 04f5f53 commit 9668068

File tree

11 files changed

+153
-67
lines changed

11 files changed

+153
-67
lines changed

sdk/policy/mgmt-v2018_03_01/pom.xml

Lines changed: 6 additions & 4 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.2.0</version>
14+
<version>1.1.0</version>
1515
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-policy</artifactId>
1818
<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-v2018_03_01/src/main/java/com/microsoft/azure/management/policy/v2018_03_01/ErrorResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import com.fasterxml.jackson.annotation.JsonProperty;
1212

1313
/**
14-
* Error reponse indicates Azure Resource Manager is not able to process the
14+
* Error response indicates Azure Resource Manager is not able to process the
1515
* incoming request. The reason is provided in the error message.
1616
*/
1717
public class ErrorResponse {

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ interface Blank extends WithScope {
100100
interface WithScope {
101101
/**
102102
* Specifies scope.
103+
* @param scope The scope of the policy assignment. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'
104+
* @return the next definition stage
103105
*/
104106
WithCreate withScope(String scope);
105107
}
@@ -110,6 +112,8 @@ interface WithScope {
110112
interface WithDescription {
111113
/**
112114
* Specifies description.
115+
* @param description This message will be part of response in case of policy violation
116+
* @return the next definition stage
113117
*/
114118
WithCreate withDescription(String description);
115119
}
@@ -120,6 +124,8 @@ interface WithDescription {
120124
interface WithDisplayName {
121125
/**
122126
* Specifies displayName.
127+
* @param displayName The display name of the policy assignment
128+
* @return the next definition stage
123129
*/
124130
WithCreate withDisplayName(String displayName);
125131
}
@@ -130,6 +136,8 @@ interface WithDisplayName {
130136
interface WithMetadata {
131137
/**
132138
* Specifies metadata.
139+
* @param metadata The policy assignment metadata
140+
* @return the next definition stage
133141
*/
134142
WithCreate withMetadata(Object metadata);
135143
}
@@ -140,6 +148,8 @@ interface WithMetadata {
140148
interface WithNotScopes {
141149
/**
142150
* Specifies notScopes.
151+
* @param notScopes The policy's excluded scopes
152+
* @return the next definition stage
143153
*/
144154
WithCreate withNotScopes(List<String> notScopes);
145155
}
@@ -150,6 +160,8 @@ interface WithNotScopes {
150160
interface WithParameters {
151161
/**
152162
* Specifies parameters.
163+
* @param parameters Required if a parameter is used in policy rule
164+
* @return the next definition stage
153165
*/
154166
WithCreate withParameters(Object parameters);
155167
}
@@ -160,6 +172,8 @@ interface WithParameters {
160172
interface WithPolicyDefinitionId {
161173
/**
162174
* Specifies policyDefinitionId.
175+
* @param policyDefinitionId The ID of the policy definition or policy set definition being assigned
176+
* @return the next definition stage
163177
*/
164178
WithCreate withPolicyDefinitionId(String policyDefinitionId);
165179
}
@@ -170,6 +184,8 @@ interface WithPolicyDefinitionId {
170184
interface WithScopeProperty {
171185
/**
172186
* Specifies scopeProperty.
187+
* @param scopeProperty The scope for the policy assignment
188+
* @return the next definition stage
173189
*/
174190
WithCreate withScopeProperty(String scopeProperty);
175191
}
@@ -180,6 +196,8 @@ interface WithScopeProperty {
180196
interface WithSku {
181197
/**
182198
* Specifies sku.
199+
* @param sku The policy sku. This property is optional, obsolete, and will be ignored
200+
* @return the next definition stage
183201
*/
184202
WithCreate withSku(PolicySku sku);
185203
}
@@ -208,6 +226,8 @@ interface UpdateStages {
208226
interface WithDescription {
209227
/**
210228
* Specifies description.
229+
* @param description This message will be part of response in case of policy violation
230+
* @return the next update stage
211231
*/
212232
Update withDescription(String description);
213233
}
@@ -218,6 +238,8 @@ interface WithDescription {
218238
interface WithDisplayName {
219239
/**
220240
* Specifies displayName.
241+
* @param displayName The display name of the policy assignment
242+
* @return the next update stage
221243
*/
222244
Update withDisplayName(String displayName);
223245
}
@@ -228,6 +250,8 @@ interface WithDisplayName {
228250
interface WithMetadata {
229251
/**
230252
* Specifies metadata.
253+
* @param metadata The policy assignment metadata
254+
* @return the next update stage
231255
*/
232256
Update withMetadata(Object metadata);
233257
}
@@ -238,6 +262,8 @@ interface WithMetadata {
238262
interface WithNotScopes {
239263
/**
240264
* Specifies notScopes.
265+
* @param notScopes The policy's excluded scopes
266+
* @return the next update stage
241267
*/
242268
Update withNotScopes(List<String> notScopes);
243269
}
@@ -248,6 +274,8 @@ interface WithNotScopes {
248274
interface WithParameters {
249275
/**
250276
* Specifies parameters.
277+
* @param parameters Required if a parameter is used in policy rule
278+
* @return the next update stage
251279
*/
252280
Update withParameters(Object parameters);
253281
}
@@ -258,6 +286,8 @@ interface WithParameters {
258286
interface WithPolicyDefinitionId {
259287
/**
260288
* Specifies policyDefinitionId.
289+
* @param policyDefinitionId The ID of the policy definition or policy set definition being assigned
290+
* @return the next update stage
261291
*/
262292
Update withPolicyDefinitionId(String policyDefinitionId);
263293
}
@@ -268,6 +298,8 @@ interface WithPolicyDefinitionId {
268298
interface WithScopeProperty {
269299
/**
270300
* Specifies scopeProperty.
301+
* @param scopeProperty The scope for the policy assignment
302+
* @return the next update stage
271303
*/
272304
Update withScopeProperty(String scopeProperty);
273305
}
@@ -278,6 +310,8 @@ interface WithScopeProperty {
278310
interface WithSku {
279311
/**
280312
* Specifies sku.
313+
* @param sku The policy sku. This property is optional, obsolete, and will be ignored
314+
* @return the next update stage
281315
*/
282316
Update withSku(PolicySku sku);
283317
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface PolicyAssignments extends SupportsCreating<PolicyAssignment.Def
4545

4646
/**
4747
* Retrieves all policy assignments that apply to a resource.
48-
* This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes only policy assignments that apply to the resource and assign the policy definition whose id is {value}. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').
48+
* This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').
4949
*
5050
* @param resourceGroupName The name of the resource group containing the resource.
5151
* @param resourceProviderNamespace The namespace of the resource provider. For example, the namespace of a virtual machine is Microsoft.Compute (from Microsoft.Compute/virtualMachines)

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ interface Blank extends WithCreate {
9494
interface WithDescription {
9595
/**
9696
* Specifies description.
97+
* @param description The policy definition description
98+
* @return the next definition stage
9799
*/
98100
WithCreate withDescription(String description);
99101
}
@@ -104,6 +106,8 @@ interface WithDescription {
104106
interface WithDisplayName {
105107
/**
106108
* Specifies displayName.
109+
* @param displayName The display name of the policy definition
110+
* @return the next definition stage
107111
*/
108112
WithCreate withDisplayName(String displayName);
109113
}
@@ -114,6 +118,8 @@ interface WithDisplayName {
114118
interface WithMetadata {
115119
/**
116120
* Specifies metadata.
121+
* @param metadata The policy definition metadata
122+
* @return the next definition stage
117123
*/
118124
WithCreate withMetadata(Object metadata);
119125
}
@@ -124,6 +130,8 @@ interface WithMetadata {
124130
interface WithMode {
125131
/**
126132
* Specifies mode.
133+
* @param mode The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', 'All'
134+
* @return the next definition stage
127135
*/
128136
WithCreate withMode(PolicyMode mode);
129137
}
@@ -134,6 +142,8 @@ interface WithMode {
134142
interface WithParameters {
135143
/**
136144
* Specifies parameters.
145+
* @param parameters Required if a parameter is used in policy rule
146+
* @return the next definition stage
137147
*/
138148
WithCreate withParameters(Object parameters);
139149
}
@@ -144,6 +154,8 @@ interface WithParameters {
144154
interface WithPolicyRule {
145155
/**
146156
* Specifies policyRule.
157+
* @param policyRule The policy rule
158+
* @return the next definition stage
147159
*/
148160
WithCreate withPolicyRule(Object policyRule);
149161
}
@@ -154,6 +166,8 @@ interface WithPolicyRule {
154166
interface WithPolicyType {
155167
/**
156168
* Specifies policyType.
169+
* @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom'
170+
* @return the next definition stage
157171
*/
158172
WithCreate withPolicyType(PolicyType policyType);
159173
}
@@ -182,6 +196,8 @@ interface UpdateStages {
182196
interface WithDescription {
183197
/**
184198
* Specifies description.
199+
* @param description The policy definition description
200+
* @return the next update stage
185201
*/
186202
Update withDescription(String description);
187203
}
@@ -192,6 +208,8 @@ interface WithDescription {
192208
interface WithDisplayName {
193209
/**
194210
* Specifies displayName.
211+
* @param displayName The display name of the policy definition
212+
* @return the next update stage
195213
*/
196214
Update withDisplayName(String displayName);
197215
}
@@ -202,6 +220,8 @@ interface WithDisplayName {
202220
interface WithMetadata {
203221
/**
204222
* Specifies metadata.
223+
* @param metadata The policy definition metadata
224+
* @return the next update stage
205225
*/
206226
Update withMetadata(Object metadata);
207227
}
@@ -212,6 +232,8 @@ interface WithMetadata {
212232
interface WithMode {
213233
/**
214234
* Specifies mode.
235+
* @param mode The policy definition mode. Possible values are NotSpecified, Indexed, and All. Possible values include: 'NotSpecified', 'Indexed', 'All'
236+
* @return the next update stage
215237
*/
216238
Update withMode(PolicyMode mode);
217239
}
@@ -222,6 +244,8 @@ interface WithMode {
222244
interface WithParameters {
223245
/**
224246
* Specifies parameters.
247+
* @param parameters Required if a parameter is used in policy rule
248+
* @return the next update stage
225249
*/
226250
Update withParameters(Object parameters);
227251
}
@@ -232,6 +256,8 @@ interface WithParameters {
232256
interface WithPolicyRule {
233257
/**
234258
* Specifies policyRule.
259+
* @param policyRule The policy rule
260+
* @return the next update stage
235261
*/
236262
Update withPolicyRule(Object policyRule);
237263
}
@@ -242,6 +268,8 @@ interface WithPolicyRule {
242268
interface WithPolicyType {
243269
/**
244270
* Specifies policyType.
271+
* @param policyType The type of policy definition. Possible values are NotSpecified, BuiltIn, and Custom. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom'
272+
* @return the next update stage
245273
*/
246274
Update withPolicyType(PolicyType policyType);
247275
}

0 commit comments

Comments
 (0)