1 // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details. 2 // 3 // Package documentdb implements the Azure ARM Documentdb service API version 2022-05-15. 4 package documentdb 5 6 // Copyright (c) Microsoft Corporation. All rights reserved. 7 // Licensed under the MIT License. See License.txt in the project root for license information. 8 // 9 // Code generated by Microsoft (R) AutoRest Code Generator. 10 // Changes may cause incorrect behavior and will be lost if the code is regenerated. 11 12 import ( 13 "github.com/Azure/go-autorest/autorest" 14 ) 15 16 const ( 17 // DefaultBaseURI is the default URI used for the service Documentdb 18 DefaultBaseURI = "https://management.azure.com" 19 ) 20 21 // BaseClient is the base client for Documentdb. 22 type BaseClient struct { 23 autorest.Client 24 BaseURI string 25 SubscriptionID string 26 } 27 28 // New creates an instance of the BaseClient client. 29 func New(subscriptionID string) BaseClient { 30 return NewWithBaseURI(DefaultBaseURI, subscriptionID) 31 } 32 33 // NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with 34 // an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). 35 func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { 36 return BaseClient{ 37 Client: autorest.NewClientWithUserAgent(UserAgent()), 38 BaseURI: baseURI, 39 SubscriptionID: subscriptionID, 40 } 41 } 42