@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,439 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * 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
8
- * regenerated.
9
- */
10
-
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as msRestAzure from "@azure/ms-rest-azure-js";
13
- import * as Models from "../models";
14
- import * as Mappers from "../models/servicesMappers";
15
- import * as Parameters from "../models/parameters";
16
- import { SearchManagementClientContext } from "../searchManagementClientContext";
17
-
18
- /** Class representing a Services. */
19
- export class Services {
20
- private readonly client: SearchManagementClientContext;
21
-
22
- /**
23
- * Create a Services.
24
- * @param {SearchManagementClientContext} client Reference to the service client.
25
- */
26
- constructor(client: SearchManagementClientContext) {
27
- this.client = client;
28
- }
29
-
30
- /**
31
- * Creates or updates a Search service in the given resource group. If the Search service already
32
- * exists, all properties will be updated with the given values.
33
- * @param resourceGroupName The name of the resource group within the current subscription. You can
34
- * obtain this value from the Azure Resource Manager API or the portal.
35
- * @param searchServiceName The name of the Azure Search service to create or update. Search
36
- * service names must only contain lowercase letters, digits or dashes, cannot use dash as the
37
- * first two or last one characters, cannot contain consecutive dashes, and must be between 2 and
38
- * 60 characters in length. Search service names must be globally unique since they are part of the
39
- * service URI (https://<name>.search.windows.net). You cannot change the service name after the
40
- * service is created.
41
- * @param service The definition of the Search service to create or update.
42
- * @param [options] The optional parameters
43
- * @returns Promise<Models.ServicesCreateOrUpdateResponse>
44
- */
45
- createOrUpdate(resourceGroupName: string, searchServiceName: string, service: Models.SearchService, options?: Models.ServicesCreateOrUpdateOptionalParams): Promise<Models.ServicesCreateOrUpdateResponse> {
46
- return this.beginCreateOrUpdate(resourceGroupName,searchServiceName,service,options)
47
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.ServicesCreateOrUpdateResponse>;
48
- }
49
-
50
- /**
51
- * Updates an existing Search service in the given resource group.
52
- * @param resourceGroupName The name of the resource group within the current subscription. You can
53
- * obtain this value from the Azure Resource Manager API or the portal.
54
- * @param searchServiceName The name of the Azure Search service to update.
55
- * @param service The definition of the Search service to update.
56
- * @param [options] The optional parameters
57
- * @returns Promise<Models.ServicesUpdateResponse>
58
- */
59
- update(resourceGroupName: string, searchServiceName: string, service: Models.SearchService, options?: Models.ServicesUpdateOptionalParams): Promise<Models.ServicesUpdateResponse>;
60
- /**
61
- * @param resourceGroupName The name of the resource group within the current subscription. You can
62
- * obtain this value from the Azure Resource Manager API or the portal.
63
- * @param searchServiceName The name of the Azure Search service to update.
64
- * @param service The definition of the Search service to update.
65
- * @param callback The callback
66
- */
67
- update(resourceGroupName: string, searchServiceName: string, service: Models.SearchService, callback: msRest.ServiceCallback<Models.SearchService>): void;
68
- /**
69
- * @param resourceGroupName The name of the resource group within the current subscription. You can
70
- * obtain this value from the Azure Resource Manager API or the portal.
71
- * @param searchServiceName The name of the Azure Search service to update.
72
- * @param service The definition of the Search service to update.
73
- * @param options The optional parameters
74
- * @param callback The callback
75
- */
76
- update(resourceGroupName: string, searchServiceName: string, service: Models.SearchService, options: Models.ServicesUpdateOptionalParams, callback: msRest.ServiceCallback<Models.SearchService>): void;
77
- update(resourceGroupName: string, searchServiceName: string, service: Models.SearchService, options?: Models.ServicesUpdateOptionalParams | msRest.ServiceCallback<Models.SearchService>, callback?: msRest.ServiceCallback<Models.SearchService>): Promise<Models.ServicesUpdateResponse> {
78
- return this.client.sendOperationRequest(
79
- {
80
- resourceGroupName,
81
- searchServiceName,
82
- service,
83
- options
84
- },
85
- updateOperationSpec,
86
- callback) as Promise<Models.ServicesUpdateResponse>;
87
- }
88
-
89
- /**
90
- * Gets the Search service with the given name in the given resource group.
91
- * @param resourceGroupName The name of the resource group within the current subscription. You can
92
- * obtain this value from the Azure Resource Manager API or the portal.
93
- * @param searchServiceName The name of the Azure Search service associated with the specified
94
- * resource group.
95
- * @param [options] The optional parameters
96
- * @returns Promise<Models.ServicesGetResponse>
97
- */
98
- get(resourceGroupName: string, searchServiceName: string, options?: Models.ServicesGetOptionalParams): Promise<Models.ServicesGetResponse>;
99
- /**
100
- * @param resourceGroupName The name of the resource group within the current subscription. You can
101
- * obtain this value from the Azure Resource Manager API or the portal.
102
- * @param searchServiceName The name of the Azure Search service associated with the specified
103
- * resource group.
104
- * @param callback The callback
105
- */
106
- get(resourceGroupName: string, searchServiceName: string, callback: msRest.ServiceCallback<Models.SearchService>): void;
107
- /**
108
- * @param resourceGroupName The name of the resource group within the current subscription. You can
109
- * obtain this value from the Azure Resource Manager API or the portal.
110
- * @param searchServiceName The name of the Azure Search service associated with the specified
111
- * resource group.
112
- * @param options The optional parameters
113
- * @param callback The callback
114
- */
115
- get(resourceGroupName: string, searchServiceName: string, options: Models.ServicesGetOptionalParams, callback: msRest.ServiceCallback<Models.SearchService>): void;
116
- get(resourceGroupName: string, searchServiceName: string, options?: Models.ServicesGetOptionalParams | msRest.ServiceCallback<Models.SearchService>, callback?: msRest.ServiceCallback<Models.SearchService>): Promise<Models.ServicesGetResponse> {
117
- return this.client.sendOperationRequest(
118
- {
119
- resourceGroupName,
120
- searchServiceName,
121
- options
122
- },
123
- getOperationSpec,
124
- callback) as Promise<Models.ServicesGetResponse>;
125
- }
126
-
127
- /**
128
- * Deletes a Search service in the given resource group, along with its associated resources.
129
- * @param resourceGroupName The name of the resource group within the current subscription. You can
130
- * obtain this value from the Azure Resource Manager API or the portal.
131
- * @param searchServiceName The name of the Azure Search service associated with the specified
132
- * resource group.
133
- * @param [options] The optional parameters
134
- * @returns Promise<msRest.RestResponse>
135
- */
136
- deleteMethod(resourceGroupName: string, searchServiceName: string, options?: Models.ServicesDeleteMethodOptionalParams): Promise<msRest.RestResponse>;
137
- /**
138
- * @param resourceGroupName The name of the resource group within the current subscription. You can
139
- * obtain this value from the Azure Resource Manager API or the portal.
140
- * @param searchServiceName The name of the Azure Search service associated with the specified
141
- * resource group.
142
- * @param callback The callback
143
- */
144
- deleteMethod(resourceGroupName: string, searchServiceName: string, callback: msRest.ServiceCallback<void>): void;
145
- /**
146
- * @param resourceGroupName The name of the resource group within the current subscription. You can
147
- * obtain this value from the Azure Resource Manager API or the portal.
148
- * @param searchServiceName The name of the Azure Search service associated with the specified
149
- * resource group.
150
- * @param options The optional parameters
151
- * @param callback The callback
152
- */
153
- deleteMethod(resourceGroupName: string, searchServiceName: string, options: Models.ServicesDeleteMethodOptionalParams, callback: msRest.ServiceCallback<void>): void;
154
- deleteMethod(resourceGroupName: string, searchServiceName: string, options?: Models.ServicesDeleteMethodOptionalParams | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
155
- return this.client.sendOperationRequest(
156
- {
157
- resourceGroupName,
158
- searchServiceName,
159
- options
160
- },
161
- deleteMethodOperationSpec,
162
- callback);
163
- }
164
-
165
- /**
166
- * Gets a list of all Search services in the given resource group.
167
- * @param resourceGroupName The name of the resource group within the current subscription. You can
168
- * obtain this value from the Azure Resource Manager API or the portal.
169
- * @param [options] The optional parameters
170
- * @returns Promise<Models.ServicesListByResourceGroupResponse>
171
- */
172
- listByResourceGroup(resourceGroupName: string, options?: Models.ServicesListByResourceGroupOptionalParams): Promise<Models.ServicesListByResourceGroupResponse>;
173
- /**
174
- * @param resourceGroupName The name of the resource group within the current subscription. You can
175
- * obtain this value from the Azure Resource Manager API or the portal.
176
- * @param callback The callback
177
- */
178
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.SearchServiceListResult>): void;
179
- /**
180
- * @param resourceGroupName The name of the resource group within the current subscription. You can
181
- * obtain this value from the Azure Resource Manager API or the portal.
182
- * @param options The optional parameters
183
- * @param callback The callback
184
- */
185
- listByResourceGroup(resourceGroupName: string, options: Models.ServicesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.SearchServiceListResult>): void;
186
- listByResourceGroup(resourceGroupName: string, options?: Models.ServicesListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.SearchServiceListResult>, callback?: msRest.ServiceCallback<Models.SearchServiceListResult>): Promise<Models.ServicesListByResourceGroupResponse> {
187
- return this.client.sendOperationRequest(
188
- {
189
- resourceGroupName,
190
- options
191
- },
192
- listByResourceGroupOperationSpec,
193
- callback) as Promise<Models.ServicesListByResourceGroupResponse>;
194
- }
195
-
196
- /**
197
- * Checks whether or not the given Search service name is available for use. Search service names
198
- * must be globally unique since they are part of the service URI
199
- * (https://<name>.search.windows.net).
200
- * @param name The Search service name to validate. Search service names must only contain
201
- * lowercase letters, digits or dashes, cannot use dash as the first two or last one characters,
202
- * cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
203
- * @param [options] The optional parameters
204
- * @returns Promise<Models.ServicesCheckNameAvailabilityResponse>
205
- */
206
- checkNameAvailability(name: string, options?: Models.ServicesCheckNameAvailabilityOptionalParams): Promise<Models.ServicesCheckNameAvailabilityResponse>;
207
- /**
208
- * @param name The Search service name to validate. Search service names must only contain
209
- * lowercase letters, digits or dashes, cannot use dash as the first two or last one characters,
210
- * cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
211
- * @param callback The callback
212
- */
213
- checkNameAvailability(name: string, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
214
- /**
215
- * @param name The Search service name to validate. Search service names must only contain
216
- * lowercase letters, digits or dashes, cannot use dash as the first two or last one characters,
217
- * cannot contain consecutive dashes, and must be between 2 and 60 characters in length.
218
- * @param options The optional parameters
219
- * @param callback The callback
220
- */
221
- checkNameAvailability(name: string, options: Models.ServicesCheckNameAvailabilityOptionalParams, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
222
- checkNameAvailability(name: string, options?: Models.ServicesCheckNameAvailabilityOptionalParams | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.ServicesCheckNameAvailabilityResponse> {
223
- return this.client.sendOperationRequest(
224
- {
225
- name,
226
- options
227
- },
228
- checkNameAvailabilityOperationSpec,
229
- callback) as Promise<Models.ServicesCheckNameAvailabilityResponse>;
230
- }
231
-
232
- /**
233
- * Creates or updates a Search service in the given resource group. If the Search service already
234
- * exists, all properties will be updated with the given values.
235
- * @param resourceGroupName The name of the resource group within the current subscription. You can
236
- * obtain this value from the Azure Resource Manager API or the portal.
237
- * @param searchServiceName The name of the Azure Search service to create or update. Search
238
- * service names must only contain lowercase letters, digits or dashes, cannot use dash as the
239
- * first two or last one characters, cannot contain consecutive dashes, and must be between 2 and
240
- * 60 characters in length. Search service names must be globally unique since they are part of the
241
- * service URI (https://<name>.search.windows.net). You cannot change the service name after the
242
- * service is created.
243
- * @param service The definition of the Search service to create or update.
244
- * @param [options] The optional parameters
245
- * @returns Promise<msRestAzure.LROPoller>
246
- */
247
- beginCreateOrUpdate(resourceGroupName: string, searchServiceName: string, service: Models.SearchService, options?: Models.ServicesBeginCreateOrUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
248
- return this.client.sendLRORequest(
249
- {
250
- resourceGroupName,
251
- searchServiceName,
252
- service,
253
- options
254
- },
255
- beginCreateOrUpdateOperationSpec,
256
- options);
257
- }
258
- }
259
-
260
- // Operation Specifications
261
- const serializer = new msRest.Serializer(Mappers);
262
- const updateOperationSpec: msRest.OperationSpec = {
263
- httpMethod: "PATCH",
264
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
265
- urlParameters: [
266
- Parameters.resourceGroupName,
267
- Parameters.searchServiceName,
268
- Parameters.subscriptionId
269
- ],
270
- queryParameters: [
271
- Parameters.apiVersion
272
- ],
273
- headerParameters: [
274
- Parameters.acceptLanguage,
275
- Parameters.clientRequestId
276
- ],
277
- requestBody: {
278
- parameterPath: "service",
279
- mapper: {
280
- ...Mappers.SearchService,
281
- required: true
282
- }
283
- },
284
- responses: {
285
- 200: {
286
- bodyMapper: Mappers.SearchService
287
- },
288
- default: {
289
- bodyMapper: Mappers.CloudError
290
- }
291
- },
292
- serializer
293
- };
294
-
295
- const getOperationSpec: msRest.OperationSpec = {
296
- httpMethod: "GET",
297
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
298
- urlParameters: [
299
- Parameters.resourceGroupName,
300
- Parameters.searchServiceName,
301
- Parameters.subscriptionId
302
- ],
303
- queryParameters: [
304
- Parameters.apiVersion
305
- ],
306
- headerParameters: [
307
- Parameters.acceptLanguage,
308
- Parameters.clientRequestId
309
- ],
310
- responses: {
311
- 200: {
312
- bodyMapper: Mappers.SearchService
313
- },
314
- default: {
315
- bodyMapper: Mappers.CloudError
316
- }
317
- },
318
- serializer
319
- };
320
-
321
- const deleteMethodOperationSpec: msRest.OperationSpec = {
322
- httpMethod: "DELETE",
323
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
324
- urlParameters: [
325
- Parameters.resourceGroupName,
326
- Parameters.searchServiceName,
327
- Parameters.subscriptionId
328
- ],
329
- queryParameters: [
330
- Parameters.apiVersion
331
- ],
332
- headerParameters: [
333
- Parameters.acceptLanguage,
334
- Parameters.clientRequestId
335
- ],
336
- responses: {
337
- 200: {},
338
- 204: {},
339
- 404: {},
340
- default: {
341
- bodyMapper: Mappers.CloudError
342
- }
343
- },
344
- serializer
345
- };
346
-
347
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
348
- httpMethod: "GET",
349
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices",
350
- urlParameters: [
351
- Parameters.resourceGroupName,
352
- Parameters.subscriptionId
353
- ],
354
- queryParameters: [
355
- Parameters.apiVersion
356
- ],
357
- headerParameters: [
358
- Parameters.acceptLanguage,
359
- Parameters.clientRequestId
360
- ],
361
- responses: {
362
- 200: {
363
- bodyMapper: Mappers.SearchServiceListResult
364
- },
365
- default: {
366
- bodyMapper: Mappers.CloudError
367
- }
368
- },
369
- serializer
370
- };
371
-
372
- const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
373
- httpMethod: "POST",
374
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Search/checkNameAvailability",
375
- urlParameters: [
376
- Parameters.subscriptionId
377
- ],
378
- queryParameters: [
379
- Parameters.apiVersion
380
- ],
381
- headerParameters: [
382
- Parameters.acceptLanguage,
383
- Parameters.clientRequestId
384
- ],
385
- requestBody: {
386
- parameterPath: {
387
- name: "name"
388
- },
389
- mapper: {
390
- ...Mappers.CheckNameAvailabilityInput,
391
- required: true
392
- }
393
- },
394
- responses: {
395
- 200: {
396
- bodyMapper: Mappers.CheckNameAvailabilityOutput
397
- },
398
- default: {
399
- bodyMapper: Mappers.CloudError
400
- }
401
- },
402
- serializer
403
- };
404
-
405
- const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
406
- httpMethod: "PUT",
407
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}",
408
- urlParameters: [
409
- Parameters.resourceGroupName,
410
- Parameters.searchServiceName,
411
- Parameters.subscriptionId
412
- ],
413
- queryParameters: [
414
- Parameters.apiVersion
415
- ],
416
- headerParameters: [
417
- Parameters.acceptLanguage,
418
- Parameters.clientRequestId
419
- ],
420
- requestBody: {
421
- parameterPath: "service",
422
- mapper: {
423
- ...Mappers.SearchService,
424
- required: true
425
- }
426
- },
427
- responses: {
428
- 200: {
429
- bodyMapper: Mappers.SearchService
430
- },
431
- 201: {
432
- bodyMapper: Mappers.SearchService
433
- },
434
- default: {
435
- bodyMapper: Mappers.CloudError
436
- }
437
- },
438
- serializer
439
- };
@@ -1,49 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * 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
8
- * regenerated.
9
- */
10
-
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "./models";
13
- import * as Mappers from "./models/mappers";
14
- import * as operations from "./operations";
15
- import { SearchManagementClientContext } from "./searchManagementClientContext";
16
-
17
-
18
- class SearchManagementClient extends SearchManagementClientContext {
19
- // Operation groups
20
- operations: operations.Operations;
21
- adminKeys: operations.AdminKeys;
22
- queryKeys: operations.QueryKeys;
23
- services: operations.Services;
24
-
25
- /**
26
- * Initializes a new instance of the SearchManagementClient class.
27
- * @param credentials Credentials needed for the client to connect to Azure.
28
- * @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain
29
- * this value from the Azure Resource Manager API or the portal.
30
- * @param [options] The parameter options
31
- */
32
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SearchManagementClientOptions) {
33
- super(credentials, subscriptionId, options);
34
- this.operations = new operations.Operations(this);
35
- this.adminKeys = new operations.AdminKeys(this);
36
- this.queryKeys = new operations.QueryKeys(this);
37
- this.services = new operations.Services(this);
38
- }
39
- }
40
-
41
- // Operation Specifications
42
-
43
- export {
44
- SearchManagementClient,
45
- SearchManagementClientContext,
46
- Models as SearchManagementModels,
47
- Mappers as SearchManagementMappers
48
- };
49
- export * from "./operations";
@@ -1,63 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * 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
8
- * regenerated.
9
- */
10
-
11
- import * as Models from "./models";
12
- import * as msRest from "@azure/ms-rest-js";
13
- import * as msRestAzure from "@azure/ms-rest-azure-js";
14
-
15
- const packageName = "@azure/arm-search";
16
- const packageVersion = "0.1.0";
17
-
18
- export class SearchManagementClientContext extends msRestAzure.AzureServiceClient {
19
- credentials: msRest.ServiceClientCredentials;
20
- subscriptionId: string;
21
- apiVersion?: string;
22
-
23
- /**
24
- * Initializes a new instance of the SearchManagementClient class.
25
- * @param credentials Credentials needed for the client to connect to Azure.
26
- * @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain
27
- * this value from the Azure Resource Manager API or the portal.
28
- * @param [options] The parameter options
29
- */
30
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SearchManagementClientOptions) {
31
- if (credentials == undefined) {
32
- throw new Error('\'credentials\' cannot be null.');
33
- }
34
- if (subscriptionId == undefined) {
35
- throw new Error('\'subscriptionId\' cannot be null.');
36
- }
37
-
38
- if (!options) {
39
- options = {};
40
- }
41
- if(!options.userAgent) {
42
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
43
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
44
- }
45
-
46
- super(credentials, options);
47
-
48
- this.apiVersion = '2015-08-19';
49
- this.acceptLanguage = 'en-US';
50
- this.longRunningOperationRetryTimeout = 30;
51
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
52
- this.requestContentType = "application/json; charset=utf-8";
53
- this.credentials = credentials;
54
- this.subscriptionId = subscriptionId;
55
-
56
- if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
57
- this.acceptLanguage = options.acceptLanguage;
58
- }
59
- if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
60
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
61
- }
62
- }
63
- }