Skip to content

Commit 31aafec

Browse files
committed
Configurations: 'specification/policyinsights/resource-manager/Microsoft.PolicyInsights/PolicyInsights/tspconfig.yaml', and CommitSHA: '61ef1085014acf8197d8b44e9dec699ef635a750' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6273917 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
1 parent 02316a0 commit 31aafec

347 files changed

Lines changed: 6780 additions & 24087 deletions

File tree

Some content is hidden

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

sdk/policyinsights/azure-resourcemanager-policyinsights/CHANGELOG.md

Lines changed: 331 additions & 4 deletions
Large diffs are not rendered by default.

sdk/policyinsights/azure-resourcemanager-policyinsights/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager PolicyInsights client library for Java.
44

5-
This package contains Microsoft Azure SDK for PolicyInsights Management SDK. Query component policy states at varying resource scopes for Resource Provider mode policies. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for PolicyInsights Management SDK. Query component policy states at varying resource scopes for Resource Provider mode policies. Package api-version PolicyInsightsApi: 2024-10-01, PolicyTrackedResourcesApi: 2018-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-policyinsights</artifactId>
35-
<version>1.1.0-beta.1</version>
35+
<version>1.1.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/policyinsights/azure-resourcemanager-policyinsights/SAMPLE.md

Lines changed: 0 additions & 3520 deletions
Large diffs are not rendered by default.

sdk/policyinsights/azure-resourcemanager-policyinsights/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!--
22
~ Copyright (c) Microsoft Corporation. All rights reserved.
33
~ Licensed under the MIT License.
4-
~ Code generated by Microsoft (R) AutoRest Code Generator.
4+
~ Code generated by Microsoft (R) TypeSpec Code Generator.
55
-->
6-
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6+
<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">
77
<modelVersion>4.0.0</modelVersion>
88
<parent>
99
<groupId>com.azure</groupId>
@@ -18,7 +18,7 @@
1818
<packaging>jar</packaging>
1919

2020
<name>Microsoft Azure SDK for PolicyInsights Management</name>
21-
<description>This package contains Microsoft Azure SDK for PolicyInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Query component policy states at varying resource scopes for Resource Provider mode policies. Package tag package-2024-10.</description>
21+
<description>This package contains Microsoft Azure SDK for PolicyInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Query component policy states at varying resource scopes for Resource Provider mode policies. Package api-version PolicyInsightsApi: 2024-10-01, PolicyTrackedResourcesApi: 2018-07-01-preview.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>

sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/PolicyInsightsManager.java

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
44

55
package com.azure.resourcemanager.policyinsights;
66

@@ -57,23 +57,23 @@
5757
* Query component policy states at varying resource scopes for Resource Provider mode policies.
5858
*/
5959
public final class PolicyInsightsManager {
60-
private PolicyTrackedResources policyTrackedResources;
60+
private Operations operations;
6161

6262
private Remediations remediations;
6363

64+
private Attestations attestations;
65+
66+
private PolicyMetadatas policyMetadatas;
67+
6468
private PolicyEvents policyEvents;
6569

6670
private PolicyStates policyStates;
6771

68-
private PolicyMetadatas policyMetadatas;
69-
7072
private PolicyRestrictions policyRestrictions;
7173

7274
private ComponentPolicyStates componentPolicyStates;
7375

74-
private Operations operations;
75-
76-
private Attestations attestations;
76+
private PolicyTrackedResources policyTrackedResources;
7777

7878
private final PolicyInsightsClient clientObject;
7979

@@ -291,16 +291,15 @@ public PolicyInsightsManager authenticate(TokenCredential credential, AzureProfi
291291
}
292292

293293
/**
294-
* Gets the resource collection API of PolicyTrackedResources.
294+
* Gets the resource collection API of Operations.
295295
*
296-
* @return Resource collection API of PolicyTrackedResources.
296+
* @return Resource collection API of Operations.
297297
*/
298-
public PolicyTrackedResources policyTrackedResources() {
299-
if (this.policyTrackedResources == null) {
300-
this.policyTrackedResources
301-
= new PolicyTrackedResourcesImpl(clientObject.getPolicyTrackedResources(), this);
298+
public Operations operations() {
299+
if (this.operations == null) {
300+
this.operations = new OperationsImpl(clientObject.getOperations(), this);
302301
}
303-
return policyTrackedResources;
302+
return operations;
304303
}
305304

306305
/**
@@ -315,6 +314,30 @@ public Remediations remediations() {
315314
return remediations;
316315
}
317316

317+
/**
318+
* Gets the resource collection API of Attestations. It manages Attestation.
319+
*
320+
* @return Resource collection API of Attestations.
321+
*/
322+
public Attestations attestations() {
323+
if (this.attestations == null) {
324+
this.attestations = new AttestationsImpl(clientObject.getAttestations(), this);
325+
}
326+
return attestations;
327+
}
328+
329+
/**
330+
* Gets the resource collection API of PolicyMetadatas.
331+
*
332+
* @return Resource collection API of PolicyMetadatas.
333+
*/
334+
public PolicyMetadatas policyMetadatas() {
335+
if (this.policyMetadatas == null) {
336+
this.policyMetadatas = new PolicyMetadatasImpl(clientObject.getPolicyMetadatas(), this);
337+
}
338+
return policyMetadatas;
339+
}
340+
318341
/**
319342
* Gets the resource collection API of PolicyEvents.
320343
*
@@ -339,18 +362,6 @@ public PolicyStates policyStates() {
339362
return policyStates;
340363
}
341364

342-
/**
343-
* Gets the resource collection API of PolicyMetadatas.
344-
*
345-
* @return Resource collection API of PolicyMetadatas.
346-
*/
347-
public PolicyMetadatas policyMetadatas() {
348-
if (this.policyMetadatas == null) {
349-
this.policyMetadatas = new PolicyMetadatasImpl(clientObject.getPolicyMetadatas(), this);
350-
}
351-
return policyMetadatas;
352-
}
353-
354365
/**
355366
* Gets the resource collection API of PolicyRestrictions.
356367
*
@@ -376,27 +387,16 @@ public ComponentPolicyStates componentPolicyStates() {
376387
}
377388

378389
/**
379-
* Gets the resource collection API of Operations.
380-
*
381-
* @return Resource collection API of Operations.
382-
*/
383-
public Operations operations() {
384-
if (this.operations == null) {
385-
this.operations = new OperationsImpl(clientObject.getOperations(), this);
386-
}
387-
return operations;
388-
}
389-
390-
/**
391-
* Gets the resource collection API of Attestations. It manages Attestation.
390+
* Gets the resource collection API of PolicyTrackedResources.
392391
*
393-
* @return Resource collection API of Attestations.
392+
* @return Resource collection API of PolicyTrackedResources.
394393
*/
395-
public Attestations attestations() {
396-
if (this.attestations == null) {
397-
this.attestations = new AttestationsImpl(clientObject.getAttestations(), this);
394+
public PolicyTrackedResources policyTrackedResources() {
395+
if (this.policyTrackedResources == null) {
396+
this.policyTrackedResources
397+
= new PolicyTrackedResourcesImpl(clientObject.getPolicyTrackedResources(), this);
398398
}
399-
return attestations;
399+
return policyTrackedResources;
400400
}
401401

402402
/**

0 commit comments

Comments
 (0)