1// Package siterecovery implements the Azure ARM Siterecovery service API version 2016-08-10. 2// 3// 4package siterecovery 5 6// Copyright (c) Microsoft Corporation. All rights reserved. 7// Licensed under the MIT License. See License.txt in the project root for license information. 8// 9// Code generated by Microsoft (R) AutoRest Code Generator. 10// Changes may cause incorrect behavior and will be lost if the code is regenerated. 11 12import ( 13 "github.com/Azure/go-autorest/autorest" 14) 15 16const ( 17 // DefaultBaseURI is the default URI used for the service Siterecovery 18 DefaultBaseURI = "https://management.azure.com" 19) 20 21// BaseClient is the base client for Siterecovery. 22type BaseClient struct { 23 autorest.Client 24 BaseURI string 25 SubscriptionID string 26 ResourceGroupName string 27 ResourceName string 28} 29 30// New creates an instance of the BaseClient client. 31func New(subscriptionID string, resourceGroupName string, resourceName string) BaseClient { 32 return NewWithBaseURI(DefaultBaseURI, subscriptionID, resourceGroupName, resourceName) 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, resourceGroupName string, resourceName string) BaseClient { 38 return BaseClient{ 39 Client: autorest.NewClientWithUserAgent(UserAgent()), 40 BaseURI: baseURI, 41 SubscriptionID: subscriptionID, 42 ResourceGroupName: resourceGroupName, 43 ResourceName: resourceName, 44 } 45} 46