1// Package deploymentmanager implements the Azure ARM Deploymentmanager service API version 2018-09-01-preview. 2// 3// REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See 4// https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information. 5package deploymentmanager 6 7// Copyright (c) Microsoft and contributors. All rights reserved. 8// 9// Licensed under the Apache License, Version 2.0 (the "License"); 10// you may not use this file except in compliance with the License. 11// You may obtain a copy of the License at 12// http://www.apache.org/licenses/LICENSE-2.0 13// 14// Unless required by applicable law or agreed to in writing, software 15// distributed under the License is distributed on an "AS IS" BASIS, 16// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17// 18// See the License for the specific language governing permissions and 19// limitations under the License. 20// 21// Code generated by Microsoft (R) AutoRest Code Generator. 22// Changes may cause incorrect behavior and will be lost if the code is regenerated. 23 24import ( 25 "github.com/Azure/go-autorest/autorest" 26) 27 28const ( 29 // DefaultBaseURI is the default URI used for the service Deploymentmanager 30 DefaultBaseURI = "https://management.azure.com" 31) 32 33// BaseClient is the base client for Deploymentmanager. 34type BaseClient struct { 35 autorest.Client 36 BaseURI string 37 SubscriptionID string 38} 39 40// New creates an instance of the BaseClient client. 41func New(subscriptionID string) BaseClient { 42 return NewWithBaseURI(DefaultBaseURI, subscriptionID) 43} 44 45// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with 46// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). 47func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { 48 return BaseClient{ 49 Client: autorest.NewClientWithUserAgent(UserAgent()), 50 BaseURI: baseURI, 51 SubscriptionID: subscriptionID, 52 } 53} 54