...

Source file src/github.com/Azure/azure-sdk-for-go/services/storage/datalake/2018-11-09/storagedatalake/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/storage/datalake/2018-11-09/storagedatalake

     1  // Package storagedatalake implements the Azure ARM Storagedatalake service API version 2018-11-09.
     2  //
     3  // Azure Data Lake Storage provides storage for Hadoop and other big data workloads.
     4  package storagedatalake
     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  	// DefaultDNSSuffix is the default value for dns suffix
    18  	DefaultDNSSuffix = "dfs.core.windows.net"
    19  )
    20  
    21  // BaseClient is the base client for Storagedatalake.
    22  type BaseClient struct {
    23  	autorest.Client
    24  	XMsVersion  string
    25  	AccountName string
    26  	DNSSuffix   string
    27  }
    28  
    29  // New creates an instance of the BaseClient client.
    30  func New(xMsVersion string, accountName string) BaseClient {
    31  	return NewWithoutDefaults(xMsVersion, accountName, DefaultDNSSuffix)
    32  }
    33  
    34  // NewWithoutDefaults creates an instance of the BaseClient client.
    35  func NewWithoutDefaults(xMsVersion string, accountName string, dNSSuffix string) BaseClient {
    36  	return BaseClient{
    37  		Client:      autorest.NewClientWithUserAgent(UserAgent()),
    38  		XMsVersion:  xMsVersion,
    39  		AccountName: accountName,
    40  		DNSSuffix:   dNSSuffix,
    41  	}
    42  }
    43  

View as plain text