...

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

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

     1  package customimagesearch
     2  
     3  // Copyright (c) Microsoft Corporation. All rights reserved.
     4  // Licensed under the MIT License. See License.txt in the project root for license information.
     5  //
     6  // Code generated by Microsoft (R) AutoRest Code Generator.
     7  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     8  
     9  // ErrorCode enumerates the values for error code.
    10  type ErrorCode string
    11  
    12  const (
    13  	// InsufficientAuthorization ...
    14  	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
    15  	// InvalidAuthorization ...
    16  	InvalidAuthorization ErrorCode = "InvalidAuthorization"
    17  	// InvalidRequest ...
    18  	InvalidRequest ErrorCode = "InvalidRequest"
    19  	// None ...
    20  	None ErrorCode = "None"
    21  	// RateLimitExceeded ...
    22  	RateLimitExceeded ErrorCode = "RateLimitExceeded"
    23  	// ServerError ...
    24  	ServerError ErrorCode = "ServerError"
    25  )
    26  
    27  // PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
    28  func PossibleErrorCodeValues() []ErrorCode {
    29  	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
    30  }
    31  
    32  // ErrorSubCode enumerates the values for error sub code.
    33  type ErrorSubCode string
    34  
    35  const (
    36  	// AuthorizationDisabled ...
    37  	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
    38  	// AuthorizationExpired ...
    39  	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
    40  	// AuthorizationMissing ...
    41  	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
    42  	// AuthorizationRedundancy ...
    43  	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
    44  	// Blocked ...
    45  	Blocked ErrorSubCode = "Blocked"
    46  	// HTTPNotAllowed ...
    47  	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
    48  	// NotImplemented ...
    49  	NotImplemented ErrorSubCode = "NotImplemented"
    50  	// ParameterInvalidValue ...
    51  	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
    52  	// ParameterMissing ...
    53  	ParameterMissing ErrorSubCode = "ParameterMissing"
    54  	// ResourceError ...
    55  	ResourceError ErrorSubCode = "ResourceError"
    56  	// UnexpectedError ...
    57  	UnexpectedError ErrorSubCode = "UnexpectedError"
    58  )
    59  
    60  // PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
    61  func PossibleErrorSubCodeValues() []ErrorSubCode {
    62  	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
    63  }
    64  
    65  // Freshness enumerates the values for freshness.
    66  type Freshness string
    67  
    68  const (
    69  	// Day ...
    70  	Day Freshness = "Day"
    71  	// Month ...
    72  	Month Freshness = "Month"
    73  	// Week ...
    74  	Week Freshness = "Week"
    75  )
    76  
    77  // PossibleFreshnessValues returns an array of possible values for the Freshness const type.
    78  func PossibleFreshnessValues() []Freshness {
    79  	return []Freshness{Day, Month, Week}
    80  }
    81  
    82  // ImageAspect enumerates the values for image aspect.
    83  type ImageAspect string
    84  
    85  const (
    86  	// All ...
    87  	All ImageAspect = "All"
    88  	// Square ...
    89  	Square ImageAspect = "Square"
    90  	// Tall ...
    91  	Tall ImageAspect = "Tall"
    92  	// Wide ...
    93  	Wide ImageAspect = "Wide"
    94  )
    95  
    96  // PossibleImageAspectValues returns an array of possible values for the ImageAspect const type.
    97  func PossibleImageAspectValues() []ImageAspect {
    98  	return []ImageAspect{All, Square, Tall, Wide}
    99  }
   100  
   101  // ImageColor enumerates the values for image color.
   102  type ImageColor string
   103  
   104  const (
   105  	// Black ...
   106  	Black ImageColor = "Black"
   107  	// Blue ...
   108  	Blue ImageColor = "Blue"
   109  	// Brown ...
   110  	Brown ImageColor = "Brown"
   111  	// ColorOnly ...
   112  	ColorOnly ImageColor = "ColorOnly"
   113  	// Gray ...
   114  	Gray ImageColor = "Gray"
   115  	// Green ...
   116  	Green ImageColor = "Green"
   117  	// Monochrome ...
   118  	Monochrome ImageColor = "Monochrome"
   119  	// Orange ...
   120  	Orange ImageColor = "Orange"
   121  	// Pink ...
   122  	Pink ImageColor = "Pink"
   123  	// Purple ...
   124  	Purple ImageColor = "Purple"
   125  	// Red ...
   126  	Red ImageColor = "Red"
   127  	// Teal ...
   128  	Teal ImageColor = "Teal"
   129  	// White ...
   130  	White ImageColor = "White"
   131  	// Yellow ...
   132  	Yellow ImageColor = "Yellow"
   133  )
   134  
   135  // PossibleImageColorValues returns an array of possible values for the ImageColor const type.
   136  func PossibleImageColorValues() []ImageColor {
   137  	return []ImageColor{Black, Blue, Brown, ColorOnly, Gray, Green, Monochrome, Orange, Pink, Purple, Red, Teal, White, Yellow}
   138  }
   139  
   140  // ImageContent enumerates the values for image content.
   141  type ImageContent string
   142  
   143  const (
   144  	// Face ...
   145  	Face ImageContent = "Face"
   146  	// Portrait ...
   147  	Portrait ImageContent = "Portrait"
   148  )
   149  
   150  // PossibleImageContentValues returns an array of possible values for the ImageContent const type.
   151  func PossibleImageContentValues() []ImageContent {
   152  	return []ImageContent{Face, Portrait}
   153  }
   154  
   155  // ImageLicense enumerates the values for image license.
   156  type ImageLicense string
   157  
   158  const (
   159  	// ImageLicenseAll ...
   160  	ImageLicenseAll ImageLicense = "All"
   161  	// ImageLicenseAny ...
   162  	ImageLicenseAny ImageLicense = "Any"
   163  	// ImageLicenseModify ...
   164  	ImageLicenseModify ImageLicense = "Modify"
   165  	// ImageLicenseModifyCommercially ...
   166  	ImageLicenseModifyCommercially ImageLicense = "ModifyCommercially"
   167  	// ImageLicensePublic ...
   168  	ImageLicensePublic ImageLicense = "Public"
   169  	// ImageLicenseShare ...
   170  	ImageLicenseShare ImageLicense = "Share"
   171  	// ImageLicenseShareCommercially ...
   172  	ImageLicenseShareCommercially ImageLicense = "ShareCommercially"
   173  )
   174  
   175  // PossibleImageLicenseValues returns an array of possible values for the ImageLicense const type.
   176  func PossibleImageLicenseValues() []ImageLicense {
   177  	return []ImageLicense{ImageLicenseAll, ImageLicenseAny, ImageLicenseModify, ImageLicenseModifyCommercially, ImageLicensePublic, ImageLicenseShare, ImageLicenseShareCommercially}
   178  }
   179  
   180  // ImageSize enumerates the values for image size.
   181  type ImageSize string
   182  
   183  const (
   184  	// ImageSizeAll ...
   185  	ImageSizeAll ImageSize = "All"
   186  	// ImageSizeLarge ...
   187  	ImageSizeLarge ImageSize = "Large"
   188  	// ImageSizeMedium ...
   189  	ImageSizeMedium ImageSize = "Medium"
   190  	// ImageSizeSmall ...
   191  	ImageSizeSmall ImageSize = "Small"
   192  	// ImageSizeWallpaper ...
   193  	ImageSizeWallpaper ImageSize = "Wallpaper"
   194  )
   195  
   196  // PossibleImageSizeValues returns an array of possible values for the ImageSize const type.
   197  func PossibleImageSizeValues() []ImageSize {
   198  	return []ImageSize{ImageSizeAll, ImageSizeLarge, ImageSizeMedium, ImageSizeSmall, ImageSizeWallpaper}
   199  }
   200  
   201  // ImageType enumerates the values for image type.
   202  type ImageType string
   203  
   204  const (
   205  	// AnimatedGif ...
   206  	AnimatedGif ImageType = "AnimatedGif"
   207  	// Clipart ...
   208  	Clipart ImageType = "Clipart"
   209  	// Line ...
   210  	Line ImageType = "Line"
   211  	// Photo ...
   212  	Photo ImageType = "Photo"
   213  	// Shopping ...
   214  	Shopping ImageType = "Shopping"
   215  	// Transparent ...
   216  	Transparent ImageType = "Transparent"
   217  )
   218  
   219  // PossibleImageTypeValues returns an array of possible values for the ImageType const type.
   220  func PossibleImageTypeValues() []ImageType {
   221  	return []ImageType{AnimatedGif, Clipart, Line, Photo, Shopping, Transparent}
   222  }
   223  
   224  // SafeSearch enumerates the values for safe search.
   225  type SafeSearch string
   226  
   227  const (
   228  	// Moderate ...
   229  	Moderate SafeSearch = "Moderate"
   230  	// Off ...
   231  	Off SafeSearch = "Off"
   232  	// Strict ...
   233  	Strict SafeSearch = "Strict"
   234  )
   235  
   236  // PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
   237  func PossibleSafeSearchValues() []SafeSearch {
   238  	return []SafeSearch{Moderate, Off, Strict}
   239  }
   240  
   241  // Type enumerates the values for type.
   242  type Type string
   243  
   244  const (
   245  	// TypeAnswer ...
   246  	TypeAnswer Type = "Answer"
   247  	// TypeCreativeWork ...
   248  	TypeCreativeWork Type = "CreativeWork"
   249  	// TypeErrorResponse ...
   250  	TypeErrorResponse Type = "ErrorResponse"
   251  	// TypeIdentifiable ...
   252  	TypeIdentifiable Type = "Identifiable"
   253  	// TypeImageObject ...
   254  	TypeImageObject Type = "ImageObject"
   255  	// TypeImages ...
   256  	TypeImages Type = "Images"
   257  	// TypeMediaObject ...
   258  	TypeMediaObject Type = "MediaObject"
   259  	// TypeResponse ...
   260  	TypeResponse Type = "Response"
   261  	// TypeResponseBase ...
   262  	TypeResponseBase Type = "ResponseBase"
   263  	// TypeSearchResultsAnswer ...
   264  	TypeSearchResultsAnswer Type = "SearchResultsAnswer"
   265  	// TypeThing ...
   266  	TypeThing Type = "Thing"
   267  	// TypeWebPage ...
   268  	TypeWebPage Type = "WebPage"
   269  )
   270  
   271  // PossibleTypeValues returns an array of possible values for the Type const type.
   272  func PossibleTypeValues() []Type {
   273  	return []Type{TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeImageObject, TypeImages, TypeMediaObject, TypeResponse, TypeResponseBase, TypeSearchResultsAnswer, TypeThing, TypeWebPage}
   274  }
   275  

View as plain text