...

Source file src/github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2018-01-10/siterecovery/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/recoveryservices/mgmt/2018-01-10/siterecovery

     1  // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicessiterecovery). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
     2  //
     3  // Package siterecovery implements the Azure ARM Siterecovery service API version 2018-01-10.
     4  //
     5  //
     6  package siterecovery
     7  
     8  // Copyright (c) Microsoft Corporation. All rights reserved.
     9  // Licensed under the MIT License. See License.txt in the project root for license information.
    10  //
    11  // Code generated by Microsoft (R) AutoRest Code Generator.
    12  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
    13  
    14  import (
    15  	"github.com/Azure/go-autorest/autorest"
    16  )
    17  
    18  const (
    19  	// DefaultBaseURI is the default URI used for the service Siterecovery
    20  	DefaultBaseURI = "https://management.azure.com"
    21  )
    22  
    23  // BaseClient is the base client for Siterecovery.
    24  type BaseClient struct {
    25  	autorest.Client
    26  	BaseURI           string
    27  	SubscriptionID    string
    28  	ResourceGroupName string
    29  	ResourceName      string
    30  }
    31  
    32  // New creates an instance of the BaseClient client.
    33  func New(subscriptionID string, resourceGroupName string, resourceName string) BaseClient {
    34  	return NewWithBaseURI(DefaultBaseURI, subscriptionID, resourceGroupName, resourceName)
    35  }
    36  
    37  // NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint.  Use this when interacting with
    38  // an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
    39  func NewWithBaseURI(baseURI string, subscriptionID string, resourceGroupName string, resourceName string) BaseClient {
    40  	return BaseClient{
    41  		Client:            autorest.NewClientWithUserAgent(UserAgent()),
    42  		BaseURI:           baseURI,
    43  		SubscriptionID:    subscriptionID,
    44  		ResourceGroupName: resourceGroupName,
    45  		ResourceName:      resourceName,
    46  	}
    47  }
    48  

View as plain text