...

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

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

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

View as plain text