...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/machinelearning/mgmt/2017-08-01-preview/compute/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/machinelearning/mgmt/2017-08-01-preview/compute

     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 compute implements the Azure ARM Compute service API version 2017-08-01-preview.
     4  //
     5  // These APIs allow end users to operate on Azure Machine Learning Compute resources. They support the following
     6  // operations:<ul><li>Create or update a cluster</li><li>Get a cluster</li><li>Patch a cluster</li><li>Delete a
     7  // cluster</li><li>Get keys for a cluster</li><li>Check if updates are available for system services in a
     8  // cluster</li><li>Update system services in a cluster</li><li>Get all clusters in a resource group</li><li>Get all
     9  // clusters in a subscription</li></ul>
    10  package compute
    11  
    12  // Copyright (c) Microsoft Corporation. All rights reserved.
    13  // Licensed under the MIT License. See License.txt in the project root for license information.
    14  //
    15  // Code generated by Microsoft (R) AutoRest Code Generator.
    16  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
    17  
    18  import (
    19  	"github.com/Azure/go-autorest/autorest"
    20  )
    21  
    22  const (
    23  	// DefaultBaseURI is the default URI used for the service Compute
    24  	DefaultBaseURI = "https://management.azure.com"
    25  )
    26  
    27  // BaseClient is the base client for Compute.
    28  type BaseClient struct {
    29  	autorest.Client
    30  	BaseURI        string
    31  	SubscriptionID string
    32  }
    33  
    34  // New creates an instance of the BaseClient client.
    35  func New(subscriptionID string) BaseClient {
    36  	return NewWithBaseURI(DefaultBaseURI, subscriptionID)
    37  }
    38  
    39  // NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint.  Use this when interacting with
    40  // an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
    41  func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
    42  	return BaseClient{
    43  		Client:         autorest.NewClientWithUserAgent(UserAgent()),
    44  		BaseURI:        baseURI,
    45  		SubscriptionID: subscriptionID,
    46  	}
    47  }
    48  

View as plain text