1// Package managementgroups implements the Azure ARM Managementgroups service API version 2017-08-31-preview.
2//
3// The Azure Management Groups API enables consolidation of multiple
4// subscriptions/resources into an organizational hierarchy and centrally
5// manage access control, policies, alerting and reporting for those resources.
6//
7package managementgroups
8
9// Copyright (c) Microsoft and contributors.  All rights reserved.
10//
11// Licensed under the Apache License, Version 2.0 (the "License");
12// you may not use this file except in compliance with the License.
13// You may obtain a copy of the License at
14// http://www.apache.org/licenses/LICENSE-2.0
15//
16// Unless required by applicable law or agreed to in writing, software
17// distributed under the License is distributed on an "AS IS" BASIS,
18// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19//
20// See the License for the specific language governing permissions and
21// limitations under the License.
22//
23// Code generated by Microsoft (R) AutoRest Code Generator.
24// Changes may cause incorrect behavior and will be lost if the code is regenerated.
25
26import (
27	"github.com/Azure/go-autorest/autorest"
28	"github.com/satori/go.uuid"
29)
30
31const (
32	// DefaultBaseURI is the default URI used for the service Managementgroups
33	DefaultBaseURI = "https://management.azure.com"
34)
35
36// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-08-31-preview/management instead.
37// BaseClient is the base client for Managementgroups.
38type BaseClient struct {
39	autorest.Client
40	BaseURI string
41	GroupID uuid.UUID
42}
43
44// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-08-31-preview/management instead.
45// New creates an instance of the BaseClient client.
46func New(groupID uuid.UUID) BaseClient {
47	return NewWithBaseURI(DefaultBaseURI, groupID)
48}
49
50// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/resources/mgmt/2017-08-31-preview/management instead.
51// NewWithBaseURI creates an instance of the BaseClient client.
52func NewWithBaseURI(baseURI string, groupID uuid.UUID) BaseClient {
53	return BaseClient{
54		Client:  autorest.NewClientWithUserAgent(UserAgent()),
55		BaseURI: baseURI,
56		GroupID: groupID,
57	}
58}
59