...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/customimagesearch/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/customimagesearch

     1  // Package customimagesearch implements the Azure ARM Customimagesearch service API version 1.0.
     2  //
     3  // The Bing Custom Image Search API lets you send an image search query to Bing and get back image search results
     4  // customized to meet your custom search definition.
     5  package customimagesearch
     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  
    13  import (
    14  	"github.com/Azure/go-autorest/autorest"
    15  )
    16  
    17  const (
    18  	// DefaultEndpoint is the default value for endpoint
    19  	DefaultEndpoint = "https://api.cognitive.microsoft.com"
    20  )
    21  
    22  // BaseClient is the base client for Customimagesearch.
    23  type BaseClient struct {
    24  	autorest.Client
    25  	Endpoint string
    26  }
    27  
    28  // New creates an instance of the BaseClient client.
    29  func New() BaseClient {
    30  	return NewWithoutDefaults(DefaultEndpoint)
    31  }
    32  
    33  // NewWithoutDefaults creates an instance of the BaseClient client.
    34  func NewWithoutDefaults(endpoint string) BaseClient {
    35  	return BaseClient{
    36  		Client:   autorest.NewClientWithUserAgent(UserAgent()),
    37  		Endpoint: endpoint,
    38  	}
    39  }
    40  

View as plain text