1// Package visualstudio implements the Azure ARM Visualstudio service API version 2014-04-01-preview.
2//
3// Use these APIs to manage Visual Studio Team Services resources through the Azure Resource Manager. All task
4// operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that
5// can be used to obtain information about the request. You must make sure that requests made to these resources are
6// secure. For more information, see https://docs.microsoft.com/en-us/rest/api/index.
7package visualstudio
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)
29
30const (
31	// DefaultBaseURI is the default URI used for the service Visualstudio
32	DefaultBaseURI = "https://management.azure.com"
33)
34
35// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio instead.
36// BaseClient is the base client for Visualstudio.
37type BaseClient struct {
38	autorest.Client
39	BaseURI        string
40	SubscriptionID string
41}
42
43// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio instead.
44// New creates an instance of the BaseClient client.
45func New(subscriptionID string) BaseClient {
46	return NewWithBaseURI(DefaultBaseURI, subscriptionID)
47}
48
49// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/visualstudio/mgmt/2014-04-01-preview/visualstudio instead.
50// NewWithBaseURI creates an instance of the BaseClient client.
51func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
52	return BaseClient{
53		Client:         autorest.NewClientWithUserAgent(UserAgent()),
54		BaseURI:        baseURI,
55		SubscriptionID: subscriptionID,
56	}
57}
58