3
// Copyright (c) Microsoft and contributors. All rights reserved.
5
// Licensed under the Apache License, Version 2.0 (the "License");
6
// you may not use this file except in compliance with the License.
7
// You may obtain a copy of the License at
8
// http://www.apache.org/licenses/LICENSE-2.0
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
17
// Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
18
// Changes may cause incorrect behavior and will be lost if the code is
22
"github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
26
// APIVersion is the version of the Authorization
27
APIVersion = "2015-01-01"
29
// DefaultBaseURI is the default URI used for the service Authorization
30
DefaultBaseURI = "https://management.azure.com"
33
// ManagementClient is the base client for Authorization.
34
type ManagementClient struct {
40
// New creates an instance of the ManagementClient client.
41
func New(subscriptionID string) ManagementClient {
42
return NewWithBaseURI(DefaultBaseURI, subscriptionID)
45
// NewWithBaseURI creates an instance of the ManagementClient client.
46
func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient {
47
return ManagementClient{
48
Client: autorest.NewClientWithUserAgent(UserAgent()),
50
SubscriptionID: subscriptionID,