Skip to content

Commit

Permalink
CodeGen from PR 16211 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.DocumentDB to add version preview/2021-10-15-preview (Azure#16211)

* Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview

* Updates readme

* Updates API version in new specs and examples

* Antoshni cosmos db 2021 10 15 preview cek management (#1)

* Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview

* Updates readme

* Updates API version in new specs and examples

* ClientEncryptionKey management API changes

* Address semantics validation errors

* Fix representation of wrappedDek

* fix Swagger prettier formatting check

* minor edits to address comments"

* fix LintDiff error

* Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview

* Updates readme

* Updates API version in new specs and examples

* remove CreateUpdateOptions as they arent applicable for CEK

* fix Model validation check

Co-authored-by: anujtoshniwal <[email protected]>
Co-authored-by: Anuj Toshniwal <[email protected]>

* mongo rbac cherry-pick (#5)

* mongo rbac cherry-pick

* Removing entry for 07 preview

Co-authored-by: kavskalyan <[email protected]>

* Revert "mongo rbac cherry-pick (#5)" (#7)

This reverts commit 8392017d66f23eb96aa6032681bbfd254f0fd019.

* preview swagger for managed cassandra (#8)

* preview swagger for managed cassandra

* add cassandraAuditLoggingEnabled property

* change property name in CommandPostBody

Co-authored-by: Vivek Sundararajan <[email protected]>

* fix validation, remove connectivity (#11)

Co-authored-by: Vivek Sundararajan <[email protected]>

* Add data transfer job api (#2)

* Adds base for updating Microsoft.DocumentDB from version preview/2021-07-01-preview to version 2021-10-15-preview

* Updates readme

* Updates API version in new specs and examples

* Add DataTransfer job apis

* Fix api version

* Rename connection to endpointUrl

* Rename connection to endpointUrl

* Add dataTransferService in readme.md

* Fix keys

* Fix checks

* Add worker count

* Fix worker count

* MaterializedViewsBuilder (#12)

* Adding LatestRestorableTimestamp support for MongoDB collections. (#9)

* Adding LatestRestorableTimestamp support for MongoDB

* Fixing api version for examples.

* Mongo RBAC Swagger Changes (#10)

* mongo rbac cherry-pick

* Removing entry for 07 preview

* Fixing swagger issues

* Fixing swagger error for param

* Fixing misplaced Description

* Fixing model validation issues

* Json pretty formatting

* Fixing more model validation issues

* Fixing type issue

* Add password field for userdef request

* Fixing URL param

* Fixing URL param issue

Co-authored-by: kavskalyan <[email protected]>

* TotalThroughput limit 10-15 preview API changes (#6)

* add backupStorageCustomerKeyUri and fix response status code (#13)

* fix validation, remove connectivity

* add backupStorageCustomerKeyUri property

* fix response status code

Co-authored-by: Vivek Sundararajan <[email protected]>

* Prettier fix

* Fix Avocado check

* Fix operationId

* Fix operationId

* Fix breaking change

* Fix breaking change (managedCassandra invokeCommand)

* Fix breaking change

* Fix status code in example

* Fix review comment

* Use v3 version for resource-management

* Fix client encryption review comments

* update location header in example (#15)

Co-authored-by: Vivek Sundararajan <[email protected]>

* Prettier fix

* update header in response

* formating json

Co-authored-by: anujtoshniwal <[email protected]>
Co-authored-by: Anuj Toshniwal <[email protected]>
Co-authored-by: Abhijit Karanjkar <[email protected]>
Co-authored-by: kavskalyan <[email protected]>
Co-authored-by: vivek-microsoft <[email protected]>
Co-authored-by: Vivek Sundararajan <[email protected]>
Co-authored-by: Ajay Parulekar <[email protected]>
Co-authored-by: Amit Singh <[email protected]>
Co-authored-by: pjohari-ms <[email protected]>
  • Loading branch information
10 people committed Nov 15, 2021
1 parent b3f812a commit e4aba8d
Show file tree
Hide file tree
Showing 675 changed files with 119,691 additions and 2 deletions.
1 change: 1 addition & 0 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ com.azure.resourcemanager:azure-resourcemanager-logz;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-storagepool;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dataprotection;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-desktopvirtualization;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-cosmos-generated;1.0.0-beta.1;1.0.0-beta.1

# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release History

## 1.0.0-beta.1 (2021-11-15)

- Azure Resource Manager CosmosDB client library for Java. This package contains Microsoft Azure SDK for CosmosDB Management SDK. Azure Cosmos DB Database Service Resource Provider REST API. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
102 changes: 102 additions & 0 deletions sdk/cosmos/azure-resourcemanager-cosmos-generated/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Azure Resource Manager CosmosDB client library for Java

Azure Resource Manager CosmosDB client library for Java.

This package contains Microsoft Azure SDK for CosmosDB Management SDK. Azure Cosmos DB Database Service Resource Provider REST API. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

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.

If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.

Thank you in advance for your collaboration. We really appreciate your time!

## Documentation

Various documentation is available to help you get started

- [API reference documentation][docs]

## Getting started

### Prerequisites

- [Java Development Kit (JDK)][jdk] with version 8 or above
- [Azure Subscription][azure_subscription]

### Adding the package to your product

[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-cosmos-generated;current})
```xml
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-cosmos-generated</artifactId>
<version>1.0.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})

### Include the recommended packages

Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.

[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.

### Authentication

By default, Azure Active Directory token authentication depends on correct configure of following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, `azure` client can be authenticated by following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
CosmosDBManager manager = CosmosDBManager
.authenticate(credential, profile);
```

The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.

See [Authentication][authenticate] for more options.

## Key concepts

See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.

## Examples

[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/cosmos/azure-resourcemanager-cosmos-generated/SAMPLE.md)


## Troubleshooting

## Next steps

## Contributing

For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).

1. Fork it
1. Create your feature branch (`git checkout -b my-new-feature`)
1. Commit your changes (`git commit -am 'Add some feature'`)
1. Push to the branch (`git push origin my-new-feature`)
1. Create new Pull Request

<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
Loading

0 comments on commit e4aba8d

Please sign in to comment.