@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
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ PrivateEndpointConnection,
12
+ PrivateEndpointConnectionsListByServiceOptionalParams,
13
+ PrivateEndpointConnectionsUpdateOptionalParams,
14
+ PrivateEndpointConnectionsUpdateResponse,
15
+ PrivateEndpointConnectionsGetOptionalParams,
16
+ PrivateEndpointConnectionsGetResponse,
17
+ PrivateEndpointConnectionsDeleteOptionalParams,
18
+ PrivateEndpointConnectionsDeleteResponse
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a PrivateEndpointConnections. */
23
+ export interface PrivateEndpointConnections {
24
+ /**
25
+ * Gets a list of all private endpoint connections in the given service.
26
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
27
+ * obtain this value from the Azure Resource Manager API or the portal.
28
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
29
+ * specified resource group.
30
+ * @param options The options parameters.
31
+ */
32
+ listByService(
33
+ resourceGroupName: string,
34
+ searchServiceName: string,
35
+ options?: PrivateEndpointConnectionsListByServiceOptionalParams
36
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
37
+ /**
38
+ * Updates a Private Endpoint connection to the search service in the given resource group.
39
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
40
+ * obtain this value from the Azure Resource Manager API or the portal.
41
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
42
+ * specified resource group.
43
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
44
+ * Cognitive Search service with the specified resource group.
45
+ * @param privateEndpointConnection The definition of the private endpoint connection to update.
46
+ * @param options The options parameters.
47
+ */
48
+ update(
49
+ resourceGroupName: string,
50
+ searchServiceName: string,
51
+ privateEndpointConnectionName: string,
52
+ privateEndpointConnection: PrivateEndpointConnection,
53
+ options?: PrivateEndpointConnectionsUpdateOptionalParams
54
+ ): Promise<PrivateEndpointConnectionsUpdateResponse>;
55
+ /**
56
+ * Gets the details of the private endpoint connection to the search service in the given resource
57
+ * group.
58
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
59
+ * obtain this value from the Azure Resource Manager API or the portal.
60
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
61
+ * specified resource group.
62
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
63
+ * Cognitive Search service with the specified resource group.
64
+ * @param options The options parameters.
65
+ */
66
+ get(
67
+ resourceGroupName: string,
68
+ searchServiceName: string,
69
+ privateEndpointConnectionName: string,
70
+ options?: PrivateEndpointConnectionsGetOptionalParams
71
+ ): Promise<PrivateEndpointConnectionsGetResponse>;
72
+ /**
73
+ * Disconnects the private endpoint connection and deletes it from the search service.
74
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
75
+ * obtain this value from the Azure Resource Manager API or the portal.
76
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
77
+ * specified resource group.
78
+ * @param privateEndpointConnectionName The name of the private endpoint connection to the Azure
79
+ * Cognitive Search service with the specified resource group.
80
+ * @param options The options parameters.
81
+ */
82
+ delete(
83
+ resourceGroupName: string,
84
+ searchServiceName: string,
85
+ privateEndpointConnectionName: string,
86
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
87
+ ): Promise<PrivateEndpointConnectionsDeleteResponse>;
88
+ }
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ PrivateLinkResource,
12
+ PrivateLinkResourcesListSupportedOptionalParams
13
+ } from "../models";
14
+
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Interface representing a PrivateLinkResources. */
17
+ export interface PrivateLinkResources {
18
+ /**
19
+ * Gets a list of all supported private link resource types for the given service.
20
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
21
+ * obtain this value from the Azure Resource Manager API or the portal.
22
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
23
+ * specified resource group.
24
+ * @param options The options parameters.
25
+ */
26
+ listSupported(
27
+ resourceGroupName: string,
28
+ searchServiceName: string,
29
+ options?: PrivateLinkResourcesListSupportedOptionalParams
30
+ ): PagedAsyncIterableIterator<PrivateLinkResource>;
31
+ }
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import {
11
+ QueryKey,
12
+ QueryKeysListBySearchServiceOptionalParams,
13
+ QueryKeysCreateOptionalParams,
14
+ QueryKeysCreateResponse,
15
+ QueryKeysDeleteOptionalParams
16
+ } from "../models";
17
+
18
+ /// <reference lib="esnext.asynciterable" />
19
+ /** Interface representing a QueryKeys. */
20
+ export interface QueryKeys {
21
+ /**
22
+ * Returns the list of query API keys for the given Azure Cognitive Search service.
23
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
24
+ * obtain this value from the Azure Resource Manager API or the portal.
25
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
26
+ * specified resource group.
27
+ * @param options The options parameters.
28
+ */
29
+ listBySearchService(
30
+ resourceGroupName: string,
31
+ searchServiceName: string,
32
+ options?: QueryKeysListBySearchServiceOptionalParams
33
+ ): PagedAsyncIterableIterator<QueryKey>;
34
+ /**
35
+ * Generates a new query key for the specified search service. You can create up to 50 query keys per
36
+ * service.
37
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
38
+ * obtain this value from the Azure Resource Manager API or the portal.
39
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
40
+ * specified resource group.
41
+ * @param name The name of the new query API key.
42
+ * @param options The options parameters.
43
+ */
44
+ create(
45
+ resourceGroupName: string,
46
+ searchServiceName: string,
47
+ name: string,
48
+ options?: QueryKeysCreateOptionalParams
49
+ ): Promise<QueryKeysCreateResponse>;
50
+ /**
51
+ * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for
52
+ * regenerating a query key is to delete and then recreate it.
53
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
54
+ * obtain this value from the Azure Resource Manager API or the portal.
55
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
56
+ * specified resource group.
57
+ * @param key The query key to be deleted. Query keys are identified by value, not by name.
58
+ * @param options The options parameters.
59
+ */
60
+ delete(
61
+ resourceGroupName: string,
62
+ searchServiceName: string,
63
+ key: string,
64
+ options?: QueryKeysDeleteOptionalParams
65
+ ): Promise<void>;
66
+ }
@@ -0,0 +1,144 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ SearchService,
13
+ ServicesListByResourceGroupOptionalParams,
14
+ ServicesListBySubscriptionOptionalParams,
15
+ ServicesCreateOrUpdateOptionalParams,
16
+ ServicesCreateOrUpdateResponse,
17
+ SearchServiceUpdate,
18
+ ServicesUpdateOptionalParams,
19
+ ServicesUpdateResponse,
20
+ ServicesGetOptionalParams,
21
+ ServicesGetResponse,
22
+ ServicesDeleteOptionalParams,
23
+ ServicesCheckNameAvailabilityOptionalParams,
24
+ ServicesCheckNameAvailabilityResponse
25
+ } from "../models";
26
+
27
+ /// <reference lib="esnext.asynciterable" />
28
+ /** Interface representing a Services. */
29
+ export interface Services {
30
+ /**
31
+ * Gets a list of all search services in the given resource group.
32
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
33
+ * obtain this value from the Azure Resource Manager API or the portal.
34
+ * @param options The options parameters.
35
+ */
36
+ listByResourceGroup(
37
+ resourceGroupName: string,
38
+ options?: ServicesListByResourceGroupOptionalParams
39
+ ): PagedAsyncIterableIterator<SearchService>;
40
+ /**
41
+ * Gets a list of all search services in the given subscription.
42
+ * @param options The options parameters.
43
+ */
44
+ listBySubscription(
45
+ options?: ServicesListBySubscriptionOptionalParams
46
+ ): PagedAsyncIterableIterator<SearchService>;
47
+ /**
48
+ * Creates or updates a search service in the given resource group. If the search service already
49
+ * exists, all properties will be updated with the given values.
50
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
51
+ * obtain this value from the Azure Resource Manager API or the portal.
52
+ * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
53
+ * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
54
+ * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
55
+ * characters in length. Search service names must be globally unique since they are part of the
56
+ * service URI (https://<name>.search.windows.net). You cannot change the service name after the
57
+ * service is created.
58
+ * @param service The definition of the search service to create or update.
59
+ * @param options The options parameters.
60
+ */
61
+ beginCreateOrUpdate(
62
+ resourceGroupName: string,
63
+ searchServiceName: string,
64
+ service: SearchService,
65
+ options?: ServicesCreateOrUpdateOptionalParams
66
+ ): Promise<
67
+ PollerLike<
68
+ PollOperationState<ServicesCreateOrUpdateResponse>,
69
+ ServicesCreateOrUpdateResponse
70
+ >
71
+ >;
72
+ /**
73
+ * Creates or updates a search service in the given resource group. If the search service already
74
+ * exists, all properties will be updated with the given values.
75
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
76
+ * obtain this value from the Azure Resource Manager API or the portal.
77
+ * @param searchServiceName The name of the Azure Cognitive Search service to create or update. Search
78
+ * service names must only contain lowercase letters, digits or dashes, cannot use dash as the first
79
+ * two or last one characters, cannot contain consecutive dashes, and must be between 2 and 60
80
+ * characters in length. Search service names must be globally unique since they are part of the
81
+ * service URI (https://<name>.search.windows.net). You cannot change the service name after the
82
+ * service is created.
83
+ * @param service The definition of the search service to create or update.
84
+ * @param options The options parameters.
85
+ */
86
+ beginCreateOrUpdateAndWait(
87
+ resourceGroupName: string,
88
+ searchServiceName: string,
89
+ service: SearchService,
90
+ options?: ServicesCreateOrUpdateOptionalParams
91
+ ): Promise<ServicesCreateOrUpdateResponse>;
92
+ /**
93
+ * Updates an existing search service in the given resource group.
94
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
95
+ * obtain this value from the Azure Resource Manager API or the portal.
96
+ * @param searchServiceName The name of the Azure Cognitive Search service to update.
97
+ * @param service The definition of the search service to update.
98
+ * @param options The options parameters.
99
+ */
100
+ update(
101
+ resourceGroupName: string,
102
+ searchServiceName: string,
103
+ service: SearchServiceUpdate,
104
+ options?: ServicesUpdateOptionalParams
105
+ ): Promise<ServicesUpdateResponse>;
106
+ /**
107
+ * Gets the search service with the given name in the given resource group.
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 Cognitive Search service associated with the
111
+ * specified resource group.
112
+ * @param options The options parameters.
113
+ */
114
+ get(
115
+ resourceGroupName: string,
116
+ searchServiceName: string,
117
+ options?: ServicesGetOptionalParams
118
+ ): Promise<ServicesGetResponse>;
119
+ /**
120
+ * Deletes a search service in the given resource group, along with its associated resources.
121
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
122
+ * obtain this value from the Azure Resource Manager API or the portal.
123
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
124
+ * specified resource group.
125
+ * @param options The options parameters.
126
+ */
127
+ delete(
128
+ resourceGroupName: string,
129
+ searchServiceName: string,
130
+ options?: ServicesDeleteOptionalParams
131
+ ): Promise<void>;
132
+ /**
133
+ * Checks whether or not the given search service name is available for use. Search service names must
134
+ * be globally unique since they are part of the service URI (https://<name>.search.windows.net).
135
+ * @param name The search service name to validate. Search service names must only contain lowercase
136
+ * letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain
137
+ * consecutive dashes, and must be between 2 and 60 characters in length.
138
+ * @param options The options parameters.
139
+ */
140
+ checkNameAvailability(
141
+ name: string,
142
+ options?: ServicesCheckNameAvailabilityOptionalParams
143
+ ): Promise<ServicesCheckNameAvailabilityResponse>;
144
+ }
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ SharedPrivateLinkResource,
13
+ SharedPrivateLinkResourcesListByServiceOptionalParams,
14
+ SharedPrivateLinkResourcesCreateOrUpdateOptionalParams,
15
+ SharedPrivateLinkResourcesCreateOrUpdateResponse,
16
+ SharedPrivateLinkResourcesGetOptionalParams,
17
+ SharedPrivateLinkResourcesGetResponse,
18
+ SharedPrivateLinkResourcesDeleteOptionalParams
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a SharedPrivateLinkResources. */
23
+ export interface SharedPrivateLinkResources {
24
+ /**
25
+ * Gets a list of all shared private link resources managed by the given service.
26
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
27
+ * obtain this value from the Azure Resource Manager API or the portal.
28
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
29
+ * specified resource group.
30
+ * @param options The options parameters.
31
+ */
32
+ listByService(
33
+ resourceGroupName: string,
34
+ searchServiceName: string,
35
+ options?: SharedPrivateLinkResourcesListByServiceOptionalParams
36
+ ): PagedAsyncIterableIterator<SharedPrivateLinkResource>;
37
+ /**
38
+ * Initiates the creation or update of a shared private link resource managed by the search service in
39
+ * the given resource group.
40
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
41
+ * obtain this value from the Azure Resource Manager API or the portal.
42
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
43
+ * specified resource group.
44
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
45
+ * Azure Cognitive Search service within the specified resource group.
46
+ * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
47
+ * update.
48
+ * @param options The options parameters.
49
+ */
50
+ beginCreateOrUpdate(
51
+ resourceGroupName: string,
52
+ searchServiceName: string,
53
+ sharedPrivateLinkResourceName: string,
54
+ sharedPrivateLinkResource: SharedPrivateLinkResource,
55
+ options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
56
+ ): Promise<
57
+ PollerLike<
58
+ PollOperationState<SharedPrivateLinkResourcesCreateOrUpdateResponse>,
59
+ SharedPrivateLinkResourcesCreateOrUpdateResponse
60
+ >
61
+ >;
62
+ /**
63
+ * Initiates the creation or update of a shared private link resource managed by the search service in
64
+ * the given resource group.
65
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
66
+ * obtain this value from the Azure Resource Manager API or the portal.
67
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
68
+ * specified resource group.
69
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
70
+ * Azure Cognitive Search service within the specified resource group.
71
+ * @param sharedPrivateLinkResource The definition of the shared private link resource to create or
72
+ * update.
73
+ * @param options The options parameters.
74
+ */
75
+ beginCreateOrUpdateAndWait(
76
+ resourceGroupName: string,
77
+ searchServiceName: string,
78
+ sharedPrivateLinkResourceName: string,
79
+ sharedPrivateLinkResource: SharedPrivateLinkResource,
80
+ options?: SharedPrivateLinkResourcesCreateOrUpdateOptionalParams
81
+ ): Promise<SharedPrivateLinkResourcesCreateOrUpdateResponse>;
82
+ /**
83
+ * Gets the details of the shared private link resource managed by the search service in the given
84
+ * resource group.
85
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
86
+ * obtain this value from the Azure Resource Manager API or the portal.
87
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
88
+ * specified resource group.
89
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
90
+ * Azure Cognitive Search service within the specified resource group.
91
+ * @param options The options parameters.
92
+ */
93
+ get(
94
+ resourceGroupName: string,
95
+ searchServiceName: string,
96
+ sharedPrivateLinkResourceName: string,
97
+ options?: SharedPrivateLinkResourcesGetOptionalParams
98
+ ): Promise<SharedPrivateLinkResourcesGetResponse>;
99
+ /**
100
+ * Initiates the deletion of the shared private link resource from the search service.
101
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
102
+ * obtain this value from the Azure Resource Manager API or the portal.
103
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
104
+ * specified resource group.
105
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
106
+ * Azure Cognitive Search service within the specified resource group.
107
+ * @param options The options parameters.
108
+ */
109
+ beginDelete(
110
+ resourceGroupName: string,
111
+ searchServiceName: string,
112
+ sharedPrivateLinkResourceName: string,
113
+ options?: SharedPrivateLinkResourcesDeleteOptionalParams
114
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
115
+ /**
116
+ * Initiates the deletion of the shared private link resource from the search service.
117
+ * @param resourceGroupName The name of the resource group within the current subscription. You can
118
+ * obtain this value from the Azure Resource Manager API or the portal.
119
+ * @param searchServiceName The name of the Azure Cognitive Search service associated with the
120
+ * specified resource group.
121
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource managed by the
122
+ * Azure Cognitive Search service within the specified resource group.
123
+ * @param options The options parameters.
124
+ */
125
+ beginDeleteAndWait(
126
+ resourceGroupName: string,
127
+ searchServiceName: string,
128
+ sharedPrivateLinkResourceName: string,
129
+ options?: SharedPrivateLinkResourcesDeleteOptionalParams
130
+ ): Promise<void>;
131
+ }
@@ -0,0 +1,104 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as coreAuth from "@azure/core-auth";
11
+ import {
12
+ OperationsImpl,
13
+ AdminKeysImpl,
14
+ QueryKeysImpl,
15
+ ServicesImpl,
16
+ PrivateLinkResourcesImpl,
17
+ PrivateEndpointConnectionsImpl,
18
+ SharedPrivateLinkResourcesImpl
19
+ } from "./operations";
20
+ import {
21
+ Operations,
22
+ AdminKeys,
23
+ QueryKeys,
24
+ Services,
25
+ PrivateLinkResources,
26
+ PrivateEndpointConnections,
27
+ SharedPrivateLinkResources
28
+ } from "./operationsInterfaces";
29
+ import { SearchManagementClientOptionalParams } from "./models";
30
+
31
+ export class SearchManagementClient extends coreClient.ServiceClient {
32
+ $host: string;
33
+ apiVersion: string;
34
+ subscriptionId: string;
35
+
36
+ /**
37
+ * Initializes a new instance of the SearchManagementClient class.
38
+ * @param credentials Subscription credentials which uniquely identify client subscription.
39
+ * @param subscriptionId The unique identifier for a Microsoft Azure subscription. You can obtain this
40
+ * value from the Azure Resource Manager API or the portal.
41
+ * @param options The parameter options
42
+ */
43
+ constructor(
44
+ credentials: coreAuth.TokenCredential,
45
+ subscriptionId: string,
46
+ options?: SearchManagementClientOptionalParams
47
+ ) {
48
+ if (credentials === undefined) {
49
+ throw new Error("'credentials' cannot be null");
50
+ }
51
+ if (subscriptionId === undefined) {
52
+ throw new Error("'subscriptionId' cannot be null");
53
+ }
54
+
55
+ // Initializing default values for options
56
+ if (!options) {
57
+ options = {};
58
+ }
59
+ const defaults: SearchManagementClientOptionalParams = {
60
+ requestContentType: "application/json; charset=utf-8",
61
+ credential: credentials
62
+ };
63
+
64
+ const packageDetails = `azsdk-js-arm-search/1.0.0-beta.1`;
65
+ const userAgentPrefix =
66
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
67
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
68
+ : `${packageDetails}`;
69
+
70
+ if (!options.credentialScopes) {
71
+ options.credentialScopes = ["https://management.azure.com/.default"];
72
+ }
73
+ const optionsWithDefaults = {
74
+ ...defaults,
75
+ ...options,
76
+ userAgentOptions: {
77
+ userAgentPrefix
78
+ },
79
+ baseUri: options.endpoint || "https://management.azure.com"
80
+ };
81
+ super(optionsWithDefaults);
82
+ // Parameter assignments
83
+ this.subscriptionId = subscriptionId;
84
+
85
+ // Assigning values to Constant parameters
86
+ this.$host = options.$host || "https://management.azure.com";
87
+ this.apiVersion = options.apiVersion || "2020-08-01";
88
+ this.operations = new OperationsImpl(this);
89
+ this.adminKeys = new AdminKeysImpl(this);
90
+ this.queryKeys = new QueryKeysImpl(this);
91
+ this.services = new ServicesImpl(this);
92
+ this.privateLinkResources = new PrivateLinkResourcesImpl(this);
93
+ this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
94
+ this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesImpl(this);
95
+ }
96
+
97
+ operations: Operations;
98
+ adminKeys: AdminKeys;
99
+ queryKeys: QueryKeys;
100
+ services: Services;
101
+ privateLinkResources: PrivateLinkResources;
102
+ privateEndpointConnections: PrivateEndpointConnections;
103
+ sharedPrivateLinkResources: SharedPrivateLinkResources;
104
+ }
package/tsconfig.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es5",
6
+ "target": "es6",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
- "lib": ["es6"],
12
+ "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./lib/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }