...

Source file src/github.com/Azure/azure-sdk-for-go/services/datalake/analytics/2016-11-01/job/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/datalake/analytics/2016-11-01/job

     1  // Package job implements the Azure ARM Job service API version 2016-11-01.
     2  //
     3  // Creates an Azure Data Lake Analytics job client.
     4  package job
     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  
    12  import (
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  const (
    17  	// DefaultAdlaJobDNSSuffix is the default value for adla job dns suffix
    18  	DefaultAdlaJobDNSSuffix = "azuredatalakeanalytics.net"
    19  )
    20  
    21  // BaseClient is the base client for Job.
    22  type BaseClient struct {
    23  	autorest.Client
    24  	AdlaJobDNSSuffix string
    25  }
    26  
    27  // New creates an instance of the BaseClient client.
    28  func New() BaseClient {
    29  	return NewWithoutDefaults(DefaultAdlaJobDNSSuffix)
    30  }
    31  
    32  // NewWithoutDefaults creates an instance of the BaseClient client.
    33  func NewWithoutDefaults(adlaJobDNSSuffix string) BaseClient {
    34  	return BaseClient{
    35  		Client:           autorest.NewClientWithUserAgent(UserAgent()),
    36  		AdlaJobDNSSuffix: adlaJobDNSSuffix,
    37  	}
    38  }
    39  

View as plain text