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 16847 in Azure/azure-rest-api-specs
Add Track2 release go tag (Azure#16847) * Add Track2 release go tag * recover
- Loading branch information
SDKAuto
committed
Nov 24, 2021
1 parent
6527358
commit 30719ff
Showing
9 changed files
with
353 additions
and
69 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
sdk/changeanalysis/azure-resourcemanager-changeanalysis/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
125 changes: 125 additions & 0 deletions
125
sdk/changeanalysis/azure-resourcemanager-changeanalysis/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,125 @@ | ||
# Code snippets and samples | ||
|
||
|
||
## Changes | ||
|
||
- [List](#changes_list) | ||
- [ListByResourceGroup](#changes_listbyresourcegroup) | ||
|
||
## Operations | ||
|
||
- [List](#operations_list) | ||
|
||
## ResourceChanges | ||
|
||
- [List](#resourcechanges_list) | ||
### Changes_List | ||
|
||
```java | ||
import com.azure.core.util.Context; | ||
import java.time.OffsetDateTime; | ||
|
||
/** Samples for Changes List. */ | ||
public final class ChangesListSamples { | ||
/* | ||
* x-ms-original-file: specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-01/examples/ChangesListChangesBySubscription.json | ||
*/ | ||
/** | ||
* Sample code: Changes_ListChangesBySubscription. | ||
* | ||
* @param manager Entry point to AzureChangeAnalysisManager. | ||
*/ | ||
public static void changesListChangesBySubscription( | ||
com.azure.resourcemanager.changeanalysis.AzureChangeAnalysisManager manager) { | ||
manager | ||
.changes() | ||
.list( | ||
OffsetDateTime.parse("2021-04-25T12:09:03.141Z"), | ||
OffsetDateTime.parse("2021-04-26T12:09:03.141Z"), | ||
null, | ||
Context.NONE); | ||
} | ||
} | ||
``` | ||
|
||
### Changes_ListByResourceGroup | ||
|
||
```java | ||
import com.azure.core.util.Context; | ||
import java.time.OffsetDateTime; | ||
|
||
/** Samples for Changes ListByResourceGroup. */ | ||
public final class ChangesListByResourceGroupSamples { | ||
/* | ||
* x-ms-original-file: specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-01/examples/ChangesListChangesByResourceGroup.json | ||
*/ | ||
/** | ||
* Sample code: Changes_ListChangesByResourceGroup. | ||
* | ||
* @param manager Entry point to AzureChangeAnalysisManager. | ||
*/ | ||
public static void changesListChangesByResourceGroup( | ||
com.azure.resourcemanager.changeanalysis.AzureChangeAnalysisManager manager) { | ||
manager | ||
.changes() | ||
.listByResourceGroup( | ||
"MyResourceGroup", | ||
OffsetDateTime.parse("2021-04-25T12:09:03.141Z"), | ||
OffsetDateTime.parse("2021-04-26T12:09:03.141Z"), | ||
null, | ||
Context.NONE); | ||
} | ||
} | ||
``` | ||
|
||
### Operations_List | ||
|
||
```java | ||
import com.azure.core.util.Context; | ||
|
||
/** Samples for Operations List. */ | ||
public final class OperationsListSamples { | ||
/* | ||
* x-ms-original-file: specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-01/examples/OperationsList.json | ||
*/ | ||
/** | ||
* Sample code: Operations_List. | ||
* | ||
* @param manager Entry point to AzureChangeAnalysisManager. | ||
*/ | ||
public static void operationsList(com.azure.resourcemanager.changeanalysis.AzureChangeAnalysisManager manager) { | ||
manager.operations().list(null, Context.NONE); | ||
} | ||
} | ||
``` | ||
|
||
### ResourceChanges_List | ||
|
||
```java | ||
import com.azure.core.util.Context; | ||
import java.time.OffsetDateTime; | ||
|
||
/** Samples for ResourceChanges List. */ | ||
public final class ResourceChangesListSamples { | ||
/* | ||
* x-ms-original-file: specification/changeanalysis/resource-manager/Microsoft.ChangeAnalysis/stable/2021-04-01/examples/ResourceChangesList.json | ||
*/ | ||
/** | ||
* Sample code: ResourceChanges_List. | ||
* | ||
* @param manager Entry point to AzureChangeAnalysisManager. | ||
*/ | ||
public static void resourceChangesList( | ||
com.azure.resourcemanager.changeanalysis.AzureChangeAnalysisManager manager) { | ||
manager | ||
.resourceChanges() | ||
.list( | ||
"subscriptions/4d962866-1e3f-47f2-bd18-450c08f914c1/resourceGroups/MyResourceGroup/providers/Microsoft.Web/sites/mysite", | ||
OffsetDateTime.parse("2021-04-25T12:09:03.141Z"), | ||
OffsetDateTime.parse("2021-04-26T12:09:03.141Z"), | ||
null, | ||
Context.NONE); | ||
} | ||
} | ||
``` | ||
|
136 changes: 75 additions & 61 deletions
136
sdk/changeanalysis/azure-resourcemanager-changeanalysis/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,67 +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-changeanalysis</artifactId> | ||
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-changeanalysis;current} --> | ||
<packaging>jar</packaging> | ||
<groupId>com.azure.resourcemanager</groupId> | ||
<artifactId>azure-resourcemanager-changeanalysis</artifactId> | ||
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-changeanalysis;current} --> | ||
<packaging>jar</packaging> | ||
|
||
<name>Microsoft Azure SDK for AzureChangeAnalysis Management</name> | ||
<description>This package contains Microsoft Azure SDK for AzureChangeAnalysis Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-04-01.</description> | ||
<url>https://github.com/Azure/azure-sdk-for-java</url> | ||
<name>Microsoft Azure SDK for AzureChangeAnalysis Management</name> | ||
<description>This package contains Microsoft Azure SDK for AzureChangeAnalysis Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-04-01.</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> | ||
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-core</artifactId> | ||
<version>1.22.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.jacoco</groupId> | ||
<artifactId>jacoco-maven-plugin</artifactId> | ||
<version>0.8.7</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} --> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<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> | ||
<codesnippet.skip>false</codesnippet.skip> | ||
<javadocDoclet></javadocDoclet> | ||
<javadocDocletOptions></javadocDocletOptions> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-core</artifactId> | ||
<version>1.22.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> |
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
Oops, something went wrong.