forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 16920 in Azure/azure-rest-api-specs
Merge a0de17117759ed0d378a8dbc6f2df9e2bebabe4c into 5d491b126dd42e95b5b19f4ac6bfeeac68bd3395
- Loading branch information
SDKAuto
committed
Nov 30, 2021
1 parent
da67cff
commit ba12d3d
Showing
56 changed files
with
1,702 additions
and
2,964 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
sdk/resourcehealth/azure-resourcemanager-resourcehealth/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
224 changes: 224 additions & 0 deletions
224
sdk/resourcehealth/azure-resourcemanager-resourcehealth/SAMPLE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
121
sdk/resourcehealth/azure-resourcemanager-resourcehealth/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.