1// Package qnamaker implements the Azure ARM Qnamaker service API version 4.0. 2// 3// An API for QnAMaker Service 4package qnamaker 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 12import ( 13 "github.com/Azure/go-autorest/autorest" 14) 15 16// BaseClient is the base client for Qnamaker. 17type BaseClient struct { 18 autorest.Client 19 Endpoint string 20} 21 22// New creates an instance of the BaseClient client. 23func New(endpoint string) BaseClient { 24 return NewWithoutDefaults(endpoint) 25} 26 27// NewWithoutDefaults creates an instance of the BaseClient client. 28func NewWithoutDefaults(endpoint string) BaseClient { 29 return BaseClient{ 30 Client: autorest.NewClientWithUserAgent(UserAgent()), 31 Endpoint: endpoint, 32 } 33} 34