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