@azure/arm-search 1.3.0 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/{LICENSE.txt → LICENSE} +21 -21
  3. package/README.md +98 -96
  4. package/dist/index.js +2926 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +692 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +21 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +35 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/dist-esm/src/models/mappers.js +1013 -0
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +22 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +182 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/adminKeys.d.ts +33 -0
  29. package/dist-esm/src/operations/adminKeys.d.ts.map +1 -0
  30. package/dist-esm/src/operations/adminKeys.js +90 -0
  31. package/dist-esm/src/operations/adminKeys.js.map +1 -0
  32. package/dist-esm/src/operations/index.d.ts +8 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/dist-esm/src/operations/index.js +15 -0
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +26 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +90 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/privateEndpointConnections.d.ts +79 -0
  41. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  42. package/dist-esm/src/operations/privateEndpointConnections.js +273 -0
  43. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  44. package/dist-esm/src/operations/privateLinkResources.d.ts +34 -0
  45. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  46. package/dist-esm/src/operations/privateLinkResources.js +103 -0
  47. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  48. package/dist-esm/src/operations/queryKeys.d.ts +66 -0
  49. package/dist-esm/src/operations/queryKeys.d.ts.map +1 -0
  50. package/dist-esm/src/operations/queryKeys.js +213 -0
  51. package/dist-esm/src/operations/queryKeys.js.map +1 -0
  52. package/dist-esm/src/operations/services.d.ts +123 -0
  53. package/dist-esm/src/operations/services.d.ts.map +1 -0
  54. package/dist-esm/src/operations/services.js +475 -0
  55. package/dist-esm/src/operations/services.js.map +1 -0
  56. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts +107 -0
  57. package/dist-esm/src/operations/sharedPrivateLinkResources.d.ts.map +1 -0
  58. package/dist-esm/src/operations/sharedPrivateLinkResources.js +379 -0
  59. package/dist-esm/src/operations/sharedPrivateLinkResources.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts +25 -0
  61. package/dist-esm/src/operationsInterfaces/adminKeys.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/adminKeys.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/adminKeys.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +50 -0
  73. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
  77. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts +37 -0
  81. package/dist-esm/src/operationsInterfaces/queryKeys.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/queryKeys.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/queryKeys.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/services.d.ts +85 -0
  85. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/services.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts +78 -0
  89. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/sharedPrivateLinkResources.js.map +1 -0
  92. package/dist-esm/src/searchManagementClient.d.ts +25 -0
  93. package/dist-esm/src/searchManagementClient.d.ts.map +1 -0
  94. package/dist-esm/src/searchManagementClient.js +58 -0
  95. package/dist-esm/src/searchManagementClient.js.map +1 -0
  96. package/dist-esm/test/search_examples.d.ts +4 -0
  97. package/dist-esm/test/search_examples.d.ts.map +1 -0
  98. package/dist-esm/test/search_examples.js +163 -0
  99. package/dist-esm/test/search_examples.js.map +1 -0
  100. package/package.json +70 -34
  101. package/review/arm-search.api.md +600 -0
  102. package/rollup.config.js +184 -27
  103. package/src/index.ts +12 -0
  104. package/src/lroImpl.ts +34 -0
  105. package/src/models/index.ts +837 -0
  106. package/src/models/mappers.ts +1092 -0
  107. package/src/models/parameters.ts +213 -0
  108. package/src/operations/adminKeys.ts +122 -0
  109. package/{lib → src}/operations/index.ts +6 -5
  110. package/src/operations/operations.ts +98 -0
  111. package/src/operations/privateEndpointConnections.ts +363 -0
  112. package/src/operations/privateLinkResources.ts +139 -0
  113. package/src/operations/queryKeys.ts +288 -0
  114. package/src/operations/services.ts +606 -0
  115. package/src/operations/sharedPrivateLinkResources.ts +525 -0
  116. package/src/operationsInterfaces/adminKeys.ts +48 -0
  117. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +7 -6
  118. package/src/operationsInterfaces/operations.ts +22 -0
  119. package/src/operationsInterfaces/privateEndpointConnections.ts +88 -0
  120. package/src/operationsInterfaces/privateLinkResources.ts +31 -0
  121. package/src/operationsInterfaces/queryKeys.ts +66 -0
  122. package/src/operationsInterfaces/services.ts +144 -0
  123. package/src/operationsInterfaces/sharedPrivateLinkResources.ts +131 -0
  124. package/src/searchManagementClient.ts +104 -0
  125. package/tsconfig.json +4 -4
  126. package/types/arm-search.d.ts +1104 -0
  127. package/types/tsdoc-metadata.json +11 -0
  128. package/dist/arm-search.js +0 -1329
  129. package/dist/arm-search.js.map +0 -1
  130. package/dist/arm-search.min.js +0 -1
  131. package/dist/arm-search.min.js.map +0 -1
  132. package/esm/models/adminKeysMappers.d.ts +0 -2
  133. package/esm/models/adminKeysMappers.d.ts.map +0 -1
  134. package/esm/models/adminKeysMappers.js +0 -11
  135. package/esm/models/adminKeysMappers.js.map +0 -1
  136. package/esm/models/index.d.ts +0 -788
  137. package/esm/models/index.d.ts.map +0 -1
  138. package/esm/models/index.js +0 -10
  139. package/esm/models/index.js.map +0 -1
  140. package/esm/models/mappers.d.ts +0 -18
  141. package/esm/models/mappers.d.ts.map +0 -1
  142. package/esm/models/mappers.js +0 -438
  143. package/esm/models/mappers.js.map +0 -1
  144. package/esm/models/operationsMappers.d.ts +0 -2
  145. package/esm/models/operationsMappers.d.ts.map +0 -1
  146. package/esm/models/operationsMappers.js +0 -11
  147. package/esm/models/operationsMappers.js.map +0 -1
  148. package/esm/models/parameters.d.ts +0 -11
  149. package/esm/models/parameters.d.ts.map +0 -1
  150. package/esm/models/parameters.js +0 -107
  151. package/esm/models/parameters.js.map +0 -1
  152. package/esm/models/queryKeysMappers.d.ts +0 -2
  153. package/esm/models/queryKeysMappers.d.ts.map +0 -1
  154. package/esm/models/queryKeysMappers.js +0 -11
  155. package/esm/models/queryKeysMappers.js.map +0 -1
  156. package/esm/models/servicesMappers.d.ts +0 -2
  157. package/esm/models/servicesMappers.d.ts.map +0 -1
  158. package/esm/models/servicesMappers.js +0 -11
  159. package/esm/models/servicesMappers.js.map +0 -1
  160. package/esm/operations/adminKeys.d.ts +0 -74
  161. package/esm/operations/adminKeys.d.ts.map +0 -1
  162. package/esm/operations/adminKeys.js +0 -93
  163. package/esm/operations/adminKeys.js.map +0 -1
  164. package/esm/operations/index.d.ts +0 -5
  165. package/esm/operations/index.d.ts.map +0 -1
  166. package/esm/operations/index.js.map +0 -1
  167. package/esm/operations/operations.d.ts +0 -28
  168. package/esm/operations/operations.d.ts.map +0 -1
  169. package/esm/operations/operations.js +0 -51
  170. package/esm/operations/operations.js.map +0 -1
  171. package/esm/operations/queryKeys.d.ts +0 -102
  172. package/esm/operations/queryKeys.d.ts.map +0 -1
  173. package/esm/operations/queryKeys.js +0 -127
  174. package/esm/operations/queryKeys.js.map +0 -1
  175. package/esm/operations/services.d.ts +0 -174
  176. package/esm/operations/services.d.ts.map +0 -1
  177. package/esm/operations/services.js +0 -268
  178. package/esm/operations/services.js.map +0 -1
  179. package/esm/searchManagementClient.d.ts +0 -22
  180. package/esm/searchManagementClient.d.ts.map +0 -1
  181. package/esm/searchManagementClient.js +0 -37
  182. package/esm/searchManagementClient.js.map +0 -1
  183. package/esm/searchManagementClientContext.d.ts +0 -17
  184. package/esm/searchManagementClientContext.d.ts.map +0 -1
  185. package/esm/searchManagementClientContext.js +0 -57
  186. package/esm/searchManagementClientContext.js.map +0 -1
  187. package/lib/models/adminKeysMappers.ts +0 -15
  188. package/lib/models/index.ts +0 -842
  189. package/lib/models/mappers.ts +0 -462
  190. package/lib/models/operationsMappers.ts +0 -17
  191. package/lib/models/parameters.ts +0 -109
  192. package/lib/models/queryKeysMappers.ts +0 -16
  193. package/lib/models/servicesMappers.ts +0 -22
  194. package/lib/operations/adminKeys.ts +0 -167
  195. package/lib/operations/operations.ts +0 -74
  196. package/lib/operations/queryKeys.ts +0 -234
  197. package/lib/operations/services.ts +0 -439
  198. package/lib/searchManagementClient.ts +0 -49
  199. package/lib/searchManagementClientContext.ts +0 -63
@@ -1,788 +0,0 @@
1
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
2
- import * as msRest from "@azure/ms-rest-js";
3
- export { BaseResource, CloudError };
4
- /**
5
- * @interface
6
- * An interface representing CheckNameAvailabilityInput.
7
- * Input of check name availability API.
8
- *
9
- */
10
- export interface CheckNameAvailabilityInput {
11
- /**
12
- * @member {string} name The Search service name to validate. Search service
13
- * names must only contain lowercase letters, digits or dashes, cannot use
14
- * dash as the first two or last one characters, cannot contain consecutive
15
- * dashes, and must be between 2 and 60 characters in length.
16
- */
17
- name: string;
18
- }
19
- /**
20
- * @interface
21
- * An interface representing CheckNameAvailabilityOutput.
22
- * Output of check name availability API.
23
- *
24
- */
25
- export interface CheckNameAvailabilityOutput {
26
- /**
27
- * @member {boolean} [isNameAvailable] A value indicating whether the name is
28
- * available.
29
- * **NOTE: This property will not be serialized. It can only be populated by
30
- * the server.**
31
- */
32
- readonly isNameAvailable?: boolean;
33
- /**
34
- * @member {UnavailableNameReason} [reason] The reason why the name is not
35
- * available. 'Invalid' indicates the name provided does not match the naming
36
- * requirements (incorrect length, unsupported characters, etc.).
37
- * 'AlreadyExists' indicates that the name is already in use and is therefore
38
- * unavailable. Possible values include: 'Invalid', 'AlreadyExists'
39
- * **NOTE: This property will not be serialized. It can only be populated by
40
- * the server.**
41
- */
42
- readonly reason?: UnavailableNameReason;
43
- /**
44
- * @member {string} [message] A message that explains why the name is invalid
45
- * and provides resource naming requirements. Available only if 'Invalid' is
46
- * returned in the 'reason' property.
47
- * **NOTE: This property will not be serialized. It can only be populated by
48
- * the server.**
49
- */
50
- readonly message?: string;
51
- }
52
- /**
53
- * @interface
54
- * An interface representing AdminKeyResult.
55
- * Response containing the primary and secondary admin API keys for a given
56
- * Azure Search service.
57
- *
58
- */
59
- export interface AdminKeyResult {
60
- /**
61
- * @member {string} [primaryKey] The primary admin API key of the Search
62
- * service.
63
- * **NOTE: This property will not be serialized. It can only be populated by
64
- * the server.**
65
- */
66
- readonly primaryKey?: string;
67
- /**
68
- * @member {string} [secondaryKey] The secondary admin API key of the Search
69
- * service.
70
- * **NOTE: This property will not be serialized. It can only be populated by
71
- * the server.**
72
- */
73
- readonly secondaryKey?: string;
74
- }
75
- /**
76
- * @interface
77
- * An interface representing QueryKey.
78
- * Describes an API key for a given Azure Search service that has permissions
79
- * for query operations only.
80
- *
81
- */
82
- export interface QueryKey {
83
- /**
84
- * @member {string} [name] The name of the query API key; may be empty.
85
- * **NOTE: This property will not be serialized. It can only be populated by
86
- * the server.**
87
- */
88
- readonly name?: string;
89
- /**
90
- * @member {string} [key] The value of the query API key.
91
- * **NOTE: This property will not be serialized. It can only be populated by
92
- * the server.**
93
- */
94
- readonly key?: string;
95
- }
96
- /**
97
- * @interface
98
- * An interface representing Sku.
99
- * Defines the SKU of an Azure Search Service, which determines price tier and
100
- * capacity limits.
101
- *
102
- */
103
- export interface Sku {
104
- /**
105
- * @member {SkuName} [name] The SKU of the Search service. Valid values
106
- * include: 'free': Shared service. 'basic': Dedicated service with up to 3
107
- * replicas. 'standard': Dedicated service with up to 12 partitions and 12
108
- * replicas. 'standard2': Similar to standard, but with more capacity per
109
- * search unit. 'standard3': Offers maximum capacity per search unit with up
110
- * to 12 partitions and 12 replicas (or up to 3 partitions with more indexes
111
- * if you also set the hostingMode property to 'highDensity'). Possible
112
- * values include: 'free', 'basic', 'standard', 'standard2', 'standard3'
113
- */
114
- name?: SkuName;
115
- }
116
- /**
117
- * @interface
118
- * An interface representing Resource.
119
- * Base type for all Azure resources.
120
- *
121
- * @extends BaseResource
122
- */
123
- export interface Resource extends BaseResource {
124
- /**
125
- * @member {string} [id] The ID of the resource. This can be used with the
126
- * Azure Resource Manager to link resources together.
127
- * **NOTE: This property will not be serialized. It can only be populated by
128
- * the server.**
129
- */
130
- readonly id?: string;
131
- /**
132
- * @member {string} [name] The name of the resource.
133
- * **NOTE: This property will not be serialized. It can only be populated by
134
- * the server.**
135
- */
136
- readonly name?: string;
137
- /**
138
- * @member {string} [type] The resource type.
139
- * **NOTE: This property will not be serialized. It can only be populated by
140
- * the server.**
141
- */
142
- readonly type?: string;
143
- /**
144
- * @member {string} [location] The geographic location of the resource. This
145
- * must be one of the supported and registered Azure Geo Regions (for
146
- * example, West US, East US, Southeast Asia, and so forth). This property is
147
- * required when creating a new resource.
148
- */
149
- location?: string;
150
- /**
151
- * @member {{ [propertyName: string]: string }} [tags] Tags to help
152
- * categorize the resource in the Azure portal.
153
- */
154
- tags?: {
155
- [propertyName: string]: string;
156
- };
157
- /**
158
- * @member {Identity} [identity] The identity of the resource.
159
- */
160
- identity?: Identity;
161
- }
162
- /**
163
- * @interface
164
- * An interface representing SearchService.
165
- * Describes an Azure Search service and its current state.
166
- *
167
- * @extends Resource
168
- */
169
- export interface SearchService extends Resource {
170
- /**
171
- * @member {number} [replicaCount] The number of replicas in the Search
172
- * service. If specified, it must be a value between 1 and 12 inclusive for
173
- * standard SKUs or between 1 and 3 inclusive for basic SKU. Default value: 1
174
- * .
175
- */
176
- replicaCount?: number;
177
- /**
178
- * @member {number} [partitionCount] The number of partitions in the Search
179
- * service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than
180
- * 1 are only valid for standard SKUs. For 'standard3' services with
181
- * hostingMode set to 'highDensity', the allowed values are between 1 and 3.
182
- * Default value: 1 .
183
- */
184
- partitionCount?: number;
185
- /**
186
- * @member {HostingMode} [hostingMode] Applicable only for the standard3 SKU.
187
- * You can set this property to enable up to 3 high density partitions that
188
- * allow up to 1000 indexes, which is much higher than the maximum indexes
189
- * allowed for any other SKU. For the standard3 SKU, the value is either
190
- * 'default' or 'highDensity'. For all other SKUs, this value must be
191
- * 'default'. Possible values include: 'default', 'highDensity'. Default
192
- * value: 'default' .
193
- */
194
- hostingMode?: HostingMode;
195
- /**
196
- * @member {SearchServiceStatus} [status] The status of the Search service.
197
- * Possible values include: 'running': The Search service is running and no
198
- * provisioning operations are underway. 'provisioning': The Search service
199
- * is being provisioned or scaled up or down. 'deleting': The Search service
200
- * is being deleted. 'degraded': The Search service is degraded. This can
201
- * occur when the underlying search units are not healthy. The Search service
202
- * is most likely operational, but performance might be slow and some
203
- * requests might be dropped. 'disabled': The Search service is disabled. In
204
- * this state, the service will reject all API requests. 'error': The Search
205
- * service is in an error state. If your service is in the degraded,
206
- * disabled, or error states, it means the Azure Search team is actively
207
- * investigating the underlying issue. Dedicated services in these states are
208
- * still chargeable based on the number of search units provisioned. Possible
209
- * values include: 'running', 'provisioning', 'deleting', 'degraded',
210
- * 'disabled', 'error'
211
- * **NOTE: This property will not be serialized. It can only be populated by
212
- * the server.**
213
- */
214
- readonly status?: SearchServiceStatus;
215
- /**
216
- * @member {string} [statusDetails] The details of the Search service status.
217
- * **NOTE: This property will not be serialized. It can only be populated by
218
- * the server.**
219
- */
220
- readonly statusDetails?: string;
221
- /**
222
- * @member {ProvisioningState} [provisioningState] The state of the last
223
- * provisioning operation performed on the Search service. Provisioning is an
224
- * intermediate state that occurs while service capacity is being
225
- * established. After capacity is set up, provisioningState changes to either
226
- * 'succeeded' or 'failed'. Client applications can poll provisioning status
227
- * (the recommended polling interval is from 30 seconds to one minute) by
228
- * using the Get Search Service operation to see when an operation is
229
- * completed. If you are using the free service, this value tends to come
230
- * back as 'succeeded' directly in the call to Create Search service. This is
231
- * because the free service uses capacity that is already set up. Possible
232
- * values include: 'succeeded', 'provisioning', 'failed'
233
- * **NOTE: This property will not be serialized. It can only be populated by
234
- * the server.**
235
- */
236
- readonly provisioningState?: ProvisioningState;
237
- /**
238
- * @member {Sku} [sku] The SKU of the Search Service, which determines price
239
- * tier and capacity limits. This property is required when creating a new
240
- * Search Service.
241
- */
242
- sku?: Sku;
243
- }
244
- /**
245
- * @interface
246
- * An interface representing Identity.
247
- * Identity for the resource.
248
- *
249
- */
250
- export interface Identity {
251
- /**
252
- * @member {string} [principalId] The principal ID of resource identity.
253
- * **NOTE: This property will not be serialized. It can only be populated by
254
- * the server.**
255
- */
256
- readonly principalId?: string;
257
- /**
258
- * @member {string} [tenantId] The tenant ID of resource.
259
- * **NOTE: This property will not be serialized. It can only be populated by
260
- * the server.**
261
- */
262
- readonly tenantId?: string;
263
- }
264
- /**
265
- * @interface
266
- * An interface representing OperationDisplay.
267
- * The object that describes the operation.
268
- *
269
- */
270
- export interface OperationDisplay {
271
- /**
272
- * @member {string} [provider] The friendly name of the resource provider.
273
- * **NOTE: This property will not be serialized. It can only be populated by
274
- * the server.**
275
- */
276
- readonly provider?: string;
277
- /**
278
- * @member {string} [operation] The operation type: read, write, delete,
279
- * listKeys/action, etc.
280
- * **NOTE: This property will not be serialized. It can only be populated by
281
- * the server.**
282
- */
283
- readonly operation?: string;
284
- /**
285
- * @member {string} [resource] The resource type on which the operation is
286
- * performed.
287
- * **NOTE: This property will not be serialized. It can only be populated by
288
- * the server.**
289
- */
290
- readonly resource?: string;
291
- /**
292
- * @member {string} [description] The friendly name of the operation.
293
- * **NOTE: This property will not be serialized. It can only be populated by
294
- * the server.**
295
- */
296
- readonly description?: string;
297
- }
298
- /**
299
- * @interface
300
- * An interface representing Operation.
301
- * Describes a REST API operation.
302
- *
303
- */
304
- export interface Operation {
305
- /**
306
- * @member {string} [name] The name of the operation. This name is of the
307
- * form {provider}/{resource}/{operation}.
308
- * **NOTE: This property will not be serialized. It can only be populated by
309
- * the server.**
310
- */
311
- readonly name?: string;
312
- /**
313
- * @member {OperationDisplay} [display] The object that describes the
314
- * operation.
315
- * **NOTE: This property will not be serialized. It can only be populated by
316
- * the server.**
317
- */
318
- readonly display?: OperationDisplay;
319
- }
320
- /**
321
- * @interface
322
- * An interface representing SearchManagementRequestOptions.
323
- * Additional parameters for a set of operations.
324
- *
325
- */
326
- export interface SearchManagementRequestOptions {
327
- /**
328
- * @member {string} [clientRequestId] A client-generated GUID value that
329
- * identifies this request. If specified, this will be included in response
330
- * information as a way to track the request.
331
- */
332
- clientRequestId?: string;
333
- }
334
- /**
335
- * @interface
336
- * An interface representing AdminKeysGetOptionalParams.
337
- * Optional Parameters.
338
- *
339
- * @extends RequestOptionsBase
340
- */
341
- export interface AdminKeysGetOptionalParams extends msRest.RequestOptionsBase {
342
- /**
343
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
344
- * Additional parameters for the operation
345
- */
346
- searchManagementRequestOptions?: SearchManagementRequestOptions;
347
- }
348
- /**
349
- * @interface
350
- * An interface representing AdminKeysRegenerateOptionalParams.
351
- * Optional Parameters.
352
- *
353
- * @extends RequestOptionsBase
354
- */
355
- export interface AdminKeysRegenerateOptionalParams extends msRest.RequestOptionsBase {
356
- /**
357
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
358
- * Additional parameters for the operation
359
- */
360
- searchManagementRequestOptions?: SearchManagementRequestOptions;
361
- }
362
- /**
363
- * @interface
364
- * An interface representing QueryKeysCreateOptionalParams.
365
- * Optional Parameters.
366
- *
367
- * @extends RequestOptionsBase
368
- */
369
- export interface QueryKeysCreateOptionalParams extends msRest.RequestOptionsBase {
370
- /**
371
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
372
- * Additional parameters for the operation
373
- */
374
- searchManagementRequestOptions?: SearchManagementRequestOptions;
375
- }
376
- /**
377
- * @interface
378
- * An interface representing QueryKeysListBySearchServiceOptionalParams.
379
- * Optional Parameters.
380
- *
381
- * @extends RequestOptionsBase
382
- */
383
- export interface QueryKeysListBySearchServiceOptionalParams extends msRest.RequestOptionsBase {
384
- /**
385
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
386
- * Additional parameters for the operation
387
- */
388
- searchManagementRequestOptions?: SearchManagementRequestOptions;
389
- }
390
- /**
391
- * @interface
392
- * An interface representing QueryKeysDeleteMethodOptionalParams.
393
- * Optional Parameters.
394
- *
395
- * @extends RequestOptionsBase
396
- */
397
- export interface QueryKeysDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
398
- /**
399
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
400
- * Additional parameters for the operation
401
- */
402
- searchManagementRequestOptions?: SearchManagementRequestOptions;
403
- }
404
- /**
405
- * @interface
406
- * An interface representing ServicesCreateOrUpdateOptionalParams.
407
- * Optional Parameters.
408
- *
409
- * @extends RequestOptionsBase
410
- */
411
- export interface ServicesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
412
- /**
413
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
414
- * Additional parameters for the operation
415
- */
416
- searchManagementRequestOptions?: SearchManagementRequestOptions;
417
- }
418
- /**
419
- * @interface
420
- * An interface representing ServicesUpdateOptionalParams.
421
- * Optional Parameters.
422
- *
423
- * @extends RequestOptionsBase
424
- */
425
- export interface ServicesUpdateOptionalParams extends msRest.RequestOptionsBase {
426
- /**
427
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
428
- * Additional parameters for the operation
429
- */
430
- searchManagementRequestOptions?: SearchManagementRequestOptions;
431
- }
432
- /**
433
- * @interface
434
- * An interface representing ServicesGetOptionalParams.
435
- * Optional Parameters.
436
- *
437
- * @extends RequestOptionsBase
438
- */
439
- export interface ServicesGetOptionalParams extends msRest.RequestOptionsBase {
440
- /**
441
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
442
- * Additional parameters for the operation
443
- */
444
- searchManagementRequestOptions?: SearchManagementRequestOptions;
445
- }
446
- /**
447
- * @interface
448
- * An interface representing ServicesDeleteMethodOptionalParams.
449
- * Optional Parameters.
450
- *
451
- * @extends RequestOptionsBase
452
- */
453
- export interface ServicesDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
454
- /**
455
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
456
- * Additional parameters for the operation
457
- */
458
- searchManagementRequestOptions?: SearchManagementRequestOptions;
459
- }
460
- /**
461
- * @interface
462
- * An interface representing ServicesListByResourceGroupOptionalParams.
463
- * Optional Parameters.
464
- *
465
- * @extends RequestOptionsBase
466
- */
467
- export interface ServicesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase {
468
- /**
469
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
470
- * Additional parameters for the operation
471
- */
472
- searchManagementRequestOptions?: SearchManagementRequestOptions;
473
- }
474
- /**
475
- * @interface
476
- * An interface representing ServicesCheckNameAvailabilityOptionalParams.
477
- * Optional Parameters.
478
- *
479
- * @extends RequestOptionsBase
480
- */
481
- export interface ServicesCheckNameAvailabilityOptionalParams extends msRest.RequestOptionsBase {
482
- /**
483
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
484
- * Additional parameters for the operation
485
- */
486
- searchManagementRequestOptions?: SearchManagementRequestOptions;
487
- }
488
- /**
489
- * @interface
490
- * An interface representing ServicesBeginCreateOrUpdateOptionalParams.
491
- * Optional Parameters.
492
- *
493
- * @extends RequestOptionsBase
494
- */
495
- export interface ServicesBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
496
- /**
497
- * @member {SearchManagementRequestOptions} [searchManagementRequestOptions]
498
- * Additional parameters for the operation
499
- */
500
- searchManagementRequestOptions?: SearchManagementRequestOptions;
501
- }
502
- /**
503
- * @interface
504
- * An interface representing SearchManagementClientOptions.
505
- * @extends AzureServiceClientOptions
506
- */
507
- export interface SearchManagementClientOptions extends AzureServiceClientOptions {
508
- /**
509
- * @member {string} [baseUri]
510
- */
511
- baseUri?: string;
512
- }
513
- /**
514
- * @interface
515
- * An interface representing the OperationListResult.
516
- * The result of the request to list REST API operations. It contains a list of
517
- * operations and a URL to get the next set of results.
518
- *
519
- * @extends Array<Operation>
520
- */
521
- export interface OperationListResult extends Array<Operation> {
522
- /**
523
- * @member {string} [nextLink] The URL to get the next set of operation list
524
- * results, if any.
525
- * **NOTE: This property will not be serialized. It can only be populated by
526
- * the server.**
527
- */
528
- readonly nextLink?: string;
529
- }
530
- /**
531
- * @interface
532
- * An interface representing the ListQueryKeysResult.
533
- * Response containing the query API keys for a given Azure Search service.
534
- *
535
- * @extends Array<QueryKey>
536
- */
537
- export interface ListQueryKeysResult extends Array<QueryKey> {
538
- }
539
- /**
540
- * @interface
541
- * An interface representing the SearchServiceListResult.
542
- * Response containing a list of Azure Search services.
543
- *
544
- * @extends Array<SearchService>
545
- */
546
- export interface SearchServiceListResult extends Array<SearchService> {
547
- }
548
- /**
549
- * Defines values for UnavailableNameReason.
550
- * Possible values include: 'Invalid', 'AlreadyExists'
551
- * @readonly
552
- * @enum {string}
553
- */
554
- export declare type UnavailableNameReason = 'Invalid' | 'AlreadyExists';
555
- /**
556
- * Defines values for SkuName.
557
- * Possible values include: 'free', 'basic', 'standard', 'standard2', 'standard3'
558
- * @readonly
559
- * @enum {string}
560
- */
561
- export declare type SkuName = 'free' | 'basic' | 'standard' | 'standard2' | 'standard3';
562
- /**
563
- * Defines values for HostingMode.
564
- * Possible values include: 'default', 'highDensity'
565
- * @readonly
566
- * @enum {string}
567
- */
568
- export declare type HostingMode = 'default' | 'highDensity';
569
- /**
570
- * Defines values for SearchServiceStatus.
571
- * Possible values include: 'running', 'provisioning', 'deleting', 'degraded', 'disabled', 'error'
572
- * @readonly
573
- * @enum {string}
574
- */
575
- export declare type SearchServiceStatus = 'running' | 'provisioning' | 'deleting' | 'degraded' | 'disabled' | 'error';
576
- /**
577
- * Defines values for ProvisioningState.
578
- * Possible values include: 'succeeded', 'provisioning', 'failed'
579
- * @readonly
580
- * @enum {string}
581
- */
582
- export declare type ProvisioningState = 'succeeded' | 'provisioning' | 'failed';
583
- /**
584
- * Defines values for AdminKeyKind.
585
- * Possible values include: 'primary', 'secondary'
586
- * @readonly
587
- * @enum {string}
588
- */
589
- export declare type AdminKeyKind = 'primary' | 'secondary';
590
- /**
591
- * Contains response data for the list operation.
592
- */
593
- export declare type OperationsListResponse = OperationListResult & {
594
- /**
595
- * The underlying HTTP response.
596
- */
597
- _response: msRest.HttpResponse & {
598
- /**
599
- * The response body as text (string format)
600
- */
601
- bodyAsText: string;
602
- /**
603
- * The response body as parsed JSON or XML
604
- */
605
- parsedBody: OperationListResult;
606
- };
607
- };
608
- /**
609
- * Contains response data for the get operation.
610
- */
611
- export declare type AdminKeysGetResponse = AdminKeyResult & {
612
- /**
613
- * The underlying HTTP response.
614
- */
615
- _response: msRest.HttpResponse & {
616
- /**
617
- * The response body as text (string format)
618
- */
619
- bodyAsText: string;
620
- /**
621
- * The response body as parsed JSON or XML
622
- */
623
- parsedBody: AdminKeyResult;
624
- };
625
- };
626
- /**
627
- * Contains response data for the regenerate operation.
628
- */
629
- export declare type AdminKeysRegenerateResponse = AdminKeyResult & {
630
- /**
631
- * The underlying HTTP response.
632
- */
633
- _response: msRest.HttpResponse & {
634
- /**
635
- * The response body as text (string format)
636
- */
637
- bodyAsText: string;
638
- /**
639
- * The response body as parsed JSON or XML
640
- */
641
- parsedBody: AdminKeyResult;
642
- };
643
- };
644
- /**
645
- * Contains response data for the create operation.
646
- */
647
- export declare type QueryKeysCreateResponse = QueryKey & {
648
- /**
649
- * The underlying HTTP response.
650
- */
651
- _response: msRest.HttpResponse & {
652
- /**
653
- * The response body as text (string format)
654
- */
655
- bodyAsText: string;
656
- /**
657
- * The response body as parsed JSON or XML
658
- */
659
- parsedBody: QueryKey;
660
- };
661
- };
662
- /**
663
- * Contains response data for the listBySearchService operation.
664
- */
665
- export declare type QueryKeysListBySearchServiceResponse = ListQueryKeysResult & {
666
- /**
667
- * The underlying HTTP response.
668
- */
669
- _response: msRest.HttpResponse & {
670
- /**
671
- * The response body as text (string format)
672
- */
673
- bodyAsText: string;
674
- /**
675
- * The response body as parsed JSON or XML
676
- */
677
- parsedBody: ListQueryKeysResult;
678
- };
679
- };
680
- /**
681
- * Contains response data for the createOrUpdate operation.
682
- */
683
- export declare type ServicesCreateOrUpdateResponse = SearchService & {
684
- /**
685
- * The underlying HTTP response.
686
- */
687
- _response: msRest.HttpResponse & {
688
- /**
689
- * The response body as text (string format)
690
- */
691
- bodyAsText: string;
692
- /**
693
- * The response body as parsed JSON or XML
694
- */
695
- parsedBody: SearchService;
696
- };
697
- };
698
- /**
699
- * Contains response data for the update operation.
700
- */
701
- export declare type ServicesUpdateResponse = SearchService & {
702
- /**
703
- * The underlying HTTP response.
704
- */
705
- _response: msRest.HttpResponse & {
706
- /**
707
- * The response body as text (string format)
708
- */
709
- bodyAsText: string;
710
- /**
711
- * The response body as parsed JSON or XML
712
- */
713
- parsedBody: SearchService;
714
- };
715
- };
716
- /**
717
- * Contains response data for the get operation.
718
- */
719
- export declare type ServicesGetResponse = SearchService & {
720
- /**
721
- * The underlying HTTP response.
722
- */
723
- _response: msRest.HttpResponse & {
724
- /**
725
- * The response body as text (string format)
726
- */
727
- bodyAsText: string;
728
- /**
729
- * The response body as parsed JSON or XML
730
- */
731
- parsedBody: SearchService;
732
- };
733
- };
734
- /**
735
- * Contains response data for the listByResourceGroup operation.
736
- */
737
- export declare type ServicesListByResourceGroupResponse = SearchServiceListResult & {
738
- /**
739
- * The underlying HTTP response.
740
- */
741
- _response: msRest.HttpResponse & {
742
- /**
743
- * The response body as text (string format)
744
- */
745
- bodyAsText: string;
746
- /**
747
- * The response body as parsed JSON or XML
748
- */
749
- parsedBody: SearchServiceListResult;
750
- };
751
- };
752
- /**
753
- * Contains response data for the checkNameAvailability operation.
754
- */
755
- export declare type ServicesCheckNameAvailabilityResponse = CheckNameAvailabilityOutput & {
756
- /**
757
- * The underlying HTTP response.
758
- */
759
- _response: msRest.HttpResponse & {
760
- /**
761
- * The response body as text (string format)
762
- */
763
- bodyAsText: string;
764
- /**
765
- * The response body as parsed JSON or XML
766
- */
767
- parsedBody: CheckNameAvailabilityOutput;
768
- };
769
- };
770
- /**
771
- * Contains response data for the beginCreateOrUpdate operation.
772
- */
773
- export declare type ServicesBeginCreateOrUpdateResponse = SearchService & {
774
- /**
775
- * The underlying HTTP response.
776
- */
777
- _response: msRest.HttpResponse & {
778
- /**
779
- * The response body as text (string format)
780
- */
781
- bodyAsText: string;
782
- /**
783
- * The response body as parsed JSON or XML
784
- */
785
- parsedBody: SearchService;
786
- };
787
- };
788
- //# sourceMappingURL=index.d.ts.map