Skip to content

Commit

Permalink
CodeGen from PR 16920 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge a0de17117759ed0d378a8dbc6f2df9e2bebabe4c into 5d491b126dd42e95b5b19f4ac6bfeeac68bd3395
  • Loading branch information
SDKAuto committed Nov 30, 2021
1 parent da67cff commit ba12d3d
Show file tree
Hide file tree
Showing 56 changed files with 1,702 additions and 2,964 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-11-30)

- Azure Resource Manager ResourceHealth client library for Java. This package contains Microsoft Azure SDK for ResourceHealth Management SDK. The Resource Health Client. Package tag package-2017-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.1 (2021-04-08)

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

Azure Resource Manager ResourceHealth client library for Java.

This package contains Microsoft Azure SDK for ResourceHealth Management SDK. The Resource Health Client. Package tag package-2018-07-01. 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 ResourceHealth Management SDK. The Resource Health Client. Package tag package-2017-07. 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-resourcehealth</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcehealth/azure-resourcemanager-resourcehealth/SAMPLE.md)


## Troubleshooting

## Next steps
Expand Down
224 changes: 224 additions & 0 deletions sdk/resourcehealth/azure-resourcemanager-resourcehealth/SAMPLE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
# Code snippets and samples


## AvailabilityStatuses

- [GetByResource](#availabilitystatuses_getbyresource)
- [List](#availabilitystatuses_list)
- [ListByResourceGroup](#availabilitystatuses_listbyresourcegroup)
- [ListBySubscriptionId](#availabilitystatuses_listbysubscriptionid)

## ChildAvailabilityStatuses

- [GetByResource](#childavailabilitystatuses_getbyresource)
- [List](#childavailabilitystatuses_list)

## ChildResources

- [List](#childresources_list)

## EmergingIssues

- [Get](#emergingissues_get)
- [List](#emergingissues_list)
### AvailabilityStatuses_GetByResource

```java
import com.azure.core.util.Context;

/** Samples for AvailabilityStatuses GetByResource. */
public final class AvailabilityStatusesGetByResourceSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatus_GetByResource.json
*/
/**
* Sample code: GetCurrentHealthByResource.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void getCurrentHealthByResource(
com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager
.availabilityStatuses()
.getByResourceWithResponse("resourceUri", null, "recommendedactions", Context.NONE);
}
}
```

### AvailabilityStatuses_List

```java
import com.azure.core.util.Context;

/** Samples for AvailabilityStatuses List. */
public final class AvailabilityStatusesListSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_List.json
*/
/**
* Sample code: GetHealthHistoryByResource.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void getHealthHistoryByResource(
com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager.availabilityStatuses().list("resourceUri", null, null, Context.NONE);
}
}
```

### AvailabilityStatuses_ListByResourceGroup

```java
import com.azure.core.util.Context;

/** Samples for AvailabilityStatuses ListByResourceGroup. */
public final class AvailabilityStatusesListByResourceGroupSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListByResourceGroup.json
*/
/**
* Sample code: ListByResourceGroup.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void listByResourceGroup(com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager
.availabilityStatuses()
.listByResourceGroup("resourceGroupName", null, "recommendedactions", Context.NONE);
}
}
```

### AvailabilityStatuses_ListBySubscriptionId

```java
import com.azure.core.util.Context;

/** Samples for AvailabilityStatuses ListBySubscriptionId. */
public final class AvailabilityStatusesListBySubscriptionIdSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/AvailabilityStatuses_ListBySubscriptionId.json
*/
/**
* Sample code: ListHealthBySubscriptionId.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void listHealthBySubscriptionId(
com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager.availabilityStatuses().listBySubscriptionId(null, "recommendedactions", Context.NONE);
}
}
```

### ChildAvailabilityStatuses_GetByResource

```java
import com.azure.core.util.Context;

/** Samples for ChildAvailabilityStatuses GetByResource. */
public final class ChildAvailabilityStatusesGetByResourceSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildAvailabilityStatus_GetByResource.json
*/
/**
* Sample code: GetCurrentHealthByResource.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void getCurrentHealthByResource(
com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager
.childAvailabilityStatuses()
.getByResourceWithResponse("resourceUri", null, "recommendedactions", Context.NONE);
}
}
```

### ChildAvailabilityStatuses_List

```java
import com.azure.core.util.Context;

/** Samples for ChildAvailabilityStatuses List. */
public final class ChildAvailabilityStatusesListSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildAvailabilityStatuses_List.json
*/
/**
* Sample code: GetHealthHistoryByResource.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void getHealthHistoryByResource(
com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager.childAvailabilityStatuses().list("resourceUri", null, null, Context.NONE);
}
}
```

### ChildResources_List

```java
import com.azure.core.util.Context;

/** Samples for ChildResources List. */
public final class ChildResourcesListSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/ChildResources_List.json
*/
/**
* Sample code: GetHealthHistoryByResource.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void getHealthHistoryByResource(
com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager.childResources().list("resourceUri", null, null, Context.NONE);
}
}
```

### EmergingIssues_Get

```java
import com.azure.core.util.Context;

/** Samples for EmergingIssues Get. */
public final class EmergingIssuesGetSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/EmergingIssues_Get.json
*/
/**
* Sample code: GetEmergingIssues.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void getEmergingIssues(com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager.emergingIssues().getWithResponse(Context.NONE);
}
}
```

### EmergingIssues_List

```java
import com.azure.core.util.Context;

/** Samples for EmergingIssues List. */
public final class EmergingIssuesListSamples {
/*
* x-ms-original-file: specification/resourcehealth/resource-manager/Microsoft.ResourceHealth/stable/2017-07-01/examples/EmergingIssues_List.json
*/
/**
* Sample code: GetEmergingIssues.
*
* @param manager Entry point to ResourceHealthManager.
*/
public static void getEmergingIssues(com.azure.resourcemanager.resourcehealth.ResourceHealthManager manager) {
manager.emergingIssues().list(Context.NONE);
}
}
```

121 changes: 72 additions & 49 deletions sdk/resourcehealth/azure-resourcemanager-resourcehealth/pom.xml
Original file line number Diff line number Diff line change
@@ -1,58 +1,81 @@
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
<artifactId>azure-client-sdk-parent</artifactId>
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
<relativePath>../../parents/azure-client-sdk-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
<artifactId>azure-client-sdk-parent</artifactId>
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
<relativePath>../../parents/azure-client-sdk-parent</relativePath>
</parent>

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-resourcehealth</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-resourcehealth;current} -->
<packaging>jar</packaging>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-resourcehealth</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-resourcehealth;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for ResourceHealth Management</name>
<description>This package contains Microsoft Azure SDK for ResourceHealth Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Resource Health Client. Package tag package-2018-07-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<name>Microsoft Azure SDK for ResourceHealth Management</name>
<description>This package contains Microsoft Azure SDK for ResourceHealth Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Resource Health Client. Package tag package-2017-07.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<developerConnection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<scm>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<developerConnection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<codesnippet.skip>false</codesnippet.skip>
<javadocDoclet></javadocDoclet>
<javadocDocletOptions></javadocDocletOptions>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.23.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-management</artifactId>
<version>1.4.3</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.23.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-management</artifactId>
<version>1.4.3</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<analysisConfiguration>
<revapi.ignore>
<item>
<code>java.method.addedToInterface</code>
</item>
<item>
<regex>true</regex>
<code>.*</code>
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit ba12d3d

Please sign in to comment.