1// Package visualsearch implements the Azure ARM Visualsearch service API version 1.0.
2//
3// Visual Search API lets you discover insights about an image such as visually similar images, shopping sources, and
4// related searches. The API can also perform text recognition, identify entities (people, places, things), return
5// other topical content for the user to explore, and more. For more information, see [Visual Search
6// Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview).  **NOTE:** To comply
7// with the new EU Copyright Directive in France, the Bing Visual Search API must omit some content from certain EU
8// News sources for French users. The removed content may include thumbnail images and videos, video previews, and
9// snippets which accompany search results from these sources. As a consequence, the Bing APIs may serve fewer results
10// with thumbnail images and videos, video previews, and snippets to French users.
11package visualsearch
12
13// Copyright (c) Microsoft and contributors.  All rights reserved.
14//
15// Licensed under the Apache License, Version 2.0 (the "License");
16// you may not use this file except in compliance with the License.
17// You may obtain a copy of the License at
18// http://www.apache.org/licenses/LICENSE-2.0
19//
20// Unless required by applicable law or agreed to in writing, software
21// distributed under the License is distributed on an "AS IS" BASIS,
22// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23//
24// See the License for the specific language governing permissions and
25// limitations under the License.
26//
27// Code generated by Microsoft (R) AutoRest Code Generator.
28// Changes may cause incorrect behavior and will be lost if the code is regenerated.
29
30import (
31	"github.com/Azure/go-autorest/autorest"
32)
33
34const (
35	// DefaultEndpoint is the default value for endpoint
36	DefaultEndpoint = "https://api.cognitive.microsoft.com"
37)
38
39// BaseClient is the base client for Visualsearch.
40type BaseClient struct {
41	autorest.Client
42	Endpoint string
43}
44
45// New creates an instance of the BaseClient client.
46func New() BaseClient {
47	return NewWithoutDefaults(DefaultEndpoint)
48}
49
50// NewWithoutDefaults creates an instance of the BaseClient client.
51func NewWithoutDefaults(endpoint string) BaseClient {
52	return BaseClient{
53		Client:   autorest.NewClientWithUserAgent(UserAgent()),
54		Endpoint: endpoint,
55	}
56}
57