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