...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/storage/tables/2019-02-02-preview/storagetables/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/storage/tables/2019-02-02-preview/storagetables

     1  // Package storagetables implements the Azure ARM Storagetables service API version 2019-02-02.
     2  //
     3  //
     4  package storagetables
     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  	// DefaultVersion is the default value for version
    18  	DefaultVersion = "2019-02-02"
    19  )
    20  
    21  // BaseClient is the base client for Storagetables.
    22  type BaseClient struct {
    23  	autorest.Client
    24  	URL     string
    25  	Version string
    26  }
    27  
    28  // New creates an instance of the BaseClient client.
    29  func New(URL string) BaseClient {
    30  	return NewWithoutDefaults(URL, DefaultVersion)
    31  }
    32  
    33  // NewWithoutDefaults creates an instance of the BaseClient client.
    34  func NewWithoutDefaults(URL string, version string) BaseClient {
    35  	return BaseClient{
    36  		Client:  autorest.NewClientWithUserAgent(UserAgent()),
    37  		URL:     URL,
    38  		Version: version,
    39  	}
    40  }
    41  

View as plain text