Skip to content

Commit e26d5d9

Browse files
author
SDK Automation
committed
Generated from 1144249e38328c6892ac246382220254c63249af
1 parent 469f7af commit e26d5d9

37 files changed

+7240
-1219
lines changed

sdk/policyinsights/mgmt-v2019_10_01/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
1414
<version>1.1.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-policyinsights</artifactId>
1818
<version>1.0.0-beta</version>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.policyinsights.v2019_10_01;
10+
11+
import java.util.List;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* The check policy restrictions parameters describing the resource that is
16+
* being evaluated.
17+
*/
18+
public class CheckRestrictionsRequest {
19+
/**
20+
* The information about the resource that will be evaluated.
21+
*/
22+
@JsonProperty(value = "resourceDetails", required = true)
23+
private CheckRestrictionsResourceDetails resourceDetails;
24+
25+
/**
26+
* The list of fields and values that should be evaluated for potential
27+
* restrictions.
28+
*/
29+
@JsonProperty(value = "pendingFields")
30+
private List<PendingField> pendingFields;
31+
32+
/**
33+
* Get the information about the resource that will be evaluated.
34+
*
35+
* @return the resourceDetails value
36+
*/
37+
public CheckRestrictionsResourceDetails resourceDetails() {
38+
return this.resourceDetails;
39+
}
40+
41+
/**
42+
* Set the information about the resource that will be evaluated.
43+
*
44+
* @param resourceDetails the resourceDetails value to set
45+
* @return the CheckRestrictionsRequest object itself.
46+
*/
47+
public CheckRestrictionsRequest withResourceDetails(CheckRestrictionsResourceDetails resourceDetails) {
48+
this.resourceDetails = resourceDetails;
49+
return this;
50+
}
51+
52+
/**
53+
* Get the list of fields and values that should be evaluated for potential restrictions.
54+
*
55+
* @return the pendingFields value
56+
*/
57+
public List<PendingField> pendingFields() {
58+
return this.pendingFields;
59+
}
60+
61+
/**
62+
* Set the list of fields and values that should be evaluated for potential restrictions.
63+
*
64+
* @param pendingFields the pendingFields value to set
65+
* @return the CheckRestrictionsRequest object itself.
66+
*/
67+
public CheckRestrictionsRequest withPendingFields(List<PendingField> pendingFields) {
68+
this.pendingFields = pendingFields;
69+
return this;
70+
}
71+
72+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.policyinsights.v2019_10_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* The information about the resource that will be evaluated.
15+
*/
16+
public class CheckRestrictionsResourceDetails {
17+
/**
18+
* The resource content. This should include whatever properties are
19+
* already known and can be a partial set of all resource properties.
20+
*/
21+
@JsonProperty(value = "resourceContent", required = true)
22+
private Object resourceContent;
23+
24+
/**
25+
* The api-version of the resource content.
26+
*/
27+
@JsonProperty(value = "apiVersion")
28+
private String apiVersion;
29+
30+
/**
31+
* The scope where the resource is being created. For example, if the
32+
* resource is a child resource this would be the parent resource's
33+
* resource ID.
34+
*/
35+
@JsonProperty(value = "scope")
36+
private String scope;
37+
38+
/**
39+
* Get the resource content. This should include whatever properties are already known and can be a partial set of all resource properties.
40+
*
41+
* @return the resourceContent value
42+
*/
43+
public Object resourceContent() {
44+
return this.resourceContent;
45+
}
46+
47+
/**
48+
* Set the resource content. This should include whatever properties are already known and can be a partial set of all resource properties.
49+
*
50+
* @param resourceContent the resourceContent value to set
51+
* @return the CheckRestrictionsResourceDetails object itself.
52+
*/
53+
public CheckRestrictionsResourceDetails withResourceContent(Object resourceContent) {
54+
this.resourceContent = resourceContent;
55+
return this;
56+
}
57+
58+
/**
59+
* Get the api-version of the resource content.
60+
*
61+
* @return the apiVersion value
62+
*/
63+
public String apiVersion() {
64+
return this.apiVersion;
65+
}
66+
67+
/**
68+
* Set the api-version of the resource content.
69+
*
70+
* @param apiVersion the apiVersion value to set
71+
* @return the CheckRestrictionsResourceDetails object itself.
72+
*/
73+
public CheckRestrictionsResourceDetails withApiVersion(String apiVersion) {
74+
this.apiVersion = apiVersion;
75+
return this;
76+
}
77+
78+
/**
79+
* Get the scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID.
80+
*
81+
* @return the scope value
82+
*/
83+
public String scope() {
84+
return this.scope;
85+
}
86+
87+
/**
88+
* Set the scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID.
89+
*
90+
* @param scope the scope value to set
91+
* @return the CheckRestrictionsResourceDetails object itself.
92+
*/
93+
public CheckRestrictionsResourceDetails withScope(String scope) {
94+
this.scope = scope;
95+
return this;
96+
}
97+
98+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.policyinsights.v2019_10_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.arm.resources.models.HasManager;
13+
import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.PolicyInsightsManager;
14+
import com.microsoft.azure.management.policyinsights.v2019_10_01.implementation.CheckRestrictionsResultInner;
15+
import java.util.List;
16+
17+
/**
18+
* Type representing CheckRestrictionsResult.
19+
*/
20+
public interface CheckRestrictionsResult extends HasInner<CheckRestrictionsResultInner>, HasManager<PolicyInsightsManager> {
21+
/**
22+
* @return the contentEvaluationResult value.
23+
*/
24+
CheckRestrictionsResultContentEvaluationResult contentEvaluationResult();
25+
26+
/**
27+
* @return the fieldRestrictions value.
28+
*/
29+
List<FieldRestrictions> fieldRestrictions();
30+
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.policyinsights.v2019_10_01;
10+
11+
import java.util.List;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* Evaluation results for the provided partial resource content.
16+
*/
17+
public class CheckRestrictionsResultContentEvaluationResult {
18+
/**
19+
* Policy evaluation results against the given resource content. This will
20+
* indicate if the partial content that was provided will be denied as-is.
21+
*/
22+
@JsonProperty(value = "policyEvaluations")
23+
private List<PolicyEvaluationResult> policyEvaluations;
24+
25+
/**
26+
* Get policy evaluation results against the given resource content. This will indicate if the partial content that was provided will be denied as-is.
27+
*
28+
* @return the policyEvaluations value
29+
*/
30+
public List<PolicyEvaluationResult> policyEvaluations() {
31+
return this.policyEvaluations;
32+
}
33+
34+
/**
35+
* Set policy evaluation results against the given resource content. This will indicate if the partial content that was provided will be denied as-is.
36+
*
37+
* @param policyEvaluations the policyEvaluations value to set
38+
* @return the CheckRestrictionsResultContentEvaluationResult object itself.
39+
*/
40+
public CheckRestrictionsResultContentEvaluationResult withPolicyEvaluations(List<PolicyEvaluationResult> policyEvaluations) {
41+
this.policyEvaluations = policyEvaluations;
42+
return this;
43+
}
44+
45+
}

0 commit comments

Comments
 (0)