1 // Package authoring implements the Azure ARM Authoring service API version 3.0-preview. 2 // 3 // 4 package authoring 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 // BaseClient is the base client for Authoring. 17 type BaseClient struct { 18 autorest.Client 19 Endpoint string 20 } 21 22 // New creates an instance of the BaseClient client. 23 func New(endpoint string) BaseClient { 24 return NewWithoutDefaults(endpoint) 25 } 26 27 // NewWithoutDefaults creates an instance of the BaseClient client. 28 func NewWithoutDefaults(endpoint string) BaseClient { 29 return BaseClient{ 30 Client: autorest.NewClientWithUserAgent(UserAgent()), 31 Endpoint: endpoint, 32 } 33 } 34