diff --git a/.azure-pipelines/client.yml b/.azure-pipelines/client.yml
index fc977f4e85253..4f0b8f0df83c1 100644
--- a/.azure-pipelines/client.yml
+++ b/.azure-pipelines/client.yml
@@ -26,6 +26,11 @@ jobs:
JavaVersion: '1.11'
steps:
+ - script: |
+ echo "##vso[build.addbuildtag]Scheduled"
+ displayName: 'Tag scheduled builds'
+ condition: and(eq(variables['Build.SourceBranchName'],'master'),eq(variables['Build.Reason'],'Schedule'))
+
- task: Maven@3
displayName: 'Build and Package'
inputs:
@@ -73,7 +78,7 @@ jobs:
displayName: 'Install reporting tools'
inputs:
mavenPomFile: pom.client.xml
- options: '$(DefaultOptions) -Dinclude-non-shipping-modules -DskipTests -Dgpg.skip'
+ options: '$(DefaultOptions) -Djava-lts -Dinclude-non-shipping-modules -DskipTests -Dgpg.skip'
mavenOptions: '$(LoggingOptions)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
@@ -85,7 +90,7 @@ jobs:
displayName: 'Generate Maven project site, including JavaDocs, SpotBugs, and CheckStyle reports'
inputs:
mavenPomFile: pom.client.xml
- options: '$(DefaultOptions) -DskipTests -Dgpg.skip'
+ options: '$(DefaultOptions) -Djava-lts -DskipTests -Dgpg.skip'
mavenOptions: '$(LoggingOptions)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
diff --git a/.azure-pipelines/docs.yml b/.azure-pipelines/docs.yml
new file mode 100644
index 0000000000000..f83f220ff14dc
--- /dev/null
+++ b/.azure-pipelines/docs.yml
@@ -0,0 +1,133 @@
+trigger:
+ - master
+
+variables:
+ DefaultOptions: '--batch-mode -Dmaven.wagon.http.pool=false'
+ LoggingOptions: '-Dorg.slf4j.simpleLogger.defaultLogLevel=error -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
+
+jobs:
+ - job: 'Generate_Track_2'
+ variables:
+ skipComponentGovernanceDetection: true
+ timeoutInMinutes: 120
+ pool:
+ vmImage: 'vs2017-win2016'
+
+ steps:
+ - powershell: |
+ copy eng/repo-docs/index.html $(Build.ArtifactStagingDirectory)
+ displayName: 'Copy index to artifact staging'
+
+ - task: PublishPipelineArtifact@0
+ condition: succeededOrFailed()
+ displayName: 'Publish index artifact'
+ inputs:
+ artifactName: index
+ targetPath: $(Build.ArtifactStagingDirectory)
+
+ # We `install` separately from running `site:site site:stage` so that the `install` brings in the non-shipping-modules,
+ # but we don't include them in the Maven site commands (so that we don't generate reports for the non-shipping modules).
+ - task: Maven@3
+ displayName: 'Install reporting tools'
+ inputs:
+ mavenPomFile: pom.client.xml
+ options: '$(DefaultOptions) -Djava-lts -Dinclude-non-shipping-modules -DskipTests -Dgpg.skip'
+ mavenOptions: '$(LoggingOptions)'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.11'
+ jdkArchitectureOption: 'x64'
+ publishJUnitResults: false
+ goals: 'install'
+
+ - task: Maven@3
+ displayName: 'Generate Doc Site'
+ inputs:
+ mavenPomFile: pom.client.xml
+ options: '$(DefaultOptions) -Djava-lts -DskipTests -Dgpg.skip'
+ mavenOptions: '$(LoggingOptions)'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.11'
+ jdkArchitectureOption: 'x64'
+ publishJUnitResults: false
+ goals: 'site:site site:stage'
+
+ - task: Maven@3
+ displayName: 'Install azure-sdk-parent'
+ inputs:
+ mavenPomFile: parent/pom.xml
+ options: '$(DefaultOptions) -DskipTests -Dgpg.skip'
+ mavenOptions: '$(LoggingOptions)'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.11'
+ jdkArchitectureOption: 'x64'
+ publishJUnitResults: false
+ goals: 'install'
+
+ - powershell: |
+ copy -r target/staging/apidocs $(Build.ArtifactStagingDirectory)/client
+ displayName: 'Copy reports to artifact staging'
+
+ - task: PublishPipelineArtifact@0
+ condition: succeededOrFailed()
+ displayName: 'Publish reports artifact'
+ inputs:
+ artifactName: track2reports
+ targetPath: $(Build.ArtifactStagingDirectory)/client
+
+ - job: 'Generate_Track_1'
+ variables:
+ skipComponentGovernanceDetection: true
+ timeoutInMinutes: 120
+ pool:
+ vmImage: 'vs2017-win2016'
+
+ steps:
+ # We `install` separately from running `site:site site:stage` so that the `install` brings in the non-shipping-modules,
+ # but we don't include them in the Maven site commands (so that we don't generate reports for the non-shipping modules).
+ - task: Maven@3
+ displayName: 'Install client.xml to get spotbugs reporting'
+ inputs:
+ mavenPomFile: pom.client.xml
+ options: '$(DefaultOptions) -Dinclude-non-shipping-modules -Dmaven.javadoc.skip=true -DskipTests -Dgpg.skip'
+ mavenOptions: '$(LoggingOptions)'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.8'
+ jdkArchitectureOption: 'x64'
+ publishJUnitResults: false
+ goals: 'install'
+
+ - task: Maven@3
+ displayName: 'Install Data Packages'
+ inputs:
+ mavenPomFile: pom.data.xml
+ options: '$(DefaultOptions) -Dinclude-non-shipping-modules -Dmaven.javadoc.skip=true -DskipTests -Dgpg.skip'
+ mavenOptions: '$(LoggingOptions)'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.8'
+ jdkArchitectureOption: 'x64'
+ publishJUnitResults: false
+ goals: 'install'
+
+ - task: Maven@3
+ displayName: 'Generate Doc Site'
+ inputs:
+ mavenPomFile: pom.data.xml
+ options: '$(DefaultOptions) -DskipTests -Dgpg.skip'
+ mavenOptions: '$(LoggingOptions)'
+ javaHomeOption: 'JDKVersion'
+ jdkVersionOption: '1.8'
+ jdkArchitectureOption: 'x64'
+ publishJUnitResults: false
+ goals: 'site:site'
+
+ - powershell: |
+ copy -r target/site/apidocs $(Build.ArtifactStagingDirectory)/data
+ displayName: 'Copy reports to artifact staging'
+
+ - task: PublishPipelineArtifact@0
+ condition: succeededOrFailed()
+ displayName: 'Publish reports artifact'
+ inputs:
+ artifactName: track1reports
+ targetPath: $(Build.ArtifactStagingDirectory)/data
+
diff --git a/README.md b/README.md
index 27b268ef33dac..02243f5344921 100644
--- a/README.md
+++ b/README.md
@@ -1,145 +1,57 @@
-> :warning: *NOTE: The **Azure Libraries for Java** project (resource management APIs with fluent interface design pattern) has moved to http://github.com/azure/azure-libraries-for-java, so please log issues for that project in that new repository. This repository is now dedicated to other, auto-generated, non-management Azure SDKs only.*
-
-# Azure SDKs for Java
-
-| Component | Build Status |
-| --------- | ------------ |
-| Management Libraries | [![Build Status](https://travis-ci.org/Azure/azure-sdk-for-java.svg?branch=master)](https://travis-ci.org/Azure/azure-sdk-for-java) |
-| Client Libraries | [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/17?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=17)
[![Build Documentation](https://img.shields.io/badge/documentation-published-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/index.html)|
-
-:+1: [Try Azure for FREE](http://go.microsoft.com/fwlink/?LinkId=330212)
-
-This repository contains Azure SDKs enabling the programmatic *consumption* of miscellaneous Azure services (i.e. *not management* - for that see http://github.com/azure/azure-libraries-for-java)
-
-Currently, this repository contains the following Azure SDKs:
-
-* [Media Services](#media-services)
-* [Cognitive Services](#cognitive-services)
- * [Search](#search)
- * [Entity Search](#entity-search)
- * [Language](#language)
- * [Text Analytics](#text-analytics)
- * [Vision](#vision)
- * [Face API](#face-api)
-* [Azure Event Grid](#azure-event-grid)
-
-## Other Azure SDKs
-
-These other Azure SDKs for Java, that are not currently in this repository, can be found as follows:
-
-* [Azure ActiveDirectory Authentication Library (ADAL)](https://github.com/AzureAD/azure-activedirectory-library-for-java)
-* [Azure Batch SDK for Java](https://github.com/azure/azure-batch-sdk-for-java)
-* [Azure Data Lake Store Client for Java](https://github.com/Azure/azure-data-lake-store-java)
-* [Azure DocumentDB (CosmosDB) SDK for Java](https://github.com/Azure/azure-documentdb-java)
-* [Azure CosmosDB Async SDK for Java](https://github.com/Azure/azure-cosmosdb-java)
-* [Azure Key Vault SDK for Java](https://github.com/Azure/azure-keyvault-java)
-* [Azure Service Bus SDK for Java](https://github.com/Azure/azure-service-bus-java)
-* [Azure Storage SDK for Java](https://github.com/Azure/azure-storage-java)
-* [Azure Storage SDK Async for Java](https://github.com/Azure/azure-storage-java-async)
-* [Azure Functions SDK for Java](https://github.com/Azure/azure-functions-java-worker)
-* [Azure IoT SDK for Java](https://github.com/Azure/azure-iot-sdk-java)
-* [Azure Event Hub SDK for Java]()
-* [Azure Notification Hubs for Java](https://github.com/Azure/azure-notificationhubs-java-backend)
-* [Azure Management Libraries for Java](https://github.com/azure/azure-libraries-for-java)
-
-Other libraries:
-* [Microsoft JDBC Driver for SQL Server](https://github.com/Microsoft/mssql-jdbc)
-
-## General Information
-* [Prerequisites](#prerequisites)
-* [Help and issues](#help-and-issues)
-* [Contribute code](#contribute-code)
-
-## Cognitive Services
-
-The following projects provide Java APIs for [Azure Cognitive Services](https://azure.microsoft.com/en-us/services/cognitive-services/), empowering your applications with intelligent algorithms that enable them to see, hear, speak and understand.
-
-* *Language*
- * **Spell Check**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-spellcheck) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-spellcheck%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/BingSearchV7)| [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3ASpellCheck) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/spell-check/) |
- | --- | --- | --- | --- | --- |
- * **Text Analytics**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-textanalytics) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-language%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/TextAnalytics) | [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3ATextAnalytics) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/text-analytics/) |
- | --- | --- | --- | --- | --- |
-
-* *Search*
- * **Custom Search**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-customsearch) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-customsearch%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/BingSearchV7)| [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3ACustomSearch) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/bing-custom-search-api/) |
- | --- | --- | --- | --- | --- |
- * **Entity Search**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-entitysearch) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-entitysearch%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/BingSearchV7)| [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AEntitySearch) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/bing-entity-search-api/) |
- | --- | --- | --- | --- | --- |
- * **Image Search**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-imagesearch) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-imagesearch%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/BingSearchV7)| [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AImageSearch) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/bing-image-search-api/) |
- | --- | --- | --- | --- | --- |
- * **News Search**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-newssearch) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-newssearch%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/BingSearchV7)| [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3ANewsSearch) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/bing-news-search-api/) |
- | --- | --- | --- | --- | --- |
- * **Video Search**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-videosearch) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-videosearch%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/BingSearchV7)| [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AVideoSearch) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/bing-video-search-api/) |
- | --- | --- | --- | --- | --- |
- * **Web Search**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-websearch) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-websearch%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/BingSearchV7) | [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AWebSearch) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/bing-web-search-api/) |
- | --- | --- | --- | --- | --- |
-
-* *Vision*
- * **Computer Vision**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-computervision) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-computervision%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/ComputerVision) | [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AComputerVision) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/computer-vision) |
- | --- | --- | --- | --- | --- |
- * **Content Moderator**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-contentmoderator) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-cognitiveservices-contentmoderator%22) | [:pencil: Samples](https://github.com/Azure-Samples/cognitive-services-java-sdk-samples/tree/master/ContentModerator) | [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AContentModerator) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/content-moderator) |
- | --- | --- | --- | --- | --- |
- * **Face API**
-
- | [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/cognitiveservices/azure-vision) | [:arrow_down: Download](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22azure-faceapi%22) | :pencil: Samples | [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AFaceAPI) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/cognitive-services/face/) |
- | --- | --- | --- | --- | --- |
-
-## Media Services
-
-This project provides Java APIs for Azure Media Services, enabling you to share media content through premium video workflows:
-
-| [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/0.9/services/azure-media) | [:arrow_down: Download](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.microsoft.azure%22%20AND%20a%3A%22azure-media%22) | [:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AMediaServices) | [:book: Learn more...](https://azure.microsoft.com/en-us/services/media-services/) |
-| --- | --- | --- | --- |
-
-## Azure Event Grid
-
-This project provides Java APIs for [Azure Event Grid](https://azure.com/eventgrid), enabling you to build reactive programs and applications in the cloud:
-
-| [:page_facing_up: Sources...](https://github.com/Azure/azure-sdk-for-java/tree/master/azure-eventgrid) | :arrow_down: Download | :pencil: Samples |[:triangular_flag_on_post: Issues](https://github.com/azure/azure-sdk-for-java/issues?q=is%3Aopen+is%3Aissue+label%3AEventGrid) | [:book: Learn more...](https://azure.microsoft.com/services/event-grid/) |
-| --- | --- | --- | --- | --- |
-
-## Prerequisites
-
-- A Java Developer Kit (JDK), v 1.7 or later
-- Maven
-
-## Help and Issues
-
-If you encounter any bugs with these SDKs, please file issues via [Issues](https://github.com/Azure/azure-sdk-for-java/issues) or checkout [StackOverflow for Azure Java SDK](http://stackoverflow.com/questions/tagged/azure-java-sdk).
-
-## Contribute Code
-
-If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://azure.github.io/guidelines.html).
-
-1. Fork it
-2. Create your feature branch (`git checkout -b my-new-feature`)
-3. Commit your changes (`git commit -am 'Add some feature'`)
-4. Push to the branch (`git push origin my-new-feature`)
-5. Create new Pull Request
-
----
-
-This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
+# Azure SDK for Java
+[![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/17?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=17) [![Build Documentation](https://img.shields.io/badge/documentation-published-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/index.html) [![Dependencies](https://img.shields.io/badge/dependencies-analyzed-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/dependencies.html) [![SpotBugs](https://img.shields.io/badge/SpotBugs-Clean-success.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/spotbugsXml.html) [![CheckStyle](https://img.shields.io/badge/CheckStyle-Clean-success.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/staging/checkstyle-aggregate.html)
+
+
+This repository contains official Java libraries for Azure services. For reference documentation go to [Azure SDK for Java documentation](http://aka.ms/java-docs), and tutorials, samples, quick starts and other documentation, go to [Azure for Java Developers](https://docs.microsoft.com/java/azure/).
+
+You can find a complete list of all the packages for these libraries [here](packages.md).
+
+## Getting started
+
+To get started with a specific library, see the **README.md** file located in the library's project folder. You can find service libraries in the `/sdk` directory.
+
+For tutorials, samples, quick starts and other documentation, visit [Azure for Java Developers](https://docs.microsoft.com/java/azure/).
+
+### Prerequisites
+Java 8 or later is required to use the July 2019 client preview libraries, otherwise Java 7 or later is required.
+
+## Packages available
+Each service might have a number of libraries available from each of the following categories:
+
+* [Client - July 2019 Preview](#Client-July-2019-Preview)
+* [Client - Stable](#Client-Stable)
+* [Management](#Management)
+
+### Client: July 2019 Preview
+New wave of packages that we are currently releasing in **preview**. These libraries follow the [Azure SDK Design Guidelines for Java](https://azuresdkspecs.z5.web.core.windows.net/JavaSpec.html) and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features [here](core).
+
+These preview libraries can be easily identified by their folder, package, and namespaces names starting with `azure-`, e.g. `azure-keyvault`.
+
+The libraries released in the July 2019 preview:
+- [App Configuration](appconfiguration/client/README.md)
+- [Event Hubs](eventhubs/client/README.md)
+- [Identity](sdk/identity/azure-identity)
+- [Key Vault Keys](keyvault/client/keys/README.md)
+- [Key Vault Secrets](keyvault/client/secrets/README.md)
+- [Storage Blobs](storage/client/README.md)
+
+>NOTE: If you need to ensure your code is ready for production, use one of the stable libraries.
+
+### Client: Stable
+Last stable versions of packages that have been provided for usage with Azure and are production-ready. These libraries provide similar functionalities to the preview libraries, as they allow you to use and consume existing resources and interact with them, for example: upload a blob. Stable library directories start with `microsoft-azure-`, e.g. `microsoft-azure-keyvault`.
+
+### Management
+Libraries which enable you to provision specific resources. They are responsible for directly mirroring and consuming Azure service's REST endpoints. Management library directories contain `-mgmt-`, e.g. `azure-mgmt-keyvault`.
+
+## Need help?
+* For reference documentation visit the [Azure SDK for Java documentation](http://aka.ms/java-docs).
+* For tutorials, samples, quick starts and other documentation, visit [Azure for Java Developers](https://docs.microsoft.com/java/azure/).
+* For build reports on code quality, test coverage, etc, visit [Azure Java SDK](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-java/index.html).
+* File an issue via [Github Issues](https://github.com/Azure/azure-sdk-for-java/issues/new/choose).
+* Check [previous questions](https://stackoverflow.com/questions/tagged/azure-java-sdk) or ask new ones on StackOverflow using `azure-java-sdk` tag.
+
+## Contributing
+For details on contributing to this repository, see the [contributing guide](CONTRIBUTING.md).
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2FREADME.png)
diff --git a/api-specs.json b/api-specs.json
index 3f5745dc8f28c..059bfafbe5eba 100644
--- a/api-specs.json
+++ b/api-specs.json
@@ -206,6 +206,10 @@
"source": "specification/recoveryservicesbackup/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
+ "recoveryservicessiterecovery/resource-manager": {
+ "source": "specification/recoveryservicessiterecovery/resource-manager/readme.md",
+ "args": "--multiapi --fluent"
+ },
"redis/resource-manager": {
"source": "specification/redis/resource-manager/readme.md",
"args": "--multiapi --fluent",
@@ -256,6 +260,10 @@
"source": "specification/sql/resource-manager/readme.md",
"args": "--multiapi --fluent"
},
+ "sqlvirtualmachine/resource-manager": {
+ "source": "specification/sqlvirtualmachine/resource-manager/readme.md",
+ "args": "--multiapi --fluent"
+ },
"storage/resource-manager": {
"source": "specification/storage/resource-manager/readme.md",
"args": "--multiapi --fluent"
diff --git a/appconfiguration/client/src/main/java/com/azure/data/appconfiguration/ConfigurationClientBuilder.java b/appconfiguration/client/src/main/java/com/azure/data/appconfiguration/ConfigurationClientBuilder.java
deleted file mode 100644
index fc45c56722434..0000000000000
--- a/appconfiguration/client/src/main/java/com/azure/data/appconfiguration/ConfigurationClientBuilder.java
+++ /dev/null
@@ -1,163 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.data.appconfiguration;
-
-import com.azure.core.implementation.annotation.ServiceClientBuilder;
-import com.azure.data.appconfiguration.credentials.ConfigurationClientCredentials;
-import com.azure.data.appconfiguration.models.ConfigurationSetting;
-import com.azure.core.util.configuration.Configuration;
-import com.azure.core.http.HttpClient;
-import com.azure.core.http.HttpPipeline;
-import com.azure.core.http.policy.HttpLogDetailLevel;
-import com.azure.core.http.policy.HttpPipelinePolicy;
-
-import java.net.MalformedURLException;
-
-/**
- * This class provides a fluent builder API to help aid the configuration and instantiation of the {@link ConfigurationClient},
- * calling {@link ConfigurationClientBuilder#build() build} constructs an instance of the client.
- *
- *
The client needs the service endpoint of the Azure App Configuration store and access credentials. - * {@link ConfigurationClientCredentials} gives the builder the service endpoint and access credentials it requires to - * construct a client, set the ConfigurationClientCredentials with {@link ConfigurationAsyncClientBuilder#credentials(ConfigurationClientCredentials) this}.
- * - *- * ConfigurationAsyncClient client = ConfigurationAsyncClient.builder() - * .credentials(new ConfigurationClientCredentials(connectionString)) - * .build(); - *- * - *
Another way to construct the client is using a {@link HttpPipeline}. The pipeline gives the client an authenticated - * way to communicate with the service but it doesn't contain the service endpoint. Set the pipeline with - * {@link ConfigurationClientBuilder#pipeline(HttpPipeline) this}, additionally set the service endpoint with - * {@link ConfigurationClientBuilder#serviceEndpoint(String) this}. Using a pipeline requires additional setup but - * allows for finer control on how the ConfigurationClient it built.
- * - *- * ConfigurationAsyncClient.builder() - * .pipeline(new HttpPipeline(policies)) - * .serviceEndpoint(serviceEndpoint) - * .build(); - *- * - * @see ConfigurationClient - * @see ConfigurationClientCredentials - */ -@ServiceClientBuilder(serviceClients = ConfigurationClient.class) -public final class ConfigurationClientBuilder { - private final ConfigurationAsyncClientBuilder builder; - - ConfigurationClientBuilder() { - builder = ConfigurationAsyncClient.builder(); - } - - /** - * Creates a {@link ConfigurationClient} based on options set in the Builder. Every time {@code build()} is - * called, a new instance of {@link ConfigurationClient} is created. - * - *
- * If {@link ConfigurationClientBuilder#pipeline(HttpPipeline) pipeline} is set, then the {@code pipeline} and - * {@link ConfigurationClientBuilder#serviceEndpoint(String) serviceEndpoint} are used to create the - * {@link ConfigurationClient client}. All other builder settings are ignored.
- * - * @return A ConfigurationClient with the options set from the builder. - * @throws NullPointerException If {@code serviceEndpoint} has not been set. This setting is automatically set when - * {@link ConfigurationClientBuilder#credentials(ConfigurationClientCredentials) credentials} are set through - * the builder. Or can be set explicitly by calling {@link ConfigurationClientBuilder#serviceEndpoint(String)}. - * @throws IllegalStateException If {@link ConfigurationClientBuilder#credentials(ConfigurationClientCredentials)} - * has not been set. - */ - public ConfigurationClient build() { - return new ConfigurationClient(builder.build()); - } - - /** - * Sets the service endpoint for the Azure App Configuration instance. - * - * @param serviceEndpoint The URL of the Azure App Configuration instance to send {@link ConfigurationSetting} - * service requests to and receive responses from. - * @return The updated ConfigurationClientBuilder object. - * @throws MalformedURLException if {@code serviceEndpoint} is null or it cannot be parsed into a valid URL. - */ - public ConfigurationClientBuilder serviceEndpoint(String serviceEndpoint) throws MalformedURLException { - builder.serviceEndpoint(serviceEndpoint); - return this; - } - - /** - * Sets the credentials to use when authenticating HTTP requests. Also, sets the - * {@link ConfigurationClientBuilder#serviceEndpoint(String) serviceEndpoint} for this ConfigurationClientBuilder. - * - * @param credentials The credentials to use for authenticating HTTP requests. - * @return The updated ConfigurationClientBuilder object. - * @throws NullPointerException If {@code credentials} is {@code null}. - */ - public ConfigurationClientBuilder credentials(ConfigurationClientCredentials credentials) { - builder.credentials(credentials); - return this; - } - - /** - * Sets the logging level for HTTP requests and responses. - * - * @param logLevel The amount of logging output when sending and receiving HTTP requests/responses. - * @return The updated ConfigurationClientBuilder object. - */ - public ConfigurationClientBuilder httpLogDetailLevel(HttpLogDetailLevel logLevel) { - builder.httpLogDetailLevel(logLevel); - return this; - } - - /** - * Adds a policy to the set of existing policies that are executed after - * {@link ConfigurationClient} required policies. - * - * @param policy The retry policy for service requests. - * @return The updated ConfigurationClientBuilder object. - * @throws NullPointerException If {@code policy} is {@code null}. - */ - public ConfigurationClientBuilder addPolicy(HttpPipelinePolicy policy) { - builder.addPolicy(policy); - return this; - } - - /** - * Sets the HTTP client to use for sending and receiving requests to and from the service. - * - * @param client The HTTP client to use for requests. - * @return The updated ConfigurationClientBuilder object. - * @throws NullPointerException If {@code client} is {@code null}. - */ - public ConfigurationClientBuilder httpClient(HttpClient client) { - builder.httpClient(client); - return this; - } - - /** - * Sets the HTTP pipeline to use for the service client. - * - * If {@code pipeline} is set, all other settings are ignored, aside from - * {@link ConfigurationClientBuilder#serviceEndpoint(String) serviceEndpoint} to build {@link ConfigurationClient}. - * - * @param pipeline The HTTP pipeline to use for sending service requests and receiving responses. - * @return The updated ConfigurationClientBuilder object. - */ - public ConfigurationClientBuilder pipeline(HttpPipeline pipeline) { - builder.pipeline(pipeline); - return this; - } - - /** - * Sets the configuration store that is used during construction of the service client. - * - * Use {@link Configuration#NONE} to bypass using configuration settings during construction. - * - * @param configuration The configuration store used to - * @return The updated ConfigurationClientBuilder object. - */ - public ConfigurationClientBuilder configuration(Configuration configuration) { - builder.configuration(configuration); - return this; - } -} diff --git a/appconfiguration/client/src/samples/java/com/azure/data/appconfiguration/ConfigurationClientJavaDocCodeSnippets.java b/appconfiguration/client/src/samples/java/com/azure/data/appconfiguration/ConfigurationClientJavaDocCodeSnippets.java deleted file mode 100644 index be9d79875adaa..0000000000000 --- a/appconfiguration/client/src/samples/java/com/azure/data/appconfiguration/ConfigurationClientJavaDocCodeSnippets.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.data.appconfiguration; - -import com.azure.data.appconfiguration.credentials.ConfigurationClientCredentials; -import com.azure.data.appconfiguration.models.ConfigurationSetting; -import java.security.GeneralSecurityException; - -/** - * This class contains code samples for generating javadocs through doclets for {@link ConfigurationClient} - */ -public final class ConfigurationClientJavaDocCodeSnippets { - - /** - * Generates code sample for creating a {@link ConfigurationClient} - * @return An instance of {@link ConfigurationClient} - * @throws IllegalStateException If configuration credentials cannot be created - */ - public ConfigurationClient createConfigurationClient() { - try { - String connectionString = getConnectionString(); - // BEGIN: com.azure.applicationconfig.configurationclient.instantiation - ConfigurationClient configurationClient = ConfigurationClient.builder() - .credentials(new ConfigurationClientCredentials(connectionString)) - .build(); - // END: com.azure.applicationconfig.configurationclient.instantiation - return configurationClient; - } catch (GeneralSecurityException ex) { - throw new IllegalStateException("Failed to create configuration client credentials", ex); - } - } - - /** - * Generates code sample for using {@link ConfigurationClient#addSetting(String, String)} - */ - public void addSetting() { - ConfigurationClient configurationClient = createConfigurationClient(); - // BEGIN: com.azure.applicationconfig.configurationclient.addSetting#string-string - ConfigurationSetting configurationSetting = configurationClient - .addSetting("prodDBConnection", "db_connection").value(); - System.out.printf("Key: %s, Value: %s %n", configurationSetting.key(), configurationSetting.value()); - // END: com.azure.applicationconfig.configurationclient.addSetting#string-string - } - - /** - * Implementation not provided for this method - * @return {@code null} - */ - private String getConnectionString() { - return null; - } -} diff --git a/appconfiguration/client/tests.yml b/appconfiguration/client/tests.yml deleted file mode 100644 index 77ddb5a0671f3..0000000000000 --- a/appconfiguration/client/tests.yml +++ /dev/null @@ -1,10 +0,0 @@ -trigger: none - -jobs: - # When migrating change path to ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml - - template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests-pre-sdk.yml - parameters: - # When migrating use ServiceDirectory - PomFilePath: './applicationconfig/client/pom.xml' - EnvVars: - AZCONFIG_CONNECTION_STRING: $(java-azconfig-test-connection-string) \ No newline at end of file diff --git a/appconfiguration/resource-manager/v2019_02_01_preview/pom.xml b/appconfiguration/resource-manager/v2019_02_01_preview/pom.xml index a6044c1e69bc5..b9182f0b2edb1 100644 --- a/appconfiguration/resource-manager/v2019_02_01_preview/pom.xml +++ b/appconfiguration/resource-manager/v2019_02_01_preview/pom.xml @@ -71,6 +71,8 @@
diff --git a/core/azure-core/src/main/java/com/azure/core/http/policy/HttpLoggingPolicy.java b/core/azure-core/src/main/java/com/azure/core/http/policy/HttpLoggingPolicy.java
index 9ca980855fc8d..7668f1e1d5c80 100644
--- a/core/azure-core/src/main/java/com/azure/core/http/policy/HttpLoggingPolicy.java
+++ b/core/azure-core/src/main/java/com/azure/core/http/policy/HttpLoggingPolicy.java
@@ -65,17 +65,17 @@ public Mono
Refer to the links below for reference documentation generated from the Azure SDK for Java source code.
+