1// Package customsearch implements the Azure ARM Customsearch service API version 1.0.
2//
3// The Bing Custom Search API lets you send a search query to Bing and get back search results customized to meet your
4// custom search definition.
5package customsearch
6
7// Copyright (c) Microsoft Corporation. All rights reserved.
8// Licensed under the MIT License. See License.txt in the project root for license information.
9//
10// Code generated by Microsoft (R) AutoRest Code Generator.
11// Changes may cause incorrect behavior and will be lost if the code is regenerated.
12
13import (
14	"github.com/Azure/go-autorest/autorest"
15)
16
17const (
18	// DefaultEndpoint is the default value for endpoint
19	DefaultEndpoint = "https://api.cognitive.microsoft.com"
20)
21
22// BaseClient is the base client for Customsearch.
23type BaseClient struct {
24	autorest.Client
25	Endpoint string
26}
27
28// New creates an instance of the BaseClient client.
29func New() BaseClient {
30	return NewWithoutDefaults(DefaultEndpoint)
31}
32
33// NewWithoutDefaults creates an instance of the BaseClient client.
34func NewWithoutDefaults(endpoint string) BaseClient {
35	return BaseClient{
36		Client:   autorest.NewClientWithUserAgent(UserAgent()),
37		Endpoint: endpoint,
38	}
39}
40