Skip to content

Commit a16c615

Browse files
author
SDKAuto
committed
CodeGen from PR 10798 in Azure/azure-rest-api-specs
Merge bfd00ba0e23814b7914d4b93ccea127ed6498861 into 150da63a09d1cb156cb0b6d8fe575cb9ccf7b6de
1 parent fd7f230 commit a16c615

File tree

95 files changed

+25521
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+25521
-0
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
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+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9+
<modelVersion>4.0.0</modelVersion>
10+
<groupId>com.microsoft.azure.policyinsights.v2020_07_01</groupId>
11+
<parent>
12+
<groupId>com.microsoft.azure</groupId>
13+
<artifactId>azure-arm-parent</artifactId>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
16+
</parent>
17+
<artifactId>azure-mgmt-policyinsights</artifactId>
18+
<version>1.0.0-beta</version>
19+
<packaging>jar</packaging>
20+
<name>Microsoft Azure SDK for PolicyInsights Management</name>
21+
<description>This package contains Microsoft PolicyInsights Management SDK.</description>
22+
<url>https://github.com/Azure/azure-sdk-for-java</url>
23+
<licenses>
24+
<license>
25+
<name>The MIT License (MIT)</name>
26+
<url>http://opensource.org/licenses/MIT</url>
27+
<distribution>repo</distribution>
28+
</license>
29+
</licenses>
30+
<scm>
31+
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
32+
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
33+
<tag>HEAD</tag>
34+
</scm>
35+
<properties>
36+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37+
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
38+
</properties>
39+
<developers>
40+
<developer>
41+
<id>microsoft</id>
42+
<name>Microsoft</name>
43+
</developer>
44+
</developers>
45+
<dependencies>
46+
<dependency>
47+
<groupId>com.microsoft.azure</groupId>
48+
<artifactId>azure-client-runtime</artifactId>
49+
</dependency>
50+
<dependency>
51+
<groupId>com.microsoft.azure</groupId>
52+
<artifactId>azure-arm-client-runtime</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.microsoft.azure</groupId>
61+
<artifactId>azure-client-authentication</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>com.microsoft.azure</groupId>
66+
<artifactId>azure-mgmt-resources</artifactId>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>com.microsoft.azure</groupId>
71+
<artifactId>azure-arm-client-runtime</artifactId>
72+
<type>test-jar</type>
73+
<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>
76+
</dependency>
77+
</dependencies>
78+
<build>
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-jar-plugin</artifactId>
83+
<configuration>
84+
<archive>
85+
<manifest>
86+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
87+
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
88+
</manifest>
89+
</archive>
90+
</configuration>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.codehaus.mojo</groupId>
94+
<artifactId>build-helper-maven-plugin</artifactId>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-compiler-plugin</artifactId>
99+
<version>3.1</version>
100+
<configuration>
101+
<source>1.7</source>
102+
<target>1.7</target>
103+
<annotationProcessors>
104+
<annotationProcessor>
105+
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
106+
</annotationProcessor>
107+
</annotationProcessors>
108+
<debug>true</debug>
109+
<optimize>true</optimize>
110+
<compilerArguments>
111+
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
112+
<Adebug>true</Adebug>
113+
</compilerArguments>
114+
</configuration>
115+
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-javadoc-plugin</artifactId>
119+
<version>2.8</version>
120+
<configuration>
121+
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
122+
<bottom>
123+
<![CDATA[<code>
124+
/**
125+
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
126+
<br />* Licensed under the MIT License. See License.txt in the project root for
127+
<br />* license information.
128+
<br />*/
129+
</code>]]>
130+
</bottom>
131+
</configuration>
132+
</plugin>
133+
</plugins>
134+
</build>
135+
</project>
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.v2020_07_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.v2020_07_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.v2020_07_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.v2020_07_01.implementation.PolicyInsightsManager;
14+
import com.microsoft.azure.management.policyinsights.v2020_07_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.v2020_07_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)