Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-resourcehealth] Merge in new edits to main to the feature branch #13338

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (2022-03-14)

- 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);
}
}
```

98 changes: 49 additions & 49 deletions sdk/resourcehealth/azure-resourcemanager-resourcehealth/pom.xml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
<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:git@github.com:Azure/azure-sdk-for-java.git</connection>
<developerConnection>scm:git:git@github.com: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>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.26.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-management</artifactId>
<version>1.5.3</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
<scm>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<developerConnection>scm:git:git@github.com: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>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.26.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-management</artifactId>
<version>1.5.3</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
</project>
Loading