Skip to content

Commit b26abbb

Browse files
[Automation] Generate Fluent Lite from deviceprovisioningservices#package-2020-03 (Azure#21938)
Co-authored-by: timtay-microsoft <[email protected]>
1 parent ebe9c6d commit b26abbb

File tree

105 files changed

+16956
-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.

105 files changed

+16956
-0
lines changed

eng/versioning/version_client.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ com.azure.resourcemanager:azure-resourcemanager-imagebuilder;1.0.0-beta.1;1.0.0-
297297
com.azure.resourcemanager:azure-resourcemanager-maps;1.0.0-beta.1;1.0.0-beta.2
298298
com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0-beta.1;1.0.0-beta.2
299299
com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.0.0-beta.1;1.0.0-beta.2
300+
com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.0.0;1.0.0
300301

301302
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
302303
# version. Unreleased dependencies are only valid for dependency versions.

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@
732732
<module>sdk/datamigration</module>
733733
<module>sdk/delegatednetwork</module>
734734
<module>sdk/deploymentmanager</module>
735+
<module>sdk/deviceprovisioningservices</module>
735736
<module>sdk/deviceupdate</module>
736737
<module>sdk/devspaces</module>
737738
<module>sdk/devtestlabs</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 (2021-05-28)
4+
5+
Initial release of the Java Resource Management SDK for Device Provisioning Service.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Azure Resource Manager IotDps client library for Java
2+
3+
Azure Resource Manager IotDps client library for Java.
4+
5+
This package contains Microsoft Azure SDK for IotDps Management SDK. API for using the Azure IoT Hub Device Provisioning Service features. Package tag package-2020-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
6+
7+
## We'd love to hear your feedback
8+
9+
We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
10+
11+
If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
12+
13+
Thank you in advance for your collaboration. We really appreciate your time!
14+
15+
## Documentation
16+
17+
Various documentation is available to help you get started
18+
19+
- [API reference documentation][docs]
20+
- [Service documentation][service_docs]
21+
22+
## Getting started
23+
24+
### Prerequisites
25+
26+
- [Java Development Kit (JDK)][jdk] with version 8 or above
27+
- [Azure Subscription][azure_subscription]
28+
29+
### Adding the package to your product
30+
31+
[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;current})
32+
```xml
33+
<dependency>
34+
<groupId>com.azure.resourcemanager</groupId>
35+
<artifactId>azure-resourcemanager-deviceprovisioningservices</artifactId>
36+
<version>1.0.0</version>
37+
</dependency>
38+
```
39+
[//]: # ({x-version-update-end})
40+
41+
### Include the recommended packages
42+
43+
Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
44+
45+
[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
46+
47+
### Authentication
48+
49+
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
50+
51+
- `AZURE_CLIENT_ID` for Azure client ID.
52+
- `AZURE_TENANT_ID` for Azure tenant ID.
53+
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
54+
55+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
56+
57+
With above configuration, `azure` client can be authenticated by following code:
58+
59+
```java
60+
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
61+
TokenCredential credential = new DefaultAzureCredentialBuilder()
62+
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
63+
.build();
64+
IotDpsManager manager = IotDpsManager
65+
.authenticate(credential, profile);
66+
```
67+
68+
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
69+
70+
See [Authentication][authenticate] for more options.
71+
72+
## Key concepts
73+
74+
See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
75+
76+
## Examples
77+
78+
79+
80+
## Troubleshooting
81+
82+
## Next steps
83+
84+
## Contributing
85+
86+
For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/master/CONTRIBUTING.md).
87+
88+
1. Fork it
89+
1. Create your feature branch (`git checkout -b my-new-feature`)
90+
1. Commit your changes (`git commit -am 'Add some feature'`)
91+
1. Push to the branch (`git push origin my-new-feature`)
92+
1. Create new Pull Request
93+
94+
<!-- LINKS -->
95+
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
96+
[docs]: https://azure.github.io/azure-sdk-for-java/
97+
[jdk]: https://docs.microsoft.com/java/azure/jdk/
98+
[azure_subscription]: https://azure.microsoft.com/free/
99+
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
100+
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/core/azure-core-http-netty
101+
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/AUTH.md
102+
[design]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/resourcemanager/docs/DESIGN.md
103+
[service_docs]: https://docs.microsoft.com/azure/iot-dps
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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-deviceprovisioningservices</artifactId>
12+
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;current} -->
13+
<packaging>jar</packaging>
14+
15+
<name>Microsoft Azure SDK for IotDps Management</name>
16+
<description>This package contains Microsoft Azure SDK for IotDps Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API for using the Azure IoT Hub Device Provisioning Service features. Package tag package-2020-03.</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</artifactId>
47+
<version>1.16.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
48+
</dependency>
49+
<dependency>
50+
<groupId>com.azure</groupId>
51+
<artifactId>azure-core-management</artifactId>
52+
<version>1.2.2</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
53+
</dependency>
54+
<dependency>
55+
<groupId>com.azure</groupId>
56+
<artifactId>azure-identity</artifactId>
57+
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
58+
<scope>test</scope>
59+
</dependency>
60+
<dependency>
61+
<groupId>com.azure.resourcemanager</groupId>
62+
<artifactId>azure-resourcemanager-resources</artifactId>
63+
<version>2.5.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-resources;dependency} -->
64+
<scope>test</scope>
65+
</dependency>
66+
<dependency>
67+
<groupId>com.azure</groupId>
68+
<artifactId>azure-core-test</artifactId>
69+
<version>1.6.2</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
70+
<scope>test</scope>
71+
</dependency>
72+
<dependency>
73+
<groupId>org.slf4j</groupId>
74+
<artifactId>slf4j-simple</artifactId>
75+
<version>1.7.30</version> <!-- {x-version-update;org.slf4j:slf4j-simple;external_dependency} -->
76+
<scope>test</scope>
77+
</dependency>
78+
<dependency>
79+
<groupId>com.azure.resourcemanager</groupId>
80+
<artifactId>azure-resourcemanager-iothub</artifactId>
81+
<version>1.0.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-iothub;dependency} -->
82+
<scope>test</scope>
83+
</dependency>
84+
</dependencies>
85+
<build>
86+
<plugins>
87+
<plugin>
88+
<groupId>org.jacoco</groupId>
89+
<artifactId>jacoco-maven-plugin</artifactId>
90+
<version>0.8.5</version> <!-- {x-version-update;org.jacoco:jacoco-maven-plugin;external_dependency} -->
91+
<configuration>
92+
<skip>true</skip>
93+
</configuration>
94+
</plugin>
95+
<plugin>
96+
<groupId>org.revapi</groupId>
97+
<artifactId>revapi-maven-plugin</artifactId>
98+
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
99+
<configuration>
100+
<analysisConfiguration>
101+
<revapi.ignore>
102+
<item>
103+
<code>java.method.addedToInterface</code>
104+
</item>
105+
<item>
106+
<regex>true</regex>
107+
<code>.*</code>
108+
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package>
109+
</item>
110+
</revapi.ignore>
111+
</analysisConfiguration>
112+
</configuration>
113+
</plugin>
114+
</plugins>
115+
</build>
116+
</project>

0 commit comments

Comments
 (0)