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