Skip to content

Commit d1b56e9

Browse files
author
SDKAuto
committed
CodeGen from PR 12440 in Azure/azure-rest-api-specs
Merge 29b1ded48092179a12fdcd3ba77b77e2b24fe80d into 6636b93e2c9eb979336841289ce08d7c6043ea0e
1 parent b1b129f commit d1b56e9

File tree

149 files changed

+30435
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+30435
-0
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ com.azure.resourcemanager:azure-resourcemanager-loganalytics;1.0.0-beta.1;1.0.0-
194194
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.0.0-beta.1;1.0.0-beta.2
195195
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.0.0-beta.1;1.0.0-beta.1
196196
com.azure.resourcemanager:azure-resourcemanager-confluent;1.0.0-beta.1;1.0.0-beta.2
197+
com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.0.0-beta.1;1.0.0-beta.1
197198

198199

199200
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@
557557
<module>sdk/core</module>
558558
<module>sdk/cosmos</module>
559559
<module>sdk/costmanagement</module>
560+
<module>sdk/desktopvirtualization</module>
560561
<module>sdk/digitaltwins</module>
561562
<module>sdk/eventgrid</module>
562563
<module>sdk/eventhubs</module>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (2021-01-20)
4+
5+
- Azure Resource Manager DesktopVirtualization client library for Java. This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2020-11-10-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Azure Resource Manager DesktopVirtualization client library for Java
2+
3+
Azure Resource Manager DesktopVirtualization client library for Java.
4+
5+
This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2020-11-10-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
6+
7+
## Getting started
8+
9+
### Prerequisites
10+
11+
- [Java Development Kit (JDK)][jdk] with version 8 or above
12+
- [Azure Subscription][azure_subscription]
13+
14+
### Adding the package to your product
15+
16+
[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;current})
17+
```xml
18+
<dependency>
19+
<groupId>com.azure.resourcemanager</groupId>
20+
<artifactId>azure-resourcemanager-desktopvirtualization</artifactId>
21+
<version>1.0.0-beta.1</version>
22+
</dependency>
23+
```
24+
[//]: # ({x-version-update-end})
25+
26+
### Include the recommended packages
27+
28+
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
29+
30+
[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
31+
32+
### Authentication
33+
34+
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
35+
36+
- `AZURE_CLIENT_ID` for Azure client ID.
37+
- `AZURE_TENANT_ID` for Azure tenant ID.
38+
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
39+
40+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
41+
42+
With above configuration, `azure` client can be authenticated by following code:
43+
44+
```java
45+
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
46+
TokenCredential credential = new DefaultAzureCredentialBuilder()
47+
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
48+
.build();
49+
DesktopVirtualizationManager manager = DesktopVirtualizationManager
50+
.authenticate(credential, profile);
51+
```
52+
53+
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
54+
55+
See [Authentication][authenticate] for more options.
56+
57+
## Key concepts
58+
59+
See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
60+
61+
## Examples
62+
63+
## Troubleshooting
64+
65+
## Next steps
66+
67+
## Contributing
68+
69+
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
70+
71+
1. Fork it
72+
1. Create your feature branch (`git checkout -b my-new-feature`)
73+
1. Commit your changes (`git commit -am 'Add some feature'`)
74+
1. Push to the branch (`git push origin my-new-feature`)
75+
1. Create new Pull Request
76+
77+
<!-- LINKS -->
78+
[jdk]: https://docs.microsoft.com/java/azure/jdk/
79+
[azure_subscription]: https://azure.microsoft.com/free/
80+
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
81+
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
82+
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
83+
[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<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">
2+
<modelVersion>4.0.0</modelVersion>
3+
<parent>
4+
<groupId>com.azure</groupId>
5+
<artifactId>azure-client-sdk-parent</artifactId>
6+
<version>1.7.0</version> <!-- {x-version-update;com.azure:azure-client-sdk-parent;current} -->
7+
<relativePath>../../parents/azure-client-sdk-parent</relativePath>
8+
</parent>
9+
10+
<groupId>com.azure.resourcemanager</groupId>
11+
<artifactId>azure-resourcemanager-desktopvirtualization</artifactId>
12+
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;current} -->
13+
<packaging>jar</packaging>
14+
15+
<name>Microsoft Azure SDK for DesktopVirtualization Management</name>
16+
<description>This package contains Microsoft Azure SDK for DesktopVirtualization Management SDK. Package tag package-2020-11-10-preview. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
17+
<url>https://github.com/Azure/azure-sdk-for-java</url>
18+
19+
<licenses>
20+
<license>
21+
<name>The MIT License (MIT)</name>
22+
<url>http://opensource.org/licenses/MIT</url>
23+
<distribution>repo</distribution>
24+
</license>
25+
</licenses>
26+
27+
<scm>
28+
<url>https://github.com/Azure/azure-sdk-for-java</url>
29+
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
30+
<developerConnection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</developerConnection>
31+
<tag>HEAD</tag>
32+
</scm>
33+
<developers>
34+
<developer>
35+
<id>microsoft</id>
36+
<name>Microsoft</name>
37+
</developer>
38+
</developers>
39+
<properties>
40+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41+
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
42+
</properties>
43+
<dependencies>
44+
<dependency>
45+
<groupId>com.azure</groupId>
46+
<artifactId>azure-core-management</artifactId>
47+
<version>1.1.0</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
48+
</dependency>
49+
</dependencies>
50+
<build>
51+
<plugins>
52+
<plugin>
53+
<groupId>org.jacoco</groupId>
54+
<artifactId>jacoco-maven-plugin</artifactId>
55+
<version>0.8.5</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
56+
<configuration>
57+
<skip>true</skip>
58+
</configuration>
59+
</plugin>
60+
</plugins>
61+
</build>
62+
</project>

0 commit comments

Comments
 (0)