1 // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/machinelearning/armmachinelearning](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/machinelearning/armmachinelearning). 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 workspaces implements the Azure ARM Workspaces service API version 2019-10-01. 4 // 5 // These APIs allow end users to operate on Azure Machine Learning Workspace resources. They support CRUD operations 6 // for Azure Machine Learning Workspaces. 7 package workspaces 8 9 // Copyright (c) Microsoft Corporation. All rights reserved. 10 // Licensed under the MIT License. See License.txt in the project root for license information. 11 // 12 // Code generated by Microsoft (R) AutoRest Code Generator. 13 // Changes may cause incorrect behavior and will be lost if the code is regenerated. 14 15 import ( 16 "github.com/Azure/go-autorest/autorest" 17 ) 18 19 const ( 20 // DefaultBaseURI is the default URI used for the service Workspaces 21 DefaultBaseURI = "https://management.azure.com" 22 ) 23 24 // BaseClient is the base client for Workspaces. 25 type BaseClient struct { 26 autorest.Client 27 BaseURI string 28 SubscriptionID string 29 } 30 31 // New creates an instance of the BaseClient client. 32 func New(subscriptionID string) BaseClient { 33 return NewWithBaseURI(DefaultBaseURI, subscriptionID) 34 } 35 36 // NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with 37 // an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). 38 func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { 39 return BaseClient{ 40 Client: autorest.NewClientWithUserAgent(UserAgent()), 41 BaseURI: baseURI, 42 SubscriptionID: subscriptionID, 43 } 44 } 45