...

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

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

     1  package videosearch
     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  // SafeSearch enumerates the values for safe search.
    83  type SafeSearch string
    84  
    85  const (
    86  	// Moderate ...
    87  	Moderate SafeSearch = "Moderate"
    88  	// Off ...
    89  	Off SafeSearch = "Off"
    90  	// Strict ...
    91  	Strict SafeSearch = "Strict"
    92  )
    93  
    94  // PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
    95  func PossibleSafeSearchValues() []SafeSearch {
    96  	return []SafeSearch{Moderate, Off, Strict}
    97  }
    98  
    99  // TextFormat enumerates the values for text format.
   100  type TextFormat string
   101  
   102  const (
   103  	// HTML ...
   104  	HTML TextFormat = "Html"
   105  	// Raw ...
   106  	Raw TextFormat = "Raw"
   107  )
   108  
   109  // PossibleTextFormatValues returns an array of possible values for the TextFormat const type.
   110  func PossibleTextFormatValues() []TextFormat {
   111  	return []TextFormat{HTML, Raw}
   112  }
   113  
   114  // Type enumerates the values for type.
   115  type Type string
   116  
   117  const (
   118  	// TypeAnswer ...
   119  	TypeAnswer Type = "Answer"
   120  	// TypeCreativeWork ...
   121  	TypeCreativeWork Type = "CreativeWork"
   122  	// TypeErrorResponse ...
   123  	TypeErrorResponse Type = "ErrorResponse"
   124  	// TypeIdentifiable ...
   125  	TypeIdentifiable Type = "Identifiable"
   126  	// TypeImageObject ...
   127  	TypeImageObject Type = "ImageObject"
   128  	// TypeMediaObject ...
   129  	TypeMediaObject Type = "MediaObject"
   130  	// TypeResponse ...
   131  	TypeResponse Type = "Response"
   132  	// TypeResponseBase ...
   133  	TypeResponseBase Type = "ResponseBase"
   134  	// TypeSearchResultsAnswer ...
   135  	TypeSearchResultsAnswer Type = "SearchResultsAnswer"
   136  	// TypeThing ...
   137  	TypeThing Type = "Thing"
   138  	// TypeTrendingVideos ...
   139  	TypeTrendingVideos Type = "TrendingVideos"
   140  	// TypeVideoDetails ...
   141  	TypeVideoDetails Type = "VideoDetails"
   142  	// TypeVideoObject ...
   143  	TypeVideoObject Type = "VideoObject"
   144  	// TypeVideos ...
   145  	TypeVideos Type = "Videos"
   146  )
   147  
   148  // PossibleTypeValues returns an array of possible values for the Type const type.
   149  func PossibleTypeValues() []Type {
   150  	return []Type{TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeImageObject, TypeMediaObject, TypeResponse, TypeResponseBase, TypeSearchResultsAnswer, TypeThing, TypeTrendingVideos, TypeVideoDetails, TypeVideoObject, TypeVideos}
   151  }
   152  
   153  // VideoInsightModule enumerates the values for video insight module.
   154  type VideoInsightModule string
   155  
   156  const (
   157  	// All ...
   158  	All VideoInsightModule = "All"
   159  	// RelatedVideos ...
   160  	RelatedVideos VideoInsightModule = "RelatedVideos"
   161  	// VideoResult ...
   162  	VideoResult VideoInsightModule = "VideoResult"
   163  )
   164  
   165  // PossibleVideoInsightModuleValues returns an array of possible values for the VideoInsightModule const type.
   166  func PossibleVideoInsightModuleValues() []VideoInsightModule {
   167  	return []VideoInsightModule{All, RelatedVideos, VideoResult}
   168  }
   169  
   170  // VideoLength enumerates the values for video length.
   171  type VideoLength string
   172  
   173  const (
   174  	// VideoLengthAll ...
   175  	VideoLengthAll VideoLength = "All"
   176  	// VideoLengthLong ...
   177  	VideoLengthLong VideoLength = "Long"
   178  	// VideoLengthMedium ...
   179  	VideoLengthMedium VideoLength = "Medium"
   180  	// VideoLengthShort ...
   181  	VideoLengthShort VideoLength = "Short"
   182  )
   183  
   184  // PossibleVideoLengthValues returns an array of possible values for the VideoLength const type.
   185  func PossibleVideoLengthValues() []VideoLength {
   186  	return []VideoLength{VideoLengthAll, VideoLengthLong, VideoLengthMedium, VideoLengthShort}
   187  }
   188  
   189  // VideoPricing enumerates the values for video pricing.
   190  type VideoPricing string
   191  
   192  const (
   193  	// VideoPricingAll ...
   194  	VideoPricingAll VideoPricing = "All"
   195  	// VideoPricingFree ...
   196  	VideoPricingFree VideoPricing = "Free"
   197  	// VideoPricingPaid ...
   198  	VideoPricingPaid VideoPricing = "Paid"
   199  )
   200  
   201  // PossibleVideoPricingValues returns an array of possible values for the VideoPricing const type.
   202  func PossibleVideoPricingValues() []VideoPricing {
   203  	return []VideoPricing{VideoPricingAll, VideoPricingFree, VideoPricingPaid}
   204  }
   205  
   206  // VideoQueryScenario enumerates the values for video query scenario.
   207  type VideoQueryScenario string
   208  
   209  const (
   210  	// List ...
   211  	List VideoQueryScenario = "List"
   212  	// SingleDominantVideo ...
   213  	SingleDominantVideo VideoQueryScenario = "SingleDominantVideo"
   214  )
   215  
   216  // PossibleVideoQueryScenarioValues returns an array of possible values for the VideoQueryScenario const type.
   217  func PossibleVideoQueryScenarioValues() []VideoQueryScenario {
   218  	return []VideoQueryScenario{List, SingleDominantVideo}
   219  }
   220  
   221  // VideoResolution enumerates the values for video resolution.
   222  type VideoResolution string
   223  
   224  const (
   225  	// VideoResolutionAll ...
   226  	VideoResolutionAll VideoResolution = "All"
   227  	// VideoResolutionHD1080p ...
   228  	VideoResolutionHD1080p VideoResolution = "HD1080p"
   229  	// VideoResolutionHD720p ...
   230  	VideoResolutionHD720p VideoResolution = "HD720p"
   231  	// VideoResolutionSD480p ...
   232  	VideoResolutionSD480p VideoResolution = "SD480p"
   233  )
   234  
   235  // PossibleVideoResolutionValues returns an array of possible values for the VideoResolution const type.
   236  func PossibleVideoResolutionValues() []VideoResolution {
   237  	return []VideoResolution{VideoResolutionAll, VideoResolutionHD1080p, VideoResolutionHD720p, VideoResolutionSD480p}
   238  }
   239  

View as plain text