1 // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers). 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 postgresqlflexibleservers implements the Azure ARM Postgresqlflexibleservers service API version 2021-06-01. 4 // 5 // The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL 6 // resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and 7 // configurations with new business model. 8 package postgresqlflexibleservers 9 10 // Copyright (c) Microsoft Corporation. All rights reserved. 11 // Licensed under the MIT License. See License.txt in the project root for license information. 12 // 13 // Code generated by Microsoft (R) AutoRest Code Generator. 14 // Changes may cause incorrect behavior and will be lost if the code is regenerated. 15 16 import ( 17 "github.com/Azure/go-autorest/autorest" 18 ) 19 20 const ( 21 // DefaultBaseURI is the default URI used for the service Postgresqlflexibleservers 22 DefaultBaseURI = "https://management.azure.com" 23 ) 24 25 // BaseClient is the base client for Postgresqlflexibleservers. 26 type BaseClient struct { 27 autorest.Client 28 BaseURI string 29 SubscriptionID string 30 } 31 32 // New creates an instance of the BaseClient client. 33 func New(subscriptionID string) BaseClient { 34 return NewWithBaseURI(DefaultBaseURI, subscriptionID) 35 } 36 37 // NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with 38 // an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). 39 func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { 40 return BaseClient{ 41 Client: autorest.NewClientWithUserAgent(UserAgent()), 42 BaseURI: baseURI, 43 SubscriptionID: subscriptionID, 44 } 45 } 46