Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
335 changes: 331 additions & 4 deletions sdk/policyinsights/azure-resourcemanager-policyinsights/CHANGELOG.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager PolicyInsights client library for Java.

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).
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).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-policyinsights</artifactId>
<version>1.1.0-beta.1</version>
<version>1.1.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
3,520 changes: 0 additions & 3,520 deletions sdk/policyinsights/azure-resourcemanager-policyinsights/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
-->
<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">
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
Expand All @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for PolicyInsights Management</name>
<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>
<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>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.policyinsights;

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

private Remediations remediations;

private Attestations attestations;

private PolicyMetadatas policyMetadatas;

private PolicyEvents policyEvents;

private PolicyStates policyStates;

private PolicyMetadatas policyMetadatas;

private PolicyRestrictions policyRestrictions;

private ComponentPolicyStates componentPolicyStates;

private Operations operations;

private Attestations attestations;
private PolicyTrackedResources policyTrackedResources;

private final PolicyInsightsClient clientObject;

Expand Down Expand Up @@ -291,16 +291,15 @@ public PolicyInsightsManager authenticate(TokenCredential credential, AzureProfi
}

/**
* Gets the resource collection API of PolicyTrackedResources.
* Gets the resource collection API of Operations.
*
* @return Resource collection API of PolicyTrackedResources.
* @return Resource collection API of Operations.
*/
public PolicyTrackedResources policyTrackedResources() {
if (this.policyTrackedResources == null) {
this.policyTrackedResources
= new PolicyTrackedResourcesImpl(clientObject.getPolicyTrackedResources(), this);
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return policyTrackedResources;
return operations;
}

/**
Expand All @@ -315,6 +314,30 @@ public Remediations remediations() {
return remediations;
}

/**
* Gets the resource collection API of Attestations. It manages Attestation.
*
* @return Resource collection API of Attestations.
*/
public Attestations attestations() {
if (this.attestations == null) {
this.attestations = new AttestationsImpl(clientObject.getAttestations(), this);
}
return attestations;
}

/**
* Gets the resource collection API of PolicyMetadatas.
*
* @return Resource collection API of PolicyMetadatas.
*/
public PolicyMetadatas policyMetadatas() {
if (this.policyMetadatas == null) {
this.policyMetadatas = new PolicyMetadatasImpl(clientObject.getPolicyMetadatas(), this);
}
return policyMetadatas;
}

/**
* Gets the resource collection API of PolicyEvents.
*
Expand All @@ -339,18 +362,6 @@ public PolicyStates policyStates() {
return policyStates;
}

/**
* Gets the resource collection API of PolicyMetadatas.
*
* @return Resource collection API of PolicyMetadatas.
*/
public PolicyMetadatas policyMetadatas() {
if (this.policyMetadatas == null) {
this.policyMetadatas = new PolicyMetadatasImpl(clientObject.getPolicyMetadatas(), this);
}
return policyMetadatas;
}

/**
* Gets the resource collection API of PolicyRestrictions.
*
Expand All @@ -376,27 +387,16 @@ public ComponentPolicyStates componentPolicyStates() {
}

/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* Gets the resource collection API of Attestations. It manages Attestation.
* Gets the resource collection API of PolicyTrackedResources.
*
* @return Resource collection API of Attestations.
* @return Resource collection API of PolicyTrackedResources.
*/
public Attestations attestations() {
if (this.attestations == null) {
this.attestations = new AttestationsImpl(clientObject.getAttestations(), this);
public PolicyTrackedResources policyTrackedResources() {
if (this.policyTrackedResources == null) {
this.policyTrackedResources
= new PolicyTrackedResourcesImpl(clientObject.getPolicyTrackedResources(), this);
}
return attestations;
return policyTrackedResources;
}

/**
Expand Down
Loading