1package customsearch
2
3// Copyright (c) Microsoft and contributors.  All rights reserved.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17// Code generated by Microsoft (R) AutoRest Code Generator.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20// ErrorCode enumerates the values for error code.
21type ErrorCode string
22
23const (
24	// InsufficientAuthorization ...
25	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
26	// InvalidAuthorization ...
27	InvalidAuthorization ErrorCode = "InvalidAuthorization"
28	// InvalidRequest ...
29	InvalidRequest ErrorCode = "InvalidRequest"
30	// None ...
31	None ErrorCode = "None"
32	// RateLimitExceeded ...
33	RateLimitExceeded ErrorCode = "RateLimitExceeded"
34	// ServerError ...
35	ServerError ErrorCode = "ServerError"
36)
37
38// PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
39func PossibleErrorCodeValues() []ErrorCode {
40	return []ErrorCode{InsufficientAuthorization, InvalidAuthorization, InvalidRequest, None, RateLimitExceeded, ServerError}
41}
42
43// ErrorSubCode enumerates the values for error sub code.
44type ErrorSubCode string
45
46const (
47	// AuthorizationDisabled ...
48	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
49	// AuthorizationExpired ...
50	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
51	// AuthorizationMissing ...
52	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
53	// AuthorizationRedundancy ...
54	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
55	// Blocked ...
56	Blocked ErrorSubCode = "Blocked"
57	// HTTPNotAllowed ...
58	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
59	// NotImplemented ...
60	NotImplemented ErrorSubCode = "NotImplemented"
61	// ParameterInvalidValue ...
62	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
63	// ParameterMissing ...
64	ParameterMissing ErrorSubCode = "ParameterMissing"
65	// ResourceError ...
66	ResourceError ErrorSubCode = "ResourceError"
67	// UnexpectedError ...
68	UnexpectedError ErrorSubCode = "UnexpectedError"
69)
70
71// PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
72func PossibleErrorSubCodeValues() []ErrorSubCode {
73	return []ErrorSubCode{AuthorizationDisabled, AuthorizationExpired, AuthorizationMissing, AuthorizationRedundancy, Blocked, HTTPNotAllowed, NotImplemented, ParameterInvalidValue, ParameterMissing, ResourceError, UnexpectedError}
74}
75
76// SafeSearch enumerates the values for safe search.
77type SafeSearch string
78
79const (
80	// Moderate ...
81	Moderate SafeSearch = "Moderate"
82	// Off ...
83	Off SafeSearch = "Off"
84	// Strict ...
85	Strict SafeSearch = "Strict"
86)
87
88// PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
89func PossibleSafeSearchValues() []SafeSearch {
90	return []SafeSearch{Moderate, Off, Strict}
91}
92
93// TextFormat enumerates the values for text format.
94type TextFormat string
95
96const (
97	// HTML ...
98	HTML TextFormat = "Html"
99	// Raw ...
100	Raw TextFormat = "Raw"
101)
102
103// PossibleTextFormatValues returns an array of possible values for the TextFormat const type.
104func PossibleTextFormatValues() []TextFormat {
105	return []TextFormat{HTML, Raw}
106}
107
108// Type enumerates the values for type.
109type Type string
110
111const (
112	// TypeAnswer ...
113	TypeAnswer Type = "Answer"
114	// TypeCreativeWork ...
115	TypeCreativeWork Type = "CreativeWork"
116	// TypeErrorResponse ...
117	TypeErrorResponse Type = "ErrorResponse"
118	// TypeIdentifiable ...
119	TypeIdentifiable Type = "Identifiable"
120	// TypeResponse ...
121	TypeResponse Type = "Response"
122	// TypeResponseBase ...
123	TypeResponseBase Type = "ResponseBase"
124	// TypeSearchResponse ...
125	TypeSearchResponse Type = "SearchResponse"
126	// TypeSearchResultsAnswer ...
127	TypeSearchResultsAnswer Type = "SearchResultsAnswer"
128	// TypeThing ...
129	TypeThing Type = "Thing"
130	// TypeWebPage ...
131	TypeWebPage Type = "WebPage"
132	// TypeWebWebAnswer ...
133	TypeWebWebAnswer Type = "Web/WebAnswer"
134)
135
136// PossibleTypeValues returns an array of possible values for the Type const type.
137func PossibleTypeValues() []Type {
138	return []Type{TypeAnswer, TypeCreativeWork, TypeErrorResponse, TypeIdentifiable, TypeResponse, TypeResponseBase, TypeSearchResponse, TypeSearchResultsAnswer, TypeThing, TypeWebPage, TypeWebWebAnswer}
139}
140