imagesearch

package
v68.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 7 Imported by: 381

Documentation

Overview

Package imagesearch implements the Azure ARM Imagesearch service API version 1.0.

The Image Search API lets you send a search query to Bing and get back a list of relevant images. This section provides technical details about the query parameters and headers that you use to request images and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Images](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/search-the-web).

Index

Constants

View Source
const (
	// DefaultEndpoint is the default value for endpoint
	DefaultEndpoint = "https://api.cognitive.microsoft.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AggregateOffer

type AggregateOffer struct {
	// Offers - READ-ONLY; A list of offers from merchants that have offerings related to the image.
	Offers *[]BasicOffer `json:"offers,omitempty"`
	// Seller - READ-ONLY; Seller for this offer
	Seller *Organization `json:"seller,omitempty"`
	// Price - READ-ONLY; The item's price.
	Price *float64 `json:"price,omitempty"`
	// PriceCurrency - READ-ONLY; The monetary currency. For example, USD. Possible values include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', 'JPY', 'CNY', 'AUD', 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW'
	PriceCurrency Currency `json:"priceCurrency,omitempty"`
	// Availability - READ-ONLY; The item's availability. The following are the possible values: Discontinued, InStock, InStoreOnly, LimitedAvailability, OnlineOnly, OutOfStock, PreOrder, SoldOut. Possible values include: 'Discontinued', 'InStock', 'InStoreOnly', 'LimitedAvailability', 'OnlineOnly', 'OutOfStock', 'PreOrder', 'SoldOut'
	Availability ItemAvailability `json:"availability,omitempty"`
	// AggregateRating - READ-ONLY; An aggregated rating that indicates how well the product has been rated by others.
	AggregateRating *AggregateRating `json:"aggregateRating,omitempty"`
	// LastUpdated - READ-ONLY; The last date that the offer was updated. The date is in the form YYYY-MM-DD.
	LastUpdated *string `json:"lastUpdated,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

AggregateOffer defines a list of offers from merchants that are related to the image.

func (AggregateOffer) AsAggregateOffer

func (ao AggregateOffer) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsAnswer

func (ao AggregateOffer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicAnswer

func (ao AggregateOffer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicCollectionPage

func (ao AggregateOffer) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicCreativeWork

func (ao AggregateOffer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicIdentifiable

func (ao AggregateOffer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicIntangible

func (ao AggregateOffer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicMediaObject

func (ao AggregateOffer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicOffer

func (ao AggregateOffer) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicResponse

func (ao AggregateOffer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicResponseBase

func (ao AggregateOffer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicSearchResultsAnswer

func (ao AggregateOffer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicStructuredValue

func (ao AggregateOffer) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicThing

func (ao AggregateOffer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicWebPage

func (ao AggregateOffer) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsCollectionPage

func (ao AggregateOffer) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsCreativeWork

func (ao AggregateOffer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsErrorResponse

func (ao AggregateOffer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsIdentifiable

func (ao AggregateOffer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageGallery

func (ao AggregateOffer) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageInsights

func (ao AggregateOffer) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageObject

func (ao AggregateOffer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImages

func (ao AggregateOffer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsIntangible

func (ao AggregateOffer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsMediaObject

func (ao AggregateOffer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsNormalizedRectangle

func (ao AggregateOffer) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsOffer

func (ao AggregateOffer) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsOrganization

func (ao AggregateOffer) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsPerson

func (ao AggregateOffer) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecipe

func (ao AggregateOffer) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecognizedEntity

func (ao AggregateOffer) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecognizedEntityRegion

func (ao AggregateOffer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsResponse

func (ao AggregateOffer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsResponseBase

func (ao AggregateOffer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsSearchResultsAnswer

func (ao AggregateOffer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsStructuredValue

func (ao AggregateOffer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsThing

func (ao AggregateOffer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsTrendingImages

func (ao AggregateOffer) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsWebPage

func (ao AggregateOffer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) MarshalJSON

func (ao AggregateOffer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AggregateOffer.

func (*AggregateOffer) UnmarshalJSON

func (ao *AggregateOffer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AggregateOffer struct.

type AggregateRating

type AggregateRating struct {
	// ReviewCount - READ-ONLY; The number of times the recipe has been rated or reviewed.
	ReviewCount *int32 `json:"reviewCount,omitempty"`
	// RatingValue - The mean (average) rating. The possible values are 1.0 through 5.0.
	RatingValue *float64 `json:"ratingValue,omitempty"`
	// BestRating - READ-ONLY; The highest rated review. The possible values are 1.0 through 5.0.
	BestRating *float64 `json:"bestRating,omitempty"`
	// Text - READ-ONLY; Text representation of an item.
	Text *string `json:"text,omitempty"`
	// Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating'
	Type Type `json:"_type,omitempty"`
}

AggregateRating defines the metrics that indicate how well an item was rated by others.

func (AggregateRating) AsAggregateRating

func (ar AggregateRating) AsAggregateRating() (*AggregateRating, bool)

AsAggregateRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsBasicPropertiesItem

func (ar AggregateRating) AsBasicPropertiesItem() (BasicPropertiesItem, bool)

AsBasicPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsBasicRating

func (ar AggregateRating) AsBasicRating() (BasicRating, bool)

AsBasicRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsPropertiesItem

func (ar AggregateRating) AsPropertiesItem() (*PropertiesItem, bool)

AsPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsRating

func (ar AggregateRating) AsRating() (*Rating, bool)

AsRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) MarshalJSON

func (ar AggregateRating) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AggregateRating.

type Answer

type Answer struct {
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Answer defines an answer.

func (Answer) AsAggregateOffer

func (a Answer) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsAnswer

func (a Answer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicAnswer

func (a Answer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCollectionPage

func (a Answer) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCreativeWork

func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable

func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible

func (a Answer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicMediaObject

func (a Answer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicOffer

func (a Answer) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponse

func (a Answer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponseBase

func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicSearchResultsAnswer

func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicStructuredValue

func (a Answer) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicThing

func (a Answer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicWebPage

func (a Answer) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Answer.

func (Answer) AsCollectionPage

func (a Answer) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Answer.

func (Answer) AsCreativeWork

func (a Answer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse

func (a Answer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable

func (a Answer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsImageGallery

func (a Answer) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Answer.

func (Answer) AsImageInsights

func (a Answer) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Answer.

func (Answer) AsImageObject

func (a Answer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Answer.

func (Answer) AsImages

func (a Answer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Answer.

func (Answer) AsIntangible

func (a Answer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsMediaObject

func (a Answer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsNormalizedRectangle

func (a Answer) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Answer.

func (Answer) AsOffer

func (a Answer) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsOrganization

func (a Answer) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Answer.

func (Answer) AsPerson

func (a Answer) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Answer.

func (Answer) AsRecipe

func (a Answer) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Answer.

func (Answer) AsRecognizedEntity

func (a Answer) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Answer.

func (Answer) AsRecognizedEntityRegion

func (a Answer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Answer.

func (Answer) AsResponse

func (a Answer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsResponseBase

func (a Answer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsSearchResultsAnswer

func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsStructuredValue

func (a Answer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsThing

func (a Answer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTrendingImages

func (a Answer) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Answer.

func (Answer) AsWebPage

func (a Answer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Answer.

func (Answer) MarshalJSON

func (a Answer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Answer.

type BaseClient

type BaseClient struct {
	autorest.Client
	Endpoint string
}

BaseClient is the base client for Imagesearch.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithoutDefaults

func NewWithoutDefaults(endpoint string) BaseClient

NewWithoutDefaults creates an instance of the BaseClient client.

type BasicAnswer

type BasicAnswer interface {
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
}

BasicAnswer defines an answer.

type BasicCollectionPage

type BasicCollectionPage interface {
	AsImageGallery() (*ImageGallery, bool)
	AsCollectionPage() (*CollectionPage, bool)
}

BasicCollectionPage defines a link to a webpage that contains a collection.

type BasicCreativeWork

type BasicCreativeWork interface {
	AsImageObject() (*ImageObject, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsCreativeWork() (*CreativeWork, bool)
}

BasicCreativeWork the most generic kind of creative work, including books, movies, photographs, software programs, etc.

type BasicIdentifiable

type BasicIdentifiable interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsRecognizedEntity() (*RecognizedEntity, bool)
	AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
	AsImageInsights() (*ImageInsights, bool)
	AsTrendingImages() (*TrendingImages, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsIdentifiable() (*Identifiable, bool)
}

BasicIdentifiable defines the identity of a resource.

type BasicIntangible

type BasicIntangible interface {
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsIntangible() (*Intangible, bool)
}

BasicIntangible a utility class that serves as the umbrella for a number of 'intangible' things such as quantities, structured values, etc.

type BasicMediaObject

type BasicMediaObject interface {
	AsImageObject() (*ImageObject, bool)
	AsMediaObject() (*MediaObject, bool)
}

BasicMediaObject defines a media object.

type BasicOffer

type BasicOffer interface {
	AsAggregateOffer() (*AggregateOffer, bool)
	AsOffer() (*Offer, bool)
}

BasicOffer defines a merchant's offer.

type BasicPropertiesItem

type BasicPropertiesItem interface {
	AsAggregateRating() (*AggregateRating, bool)
	AsRating() (*Rating, bool)
	AsBasicRating() (BasicRating, bool)
	AsPropertiesItem() (*PropertiesItem, bool)
}

BasicPropertiesItem defines an item.

type BasicRating

type BasicRating interface {
	AsAggregateRating() (*AggregateRating, bool)
	AsRating() (*Rating, bool)
}

BasicRating defines a rating.

type BasicResponse

type BasicResponse interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsRecognizedEntity() (*RecognizedEntity, bool)
	AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
	AsImageInsights() (*ImageInsights, bool)
	AsTrendingImages() (*TrendingImages, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsResponse() (*Response, bool)
}

BasicResponse defines a response. All schemas that could be returned at the root of a response should inherit from this

type BasicResponseBase

type BasicResponseBase interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIdentifiable() (*Identifiable, bool)
	AsBasicIdentifiable() (BasicIdentifiable, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsRecognizedEntity() (*RecognizedEntity, bool)
	AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
	AsImageInsights() (*ImageInsights, bool)
	AsTrendingImages() (*TrendingImages, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsResponseBase() (*ResponseBase, bool)
}

BasicResponseBase response base

type BasicSearchResultsAnswer

type BasicSearchResultsAnswer interface {
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
}

BasicSearchResultsAnswer defines a search result answer.

type BasicStructuredValue

type BasicStructuredValue interface {
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsStructuredValue() (*StructuredValue, bool)
}

BasicStructuredValue ...

type BasicThing

type BasicThing interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsThing() (*Thing, bool)
}

BasicThing defines a thing.

type BasicWebPage

type BasicWebPage interface {
	AsImageGallery() (*ImageGallery, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsWebPage() (*WebPage, bool)
}

BasicWebPage defines a webpage that is relevant to the query.

type CollectionPage

type CollectionPage struct {
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

CollectionPage defines a link to a webpage that contains a collection.

func (CollectionPage) AsAggregateOffer

func (cp CollectionPage) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsAnswer

func (cp CollectionPage) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicAnswer

func (cp CollectionPage) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicCollectionPage

func (cp CollectionPage) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicCreativeWork

func (cp CollectionPage) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicIdentifiable

func (cp CollectionPage) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicIntangible

func (cp CollectionPage) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicMediaObject

func (cp CollectionPage) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicOffer

func (cp CollectionPage) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicResponse

func (cp CollectionPage) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicResponseBase

func (cp CollectionPage) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicSearchResultsAnswer

func (cp CollectionPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicStructuredValue

func (cp CollectionPage) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicThing

func (cp CollectionPage) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicWebPage

func (cp CollectionPage) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsCollectionPage

func (cp CollectionPage) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsCreativeWork

func (cp CollectionPage) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsErrorResponse

func (cp CollectionPage) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsIdentifiable

func (cp CollectionPage) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageGallery

func (cp CollectionPage) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageInsights

func (cp CollectionPage) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageObject

func (cp CollectionPage) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImages

func (cp CollectionPage) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsIntangible

func (cp CollectionPage) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsMediaObject

func (cp CollectionPage) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsNormalizedRectangle

func (cp CollectionPage) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsOffer

func (cp CollectionPage) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsOrganization

func (cp CollectionPage) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsPerson

func (cp CollectionPage) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecipe

func (cp CollectionPage) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecognizedEntity

func (cp CollectionPage) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecognizedEntityRegion

func (cp CollectionPage) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsResponse

func (cp CollectionPage) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsResponseBase

func (cp CollectionPage) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsSearchResultsAnswer

func (cp CollectionPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsStructuredValue

func (cp CollectionPage) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsThing

func (cp CollectionPage) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsTrendingImages

func (cp CollectionPage) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsWebPage

func (cp CollectionPage) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) MarshalJSON

func (cp CollectionPage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CollectionPage.

func (*CollectionPage) UnmarshalJSON

func (cp *CollectionPage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CollectionPage struct.

type CreativeWork

type CreativeWork struct {
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

CreativeWork the most generic kind of creative work, including books, movies, photographs, software programs, etc.

func (CreativeWork) AsAggregateOffer

func (cw CreativeWork) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAnswer

func (cw CreativeWork) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer

func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCollectionPage

func (cw CreativeWork) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork

func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable

func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible

func (cw CreativeWork) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicMediaObject

func (cw CreativeWork) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicOffer

func (cw CreativeWork) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponse

func (cw CreativeWork) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponseBase

func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicSearchResultsAnswer

func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicStructuredValue

func (cw CreativeWork) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicThing

func (cw CreativeWork) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicWebPage

func (cw CreativeWork) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCollectionPage

func (cw CreativeWork) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCreativeWork

func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse

func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable

func (cw CreativeWork) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageGallery

func (cw CreativeWork) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageInsights

func (cw CreativeWork) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject

func (cw CreativeWork) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImages

func (cw CreativeWork) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible

func (cw CreativeWork) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMediaObject

func (cw CreativeWork) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsNormalizedRectangle

func (cw CreativeWork) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOffer

func (cw CreativeWork) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOrganization

func (cw CreativeWork) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPerson

func (cw CreativeWork) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecipe

func (cw CreativeWork) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecognizedEntity

func (cw CreativeWork) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecognizedEntityRegion

func (cw CreativeWork) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponse

func (cw CreativeWork) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponseBase

func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResultsAnswer

func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsStructuredValue

func (cw CreativeWork) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsThing

func (cw CreativeWork) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsTrendingImages

func (cw CreativeWork) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsWebPage

func (cw CreativeWork) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) MarshalJSON

func (cw CreativeWork) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreativeWork.

func (*CreativeWork) UnmarshalJSON

func (cw *CreativeWork) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CreativeWork struct.

type Currency

type Currency string

Currency enumerates the values for currency.

const (
	// AED ...
	AED Currency = "AED"
	// AFN ...
	AFN Currency = "AFN"
	// ALL ...
	ALL Currency = "ALL"
	// AMD ...
	AMD Currency = "AMD"
	// ANG ...
	ANG Currency = "ANG"
	// AOA ...
	AOA Currency = "AOA"
	// ARS ...
	ARS Currency = "ARS"
	// AUD ...
	AUD Currency = "AUD"
	// AWG ...
	AWG Currency = "AWG"
	// AZN ...
	AZN Currency = "AZN"
	// BAM ...
	BAM Currency = "BAM"
	// BBD ...
	BBD Currency = "BBD"
	// BDT ...
	BDT Currency = "BDT"
	// BGN ...
	BGN Currency = "BGN"
	// BHD ...
	BHD Currency = "BHD"
	// BIF ...
	BIF Currency = "BIF"
	// BMD ...
	BMD Currency = "BMD"
	// BND ...
	BND Currency = "BND"
	// BOB ...
	BOB Currency = "BOB"
	// BOV ...
	BOV Currency = "BOV"
	// BRL ...
	BRL Currency = "BRL"
	// BSD ...
	BSD Currency = "BSD"
	// BTN ...
	BTN Currency = "BTN"
	// BWP ...
	BWP Currency = "BWP"
	// BYR ...
	BYR Currency = "BYR"
	// BZD ...
	BZD Currency = "BZD"
	// CAD ...
	CAD Currency = "CAD"
	// CDF ...
	CDF Currency = "CDF"
	// CHE ...
	CHE Currency = "CHE"
	// CHF ...
	CHF Currency = "CHF"
	// CHW ...
	CHW Currency = "CHW"
	// CLF ...
	CLF Currency = "CLF"
	// CLP ...
	CLP Currency = "CLP"
	// CNY ...
	CNY Currency = "CNY"
	// COP ...
	COP Currency = "COP"
	// COU ...
	COU Currency = "COU"
	// CRC ...
	CRC Currency = "CRC"
	// CUC ...
	CUC Currency = "CUC"
	// CUP ...
	CUP Currency = "CUP"
	// CVE ...
	CVE Currency = "CVE"
	// CZK ...
	CZK Currency = "CZK"
	// DJF ...
	DJF Currency = "DJF"
	// DKK ...
	DKK Currency = "DKK"
	// DOP ...
	DOP Currency = "DOP"
	// DZD ...
	DZD Currency = "DZD"
	// EGP ...
	EGP Currency = "EGP"
	// ERN ...
	ERN Currency = "ERN"
	// ETB ...
	ETB Currency = "ETB"
	// EUR ...
	EUR Currency = "EUR"
	// FJD ...
	FJD Currency = "FJD"
	// FKP ...
	FKP Currency = "FKP"
	// GBP ...
	GBP Currency = "GBP"
	// GEL ...
	GEL Currency = "GEL"
	// GHS ...
	GHS Currency = "GHS"
	// GIP ...
	GIP Currency = "GIP"
	// GMD ...
	GMD Currency = "GMD"
	// GNF ...
	GNF Currency = "GNF"
	// GTQ ...
	GTQ Currency = "GTQ"
	// GYD ...
	GYD Currency = "GYD"
	// HKD ...
	HKD Currency = "HKD"
	// HNL ...
	HNL Currency = "HNL"
	// HRK ...
	HRK Currency = "HRK"
	// HTG ...
	HTG Currency = "HTG"
	// HUF ...
	HUF Currency = "HUF"
	// IDR ...
	IDR Currency = "IDR"
	// ILS ...
	ILS Currency = "ILS"
	// INR ...
	INR Currency = "INR"
	// IQD ...
	IQD Currency = "IQD"
	// IRR ...
	IRR Currency = "IRR"
	// ISK ...
	ISK Currency = "ISK"
	// JMD ...
	JMD Currency = "JMD"
	// JOD ...
	JOD Currency = "JOD"
	// JPY ...
	JPY Currency = "JPY"
	// KES ...
	KES Currency = "KES"
	// KGS ...
	KGS Currency = "KGS"
	// KHR ...
	KHR Currency = "KHR"
	// KMF ...
	KMF Currency = "KMF"
	// KPW ...
	KPW Currency = "KPW"
	// KRW ...
	KRW Currency = "KRW"
	// KWD ...
	KWD Currency = "KWD"
	// KYD ...
	KYD Currency = "KYD"
	// KZT ...
	KZT Currency = "KZT"
	// LAK ...
	LAK Currency = "LAK"
	// LBP ...
	LBP Currency = "LBP"
	// LKR ...
	LKR Currency = "LKR"
	// LRD ...
	LRD Currency = "LRD"
	// LSL ...
	LSL Currency = "LSL"
	// LYD ...
	LYD Currency = "LYD"
	// MAD ...
	MAD Currency = "MAD"
	// MDL ...
	MDL Currency = "MDL"
	// MGA ...
	MGA Currency = "MGA"
	// MKD ...
	MKD Currency = "MKD"
	// MMK ...
	MMK Currency = "MMK"
	// MNT ...
	MNT Currency = "MNT"
	// MOP ...
	MOP Currency = "MOP"
	// MRO ...
	MRO Currency = "MRO"
	// MUR ...
	MUR Currency = "MUR"
	// MVR ...
	MVR Currency = "MVR"
	// MWK ...
	MWK Currency = "MWK"
	// MXN ...
	MXN Currency = "MXN"
	// MXV ...
	MXV Currency = "MXV"
	// MYR ...
	MYR Currency = "MYR"
	// MZN ...
	MZN Currency = "MZN"
	// NAD ...
	NAD Currency = "NAD"
	// NGN ...
	NGN Currency = "NGN"
	// NIO ...
	NIO Currency = "NIO"
	// NOK ...
	NOK Currency = "NOK"
	// NPR ...
	NPR Currency = "NPR"
	// NZD ...
	NZD Currency = "NZD"
	// OMR ...
	OMR Currency = "OMR"
	// PAB ...
	PAB Currency = "PAB"
	// PEN ...
	PEN Currency = "PEN"
	// PGK ...
	PGK Currency = "PGK"
	// PHP ...
	PHP Currency = "PHP"
	// PKR ...
	PKR Currency = "PKR"
	// PLN ...
	PLN Currency = "PLN"
	// PYG ...
	PYG Currency = "PYG"
	// QAR ...
	QAR Currency = "QAR"
	// RON ...
	RON Currency = "RON"
	// RSD ...
	RSD Currency = "RSD"
	// RUB ...
	RUB Currency = "RUB"
	// RWF ...
	RWF Currency = "RWF"
	// SAR ...
	SAR Currency = "SAR"
	// SBD ...
	SBD Currency = "SBD"
	// SCR ...
	SCR Currency = "SCR"
	// SDG ...
	SDG Currency = "SDG"
	// SEK ...
	SEK Currency = "SEK"
	// SGD ...
	SGD Currency = "SGD"
	// SHP ...
	SHP Currency = "SHP"
	// SLL ...
	SLL Currency = "SLL"
	// SOS ...
	SOS Currency = "SOS"
	// SRD ...
	SRD Currency = "SRD"
	// SSP ...
	SSP Currency = "SSP"
	// STD ...
	STD Currency = "STD"
	// SYP ...
	SYP Currency = "SYP"
	// SZL ...
	SZL Currency = "SZL"
	// THB ...
	THB Currency = "THB"
	// TJS ...
	TJS Currency = "TJS"
	// TMT ...
	TMT Currency = "TMT"
	// TND ...
	TND Currency = "TND"
	// TOP ...
	TOP Currency = "TOP"
	// TRY ...
	TRY Currency = "TRY"
	// TTD ...
	TTD Currency = "TTD"
	// TWD ...
	TWD Currency = "TWD"
	// TZS ...
	TZS Currency = "TZS"
	// UAH ...
	UAH Currency = "UAH"
	// UGX ...
	UGX Currency = "UGX"
	// USD ...
	USD Currency = "USD"
	// UYU ...
	UYU Currency = "UYU"
	// UZS ...
	UZS Currency = "UZS"
	// VEF ...
	VEF Currency = "VEF"
	// VND ...
	VND Currency = "VND"
	// VUV ...
	VUV Currency = "VUV"
	// WST ...
	WST Currency = "WST"
	// XAF ...
	XAF Currency = "XAF"
	// XCD ...
	XCD Currency = "XCD"
	// XOF ...
	XOF Currency = "XOF"
	// XPF ...
	XPF Currency = "XPF"
	// YER ...
	YER Currency = "YER"
	// ZAR ...
	ZAR Currency = "ZAR"
	// ZMW ...
	ZMW Currency = "ZMW"
)

func PossibleCurrencyValues

func PossibleCurrencyValues() []Currency

PossibleCurrencyValues returns an array of possible values for the Currency const type.

type Error

type Error struct {
	// Code - The error code that identifies the category of error. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'
	Code ErrorCode `json:"code,omitempty"`
	// SubCode - READ-ONLY; The error code that further helps to identify the error. Possible values include: 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', 'HTTPNotAllowed', 'Blocked', 'AuthorizationMissing', 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired'
	SubCode ErrorSubCode `json:"subCode,omitempty"`
	// Message - A description of the error.
	Message *string `json:"message,omitempty"`
	// MoreDetails - READ-ONLY; A description that provides additional information about the error.
	MoreDetails *string `json:"moreDetails,omitempty"`
	// Parameter - READ-ONLY; The parameter in the request that caused the error.
	Parameter *string `json:"parameter,omitempty"`
	// Value - READ-ONLY; The parameter's value in the request that was not valid.
	Value *string `json:"value,omitempty"`
}

Error defines the error that occurred.

func (Error) MarshalJSON

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Error.

type ErrorCode

type ErrorCode string

ErrorCode enumerates the values for error code.

const (
	// InsufficientAuthorization ...
	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
	// InvalidAuthorization ...
	InvalidAuthorization ErrorCode = "InvalidAuthorization"
	// InvalidRequest ...
	InvalidRequest ErrorCode = "InvalidRequest"
	// None ...
	None ErrorCode = "None"
	// RateLimitExceeded ...
	RateLimitExceeded ErrorCode = "RateLimitExceeded"
	// ServerError ...
	ServerError ErrorCode = "ServerError"
)

func PossibleErrorCodeValues

func PossibleErrorCodeValues() []ErrorCode

PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.

type ErrorResponse

type ErrorResponse struct {
	// Errors - A list of errors that describe the reasons why the request failed.
	Errors *[]Error `json:"errors,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ErrorResponse the top-level response that represents a failed request.

func (ErrorResponse) AsAggregateOffer

func (er ErrorResponse) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsAnswer

func (er ErrorResponse) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAnswer

func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCollectionPage

func (er ErrorResponse) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCreativeWork

func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIdentifiable

func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIntangible

func (er ErrorResponse) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicMediaObject

func (er ErrorResponse) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicOffer

func (er ErrorResponse) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponse

func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponseBase

func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicSearchResultsAnswer

func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicStructuredValue

func (er ErrorResponse) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicThing

func (er ErrorResponse) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicWebPage

func (er ErrorResponse) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCollectionPage

func (er ErrorResponse) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCreativeWork

func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsErrorResponse

func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIdentifiable

func (er ErrorResponse) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageGallery

func (er ErrorResponse) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageInsights

func (er ErrorResponse) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageObject

func (er ErrorResponse) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImages

func (er ErrorResponse) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIntangible

func (er ErrorResponse) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsMediaObject

func (er ErrorResponse) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsNormalizedRectangle

func (er ErrorResponse) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsOffer

func (er ErrorResponse) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsOrganization

func (er ErrorResponse) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPerson

func (er ErrorResponse) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecipe

func (er ErrorResponse) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecognizedEntity

func (er ErrorResponse) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecognizedEntityRegion

func (er ErrorResponse) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponse

func (er ErrorResponse) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponseBase

func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResultsAnswer

func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsStructuredValue

func (er ErrorResponse) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsThing

func (er ErrorResponse) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsTrendingImages

func (er ErrorResponse) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsWebPage

func (er ErrorResponse) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) MarshalJSON

func (er ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorResponse.

type ErrorSubCode

type ErrorSubCode string

ErrorSubCode enumerates the values for error sub code.

const (
	// AuthorizationDisabled ...
	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
	// AuthorizationExpired ...
	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
	// AuthorizationMissing ...
	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
	// AuthorizationRedundancy ...
	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
	// Blocked ...
	Blocked ErrorSubCode = "Blocked"
	// HTTPNotAllowed ...
	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
	// NotImplemented ...
	NotImplemented ErrorSubCode = "NotImplemented"
	// ParameterInvalidValue ...
	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
	// ParameterMissing ...
	ParameterMissing ErrorSubCode = "ParameterMissing"
	// ResourceError ...
	ResourceError ErrorSubCode = "ResourceError"
	// UnexpectedError ...
	UnexpectedError ErrorSubCode = "UnexpectedError"
)

func PossibleErrorSubCodeValues

func PossibleErrorSubCodeValues() []ErrorSubCode

PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.

type Freshness

type Freshness string

Freshness enumerates the values for freshness.

const (
	// Day ...
	Day Freshness = "Day"
	// Month ...
	Month Freshness = "Month"
	// Week ...
	Week Freshness = "Week"
)

func PossibleFreshnessValues

func PossibleFreshnessValues() []Freshness

PossibleFreshnessValues returns an array of possible values for the Freshness const type.

type Identifiable

type Identifiable struct {
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Identifiable defines the identity of a resource.

func (Identifiable) AsAggregateOffer

func (i Identifiable) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsAnswer

func (i Identifiable) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAnswer

func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCollectionPage

func (i Identifiable) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCreativeWork

func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIdentifiable

func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIntangible

func (i Identifiable) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicMediaObject

func (i Identifiable) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicOffer

func (i Identifiable) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponse

func (i Identifiable) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponseBase

func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicSearchResultsAnswer

func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicStructuredValue

func (i Identifiable) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicThing

func (i Identifiable) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicWebPage

func (i Identifiable) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCollectionPage

func (i Identifiable) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCreativeWork

func (i Identifiable) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsErrorResponse

func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIdentifiable

func (i Identifiable) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageGallery

func (i Identifiable) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageInsights

func (i Identifiable) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageObject

func (i Identifiable) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImages

func (i Identifiable) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIntangible

func (i Identifiable) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsMediaObject

func (i Identifiable) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsNormalizedRectangle

func (i Identifiable) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsOffer

func (i Identifiable) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsOrganization

func (i Identifiable) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPerson

func (i Identifiable) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecipe

func (i Identifiable) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecognizedEntity

func (i Identifiable) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecognizedEntityRegion

func (i Identifiable) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponse

func (i Identifiable) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponseBase

func (i Identifiable) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResultsAnswer

func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsStructuredValue

func (i Identifiable) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsThing

func (i Identifiable) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsTrendingImages

func (i Identifiable) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsWebPage

func (i Identifiable) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) MarshalJSON

func (i Identifiable) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Identifiable.

type ImageAspect

type ImageAspect string

ImageAspect enumerates the values for image aspect.

const (
	// All ...
	All ImageAspect = "All"
	// Square ...
	Square ImageAspect = "Square"
	// Tall ...
	Tall ImageAspect = "Tall"
	// Wide ...
	Wide ImageAspect = "Wide"
)

func PossibleImageAspectValues

func PossibleImageAspectValues() []ImageAspect

PossibleImageAspectValues returns an array of possible values for the ImageAspect const type.

type ImageColor

type ImageColor string

ImageColor enumerates the values for image color.

const (
	// Black ...
	Black ImageColor = "Black"
	// Blue ...
	Blue ImageColor = "Blue"
	// Brown ...
	Brown ImageColor = "Brown"
	// ColorOnly ...
	ColorOnly ImageColor = "ColorOnly"
	// Gray ...
	Gray ImageColor = "Gray"
	// Green ...
	Green ImageColor = "Green"
	// Monochrome ...
	Monochrome ImageColor = "Monochrome"
	// Orange ...
	Orange ImageColor = "Orange"
	// Pink ...
	Pink ImageColor = "Pink"
	// Purple ...
	Purple ImageColor = "Purple"
	// Red ...
	Red ImageColor = "Red"
	// Teal ...
	Teal ImageColor = "Teal"
	// White ...
	White ImageColor = "White"
	// Yellow ...
	Yellow ImageColor = "Yellow"
)

func PossibleImageColorValues

func PossibleImageColorValues() []ImageColor

PossibleImageColorValues returns an array of possible values for the ImageColor const type.

type ImageContent

type ImageContent string

ImageContent enumerates the values for image content.

const (
	// Face ...
	Face ImageContent = "Face"
	// Portrait ...
	Portrait ImageContent = "Portrait"
)

func PossibleImageContentValues

func PossibleImageContentValues() []ImageContent

PossibleImageContentValues returns an array of possible values for the ImageContent const type.

type ImageCropType

type ImageCropType string

ImageCropType enumerates the values for image crop type.

const (
	// Rectangular ...
	Rectangular ImageCropType = "Rectangular"
)

func PossibleImageCropTypeValues

func PossibleImageCropTypeValues() []ImageCropType

PossibleImageCropTypeValues returns an array of possible values for the ImageCropType const type.

type ImageGallery

type ImageGallery struct {
	// Source - READ-ONLY; The publisher or social network where the images were found. You must attribute the publisher as the source where the collection was found.
	Source *string `json:"source,omitempty"`
	// ImagesCount - READ-ONLY; The number of related images found in the collection.
	ImagesCount *int64 `json:"imagesCount,omitempty"`
	// FollowersCount - READ-ONLY; The number of users on the social network that follow the creator.
	FollowersCount *int64 `json:"followersCount,omitempty"`
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ImageGallery defines a link to a webpage that contains a collection of related images.

func (ImageGallery) AsAggregateOffer

func (ig ImageGallery) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsAnswer

func (ig ImageGallery) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicAnswer

func (ig ImageGallery) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicCollectionPage

func (ig ImageGallery) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicCreativeWork

func (ig ImageGallery) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicIdentifiable

func (ig ImageGallery) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicIntangible

func (ig ImageGallery) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicMediaObject

func (ig ImageGallery) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicOffer

func (ig ImageGallery) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicResponse

func (ig ImageGallery) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicResponseBase

func (ig ImageGallery) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicSearchResultsAnswer

func (ig ImageGallery) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicStructuredValue

func (ig ImageGallery) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicThing

func (ig ImageGallery) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicWebPage

func (ig ImageGallery) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsCollectionPage

func (ig ImageGallery) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsCreativeWork

func (ig ImageGallery) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsErrorResponse

func (ig ImageGallery) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsIdentifiable

func (ig ImageGallery) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageGallery

func (ig ImageGallery) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageInsights

func (ig ImageGallery) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageObject

func (ig ImageGallery) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImages

func (ig ImageGallery) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsIntangible

func (ig ImageGallery) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsMediaObject

func (ig ImageGallery) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsNormalizedRectangle

func (ig ImageGallery) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsOffer

func (ig ImageGallery) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsOrganization

func (ig ImageGallery) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsPerson

func (ig ImageGallery) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecipe

func (ig ImageGallery) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecognizedEntity

func (ig ImageGallery) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecognizedEntityRegion

func (ig ImageGallery) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsResponse

func (ig ImageGallery) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsResponseBase

func (ig ImageGallery) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsSearchResultsAnswer

func (ig ImageGallery) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsStructuredValue

func (ig ImageGallery) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsThing

func (ig ImageGallery) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsTrendingImages

func (ig ImageGallery) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsWebPage

func (ig ImageGallery) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) MarshalJSON

func (ig ImageGallery) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageGallery.

func (*ImageGallery) UnmarshalJSON

func (ig *ImageGallery) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageGallery struct.

type ImageInsightModule

type ImageInsightModule string

ImageInsightModule enumerates the values for image insight module.

const (
	// ImageInsightModuleAll ...
	ImageInsightModuleAll ImageInsightModule = "All"
	// ImageInsightModuleBRQ ...
	ImageInsightModuleBRQ ImageInsightModule = "BRQ"
	// ImageInsightModuleCaption ...
	ImageInsightModuleCaption ImageInsightModule = "Caption"
	// ImageInsightModuleCollections ...
	ImageInsightModuleCollections ImageInsightModule = "Collections"
	// ImageInsightModulePagesIncluding ...
	ImageInsightModulePagesIncluding ImageInsightModule = "PagesIncluding"
	// ImageInsightModuleRecipes ...
	ImageInsightModuleRecipes ImageInsightModule = "Recipes"
	// ImageInsightModuleRecognizedEntities ...
	ImageInsightModuleRecognizedEntities ImageInsightModule = "RecognizedEntities"
	// ImageInsightModuleRelatedSearches ...
	ImageInsightModuleRelatedSearches ImageInsightModule = "RelatedSearches"
	// ImageInsightModuleShoppingSources ...
	ImageInsightModuleShoppingSources ImageInsightModule = "ShoppingSources"
	// ImageInsightModuleSimilarImages ...
	ImageInsightModuleSimilarImages ImageInsightModule = "SimilarImages"
	// ImageInsightModuleSimilarProducts ...
	ImageInsightModuleSimilarProducts ImageInsightModule = "SimilarProducts"
	// ImageInsightModuleTags ...
	ImageInsightModuleTags ImageInsightModule = "Tags"
)

func PossibleImageInsightModuleValues

func PossibleImageInsightModuleValues() []ImageInsightModule

PossibleImageInsightModuleValues returns an array of possible values for the ImageInsightModule const type.

type ImageInsights

type ImageInsights struct {
	autorest.Response `json:"-"`
	// ImageInsightsToken - READ-ONLY; A token that you use in a subsequent call to the Image Search API to get more information about the image. For information about using this token, see the insightsToken query parameter. This token has the same usage as the token in the Image object.
	ImageInsightsToken *string `json:"imageInsightsToken,omitempty"`
	// BestRepresentativeQuery - READ-ONLY; The query term that best represents the image. Clicking the link in the Query object, takes the user to a webpage with more pictures of the image.
	BestRepresentativeQuery *Query `json:"bestRepresentativeQuery,omitempty"`
	// ImageCaption - READ-ONLY; The caption to use for the image.
	ImageCaption *ImageInsightsImageCaption `json:"imageCaption,omitempty"`
	// RelatedCollections - READ-ONLY; A list of links to webpages that contain related images.
	RelatedCollections *RelatedCollectionsModule `json:"relatedCollections,omitempty"`
	// PagesIncluding - READ-ONLY; A list of webpages that contain the image. To access the webpage, use the URL in the image's hostPageUrl field.
	PagesIncluding *ImagesModule `json:"pagesIncluding,omitempty"`
	// ShoppingSources - READ-ONLY; A list of merchants that offer items related to the image. For example, if the image is of an apple pie, the list contains merchants that are selling apple pies.
	ShoppingSources *AggregateOffer `json:"shoppingSources,omitempty"`
	// RelatedSearches - READ-ONLY; A list of related queries made by others.
	RelatedSearches *RelatedSearchesModule `json:"relatedSearches,omitempty"`
	// Recipes - READ-ONLY; A list of recipes related to the image. For example, if the image is of an apple pie, the list contains recipes for making an apple pie.
	Recipes *RecipesModule `json:"recipes,omitempty"`
	// VisuallySimilarImages - READ-ONLY; A list of images that are visually similar to the original image. For example, if the specified image is of a sunset over a body of water, the list of similar images are of a sunset over a body of water. If the specified image is of a person, similar images might be of the same person or they might be of persons dressed similarly or in a similar setting. The criteria for similarity continues to evolve.
	VisuallySimilarImages *ImagesModule `json:"visuallySimilarImages,omitempty"`
	// VisuallySimilarProducts - READ-ONLY; A list of images that contain products that are visually similar to products found in the original image. For example, if the specified image contains a dress, the list of similar images contain a dress. The image provides summary information about offers that Bing found online for the product.
	VisuallySimilarProducts *ImagesModule `json:"visuallySimilarProducts,omitempty"`
	// RecognizedEntityGroups - READ-ONLY; A list of groups that contain images of entities that match the entity found in the specified image. For example, the response might include images from the general celebrity group if the entity was recognized in that group.
	RecognizedEntityGroups *RecognizedEntitiesModule `json:"recognizedEntityGroups,omitempty"`
	// ImageTags - READ-ONLY; A list of characteristics of the content found in the image. For example, if the image is of a person, the tags might indicate the person's gender and the type of clothes they're wearing.
	ImageTags *ImageTagsModule `json:"imageTags,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ImageInsights the top-level object that the response includes when an image insights request succeeds. For information about requesting image insights, see the [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken) query parameter. The modules query parameter affects the fields that Bing includes in the response. If you set [modules](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#modulesrequested) to only Caption, then this object includes only the imageCaption field.

func (ImageInsights) AsAggregateOffer

func (ii ImageInsights) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsAnswer

func (ii ImageInsights) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicAnswer

func (ii ImageInsights) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicCollectionPage

func (ii ImageInsights) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicCreativeWork

func (ii ImageInsights) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicIdentifiable

func (ii ImageInsights) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicIntangible

func (ii ImageInsights) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicMediaObject

func (ii ImageInsights) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicOffer

func (ii ImageInsights) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicResponse

func (ii ImageInsights) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicResponseBase

func (ii ImageInsights) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicSearchResultsAnswer

func (ii ImageInsights) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicStructuredValue

func (ii ImageInsights) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicThing

func (ii ImageInsights) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicWebPage

func (ii ImageInsights) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsCollectionPage

func (ii ImageInsights) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsCreativeWork

func (ii ImageInsights) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsErrorResponse

func (ii ImageInsights) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsIdentifiable

func (ii ImageInsights) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageGallery

func (ii ImageInsights) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageInsights

func (ii ImageInsights) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageObject

func (ii ImageInsights) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImages

func (ii ImageInsights) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsIntangible

func (ii ImageInsights) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsMediaObject

func (ii ImageInsights) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsNormalizedRectangle

func (ii ImageInsights) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsOffer

func (ii ImageInsights) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsOrganization

func (ii ImageInsights) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsPerson

func (ii ImageInsights) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecipe

func (ii ImageInsights) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecognizedEntity

func (ii ImageInsights) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecognizedEntityRegion

func (ii ImageInsights) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsResponse

func (ii ImageInsights) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsResponseBase

func (ii ImageInsights) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsSearchResultsAnswer

func (ii ImageInsights) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsStructuredValue

func (ii ImageInsights) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsThing

func (ii ImageInsights) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsTrendingImages

func (ii ImageInsights) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsWebPage

func (ii ImageInsights) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) MarshalJSON

func (ii ImageInsights) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageInsights.

type ImageInsightsImageCaption

type ImageInsightsImageCaption struct {
	// Caption - A caption about the image.
	Caption *string `json:"caption,omitempty"`
	// DataSourceURL - The URL to the website where the caption was found. You must attribute the caption to the source. For example, by displaying the domain name from the URL next to the caption and using the URL to link to the source website.
	DataSourceURL *string `json:"dataSourceUrl,omitempty"`
	// RelatedSearches - A list of entities found in the caption. Use the contents of the Query object to find the entity in the caption and create a link. The link takes the user to images of the entity.
	RelatedSearches *[]Query `json:"relatedSearches,omitempty"`
}

ImageInsightsImageCaption defines an image's caption.

type ImageLicense

type ImageLicense string

ImageLicense enumerates the values for image license.

const (
	// ImageLicenseAll ...
	ImageLicenseAll ImageLicense = "All"
	// ImageLicenseAny ...
	ImageLicenseAny ImageLicense = "Any"
	// ImageLicenseModify ...
	ImageLicenseModify ImageLicense = "Modify"
	// ImageLicenseModifyCommercially ...
	ImageLicenseModifyCommercially ImageLicense = "ModifyCommercially"
	// ImageLicensePublic ...
	ImageLicensePublic ImageLicense = "Public"
	// ImageLicenseShare ...
	ImageLicenseShare ImageLicense = "Share"
	// ImageLicenseShareCommercially ...
	ImageLicenseShareCommercially ImageLicense = "ShareCommercially"
)

func PossibleImageLicenseValues

func PossibleImageLicenseValues() []ImageLicense

PossibleImageLicenseValues returns an array of possible values for the ImageLicense const type.

type ImageObject

type ImageObject struct {
	// Thumbnail - READ-ONLY; The URL to a thumbnail of the image
	Thumbnail *ImageObject `json:"thumbnail,omitempty"`
	// ImageInsightsToken - READ-ONLY; The token that you use in a subsequent call to the Image Search API to get additional information about the image. For information about using this token, see the insightsToken query parameter.
	ImageInsightsToken *string `json:"imageInsightsToken,omitempty"`
	// InsightsMetadata - READ-ONLY; A count of the number of websites where you can shop or perform other actions related to the image. For example, if the image is of an apple pie, this object includes a count of the number of websites where you can buy an apple pie. To indicate the number of offers in your UX, include badging such as a shopping cart icon that contains the count. When the user clicks on the icon, use imageInsightsToken to get the list of websites.
	InsightsMetadata *ImagesImageMetadata `json:"insightsMetadata,omitempty"`
	// ImageID - READ-ONLY; Unique Id for the image
	ImageID *string `json:"imageId,omitempty"`
	// AccentColor - READ-ONLY; A three-byte hexadecimal number that represents the color that dominates the image. Use the color as the temporary background in your client until the image is loaded.
	AccentColor *string `json:"accentColor,omitempty"`
	// VisualWords - READ-ONLY; Visual representation of the image. Used for getting more sizes
	VisualWords *string `json:"visualWords,omitempty"`
	// ContentURL - READ-ONLY; Original URL to retrieve the source (file) for the media object (e.g the source URL for the image).
	ContentURL *string `json:"contentUrl,omitempty"`
	// HostPageURL - READ-ONLY; URL of the page that hosts the media object.
	HostPageURL *string `json:"hostPageUrl,omitempty"`
	// ContentSize - READ-ONLY; Size of the media object content (use format "value unit" e.g "1024 B").
	ContentSize *string `json:"contentSize,omitempty"`
	// EncodingFormat - READ-ONLY; Encoding format (e.g mp3, mp4, jpeg, etc).
	EncodingFormat *string `json:"encodingFormat,omitempty"`
	// HostPageDisplayURL - READ-ONLY; Display URL of the page that hosts the media object.
	HostPageDisplayURL *string `json:"hostPageDisplayUrl,omitempty"`
	// Width - READ-ONLY; The width of the source media object, in pixels.
	Width *int32 `json:"width,omitempty"`
	// Height - READ-ONLY; The height of the source media object, in pixels.
	Height *int32 `json:"height,omitempty"`
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ImageObject defines an image

func (ImageObject) AsAggregateOffer

func (ioVar ImageObject) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsAnswer

func (ioVar ImageObject) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAnswer

func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCollectionPage

func (ioVar ImageObject) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCreativeWork

func (ioVar ImageObject) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIdentifiable

func (ioVar ImageObject) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIntangible

func (ioVar ImageObject) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicMediaObject

func (ioVar ImageObject) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicOffer

func (ioVar ImageObject) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponse

func (ioVar ImageObject) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponseBase

func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicSearchResultsAnswer

func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicStructuredValue

func (ioVar ImageObject) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicThing

func (ioVar ImageObject) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicWebPage

func (ioVar ImageObject) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCollectionPage

func (ioVar ImageObject) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCreativeWork

func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsErrorResponse

func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIdentifiable

func (ioVar ImageObject) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageGallery

func (ioVar ImageObject) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageInsights

func (ioVar ImageObject) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageObject

func (ioVar ImageObject) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImages

func (ioVar ImageObject) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIntangible

func (ioVar ImageObject) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsMediaObject

func (ioVar ImageObject) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsNormalizedRectangle

func (ioVar ImageObject) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsOffer

func (ioVar ImageObject) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsOrganization

func (ioVar ImageObject) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPerson

func (ioVar ImageObject) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecipe

func (ioVar ImageObject) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecognizedEntity

func (ioVar ImageObject) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecognizedEntityRegion

func (ioVar ImageObject) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponse

func (ioVar ImageObject) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponseBase

func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResultsAnswer

func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsStructuredValue

func (ioVar ImageObject) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsThing

func (ioVar ImageObject) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsTrendingImages

func (ioVar ImageObject) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsWebPage

func (ioVar ImageObject) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) MarshalJSON

func (ioVar ImageObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageObject.

func (*ImageObject) UnmarshalJSON

func (ioVar *ImageObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageObject struct.

type ImageSize

type ImageSize string

ImageSize enumerates the values for image size.

const (
	// ImageSizeAll ...
	ImageSizeAll ImageSize = "All"
	// ImageSizeLarge ...
	ImageSizeLarge ImageSize = "Large"
	// ImageSizeMedium ...
	ImageSizeMedium ImageSize = "Medium"
	// ImageSizeSmall ...
	ImageSizeSmall ImageSize = "Small"
	// ImageSizeWallpaper ...
	ImageSizeWallpaper ImageSize = "Wallpaper"
)

func PossibleImageSizeValues

func PossibleImageSizeValues() []ImageSize

PossibleImageSizeValues returns an array of possible values for the ImageSize const type.

type ImageTagsModule

type ImageTagsModule struct {
	// Value - A list of tags that describe the characteristics of the content found in the image. For example, if the image is of a musical artist, the list might include Female, Dress, and Music to indicate the person is female music artist that's wearing a dress.
	Value *[]InsightsTag `json:"value,omitempty"`
}

ImageTagsModule defines the characteristics of content found in an image.

type ImageType

type ImageType string

ImageType enumerates the values for image type.

const (
	// AnimatedGif ...
	AnimatedGif ImageType = "AnimatedGif"
	// Clipart ...
	Clipart ImageType = "Clipart"
	// Line ...
	Line ImageType = "Line"
	// Photo ...
	Photo ImageType = "Photo"
	// Shopping ...
	Shopping ImageType = "Shopping"
	// Transparent ...
	Transparent ImageType = "Transparent"
)

func PossibleImageTypeValues

func PossibleImageTypeValues() []ImageType

PossibleImageTypeValues returns an array of possible values for the ImageType const type.

type Images

type Images struct {
	autorest.Response `json:"-"`
	// NextOffset - READ-ONLY; Used as part of deduping. Tells client the next offset that client should use in the next pagination request
	NextOffset *int32 `json:"nextOffset,omitempty"`
	// Value - A list of image objects that are relevant to the query. If there are no results, the List is empty.
	Value *[]ImageObject `json:"value,omitempty"`
	// QueryExpansions - READ-ONLY; A list of expanded queries that narrows the original query. For example, if the query was Microsoft Surface, the expanded queries might be: Microsoft Surface Pro 3, Microsoft Surface RT, Microsoft Surface Phone, and Microsoft Surface Hub.
	QueryExpansions *[]Query `json:"queryExpansions,omitempty"`
	// PivotSuggestions - READ-ONLY; A list of segments in the original query. For example, if the query was Red Flowers, Bing might segment the query into Red and Flowers. The Flowers pivot may contain query suggestions such as Red Peonies and Red Daisies, and the Red pivot may contain query suggestions such as Green Flowers and Yellow Flowers.
	PivotSuggestions *[]PivotSuggestions `json:"pivotSuggestions,omitempty"`
	// SimilarTerms - READ-ONLY; A list of terms that are similar in meaning to the user's query term.
	SimilarTerms *[]Query `json:"similarTerms,omitempty"`
	// TotalEstimatedMatches - READ-ONLY; The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Images defines an image answer

func (Images) AsAggregateOffer

func (i Images) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Images.

func (Images) AsAnswer

func (i Images) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicAnswer

func (i Images) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicCollectionPage

func (i Images) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Images.

func (Images) AsBasicCreativeWork

func (i Images) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsBasicIdentifiable

func (i Images) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsBasicIntangible

func (i Images) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Images.

func (Images) AsBasicMediaObject

func (i Images) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsBasicOffer

func (i Images) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponse

func (i Images) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponseBase

func (i Images) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsBasicSearchResultsAnswer

func (i Images) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicStructuredValue

func (i Images) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsBasicThing

func (i Images) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Images.

func (Images) AsBasicWebPage

func (i Images) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Images.

func (Images) AsCollectionPage

func (i Images) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Images.

func (Images) AsCreativeWork

func (i Images) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsErrorResponse

func (i Images) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Images.

func (Images) AsIdentifiable

func (i Images) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsImageGallery

func (i Images) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Images.

func (Images) AsImageInsights

func (i Images) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Images.

func (Images) AsImageObject

func (i Images) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Images.

func (Images) AsImages

func (i Images) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Images.

func (Images) AsIntangible

func (i Images) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Images.

func (Images) AsMediaObject

func (i Images) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsNormalizedRectangle

func (i Images) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Images.

func (Images) AsOffer

func (i Images) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Images.

func (Images) AsOrganization

func (i Images) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Images.

func (Images) AsPerson

func (i Images) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Images.

func (Images) AsRecipe

func (i Images) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Images.

func (Images) AsRecognizedEntity

func (i Images) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Images.

func (Images) AsRecognizedEntityRegion

func (i Images) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Images.

func (Images) AsResponse

func (i Images) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Images.

func (Images) AsResponseBase

func (i Images) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsSearchResultsAnswer

func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsStructuredValue

func (i Images) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsThing

func (i Images) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Images.

func (Images) AsTrendingImages

func (i Images) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Images.

func (Images) AsWebPage

func (i Images) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Images.

func (Images) MarshalJSON

func (i Images) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Images.

type ImagesClient

type ImagesClient struct {
	BaseClient
}

ImagesClient is the the Image Search API lets you send a search query to Bing and get back a list of relevant images. This section provides technical details about the query parameters and headers that you use to request images and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Images](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/search-the-web).

func NewImagesClient

func NewImagesClient() ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func (ImagesClient) Details

func (client ImagesClient) Details(ctx context.Context, query string, acceptLanguage string, contentType string, userAgent string, clientID string, clientIP string, location string, cropBottom *float64, cropLeft *float64, cropRight *float64, cropTop *float64, cropType ImageCropType, countryCode string, ID string, imageURL string, insightsToken string, modules []ImageInsightModule, market string, safeSearch SafeSearch, setLang string) (result ImageInsights, err error)

Details sends the details request. Parameters: query - the user's search query term. The term cannot be empty. The term may contain [Bing Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit images to a specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. To help improve relevance of an insights query (see [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken)), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API. acceptLanguage - a comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language. contentType - optional request header. If you set the [modules](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#modulesrequested) query parameter to RecognizedEntities, you may specify the binary of an image in the body of a POST request. If you specify the image in the body of a POST request, you must specify this header and set its value to multipart/form-data. The maximum image size is 1 MB. userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are encouraged to always specify this header. The user-agent should be the same string that any commonly used browser sends. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The following are examples of user-agent strings. Windows Phone: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53 clientID - bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights new features and improvements, and it uses the client ID as a key for assigning traffic on different flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an inconsistent user experience. For example, if the second request has a different flight assignment than the first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that client ID’s search history, providing a richer experience for the user. Bing also uses this header to help improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client ID across multiple requests for the same end user and device combination enables 1) the API consumer to receive a consistent user experience, and 2) higher click-through rates via better quality of results from the Bing APIs. Each user that uses your application on the devi