@azure/arm-elasticsan 1.0.0-beta.1 → 1.0.0-beta.2

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 (169) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/LICENSE +1 -1
  3. package/dist/index.js +1245 -374
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/elasticSansCreateSample.js +25 -17
  8. package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/elasticSansDeleteSample.js +17 -10
  10. package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/elasticSansGetSample.js +17 -10
  12. package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -1
  13. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +39 -18
  14. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
  15. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +37 -16
  16. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
  17. package/dist-esm/samples-dev/elasticSansUpdateSample.js +20 -13
  18. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
  19. package/dist-esm/samples-dev/operationsListSample.js +39 -16
  20. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  21. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
  22. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +74 -0
  24. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
  25. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  26. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +58 -0
  28. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  29. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +58 -0
  32. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  33. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  34. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +98 -0
  36. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  37. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts +2 -0
  38. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +56 -0
  40. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js.map +1 -0
  41. package/dist-esm/samples-dev/skusListSample.js +38 -17
  42. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  43. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +24 -15
  44. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
  45. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +19 -12
  46. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -1
  47. package/dist-esm/samples-dev/volumeGroupsGetSample.js +19 -12
  48. package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -1
  49. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +41 -20
  50. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
  51. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +24 -15
  52. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
  53. package/dist-esm/samples-dev/volumesCreateSample.js +24 -18
  54. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
  55. package/dist-esm/samples-dev/volumesDeleteSample.js +21 -14
  56. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
  57. package/dist-esm/samples-dev/volumesGetSample.js +21 -14
  58. package/dist-esm/samples-dev/volumesGetSample.js.map +1 -1
  59. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +43 -22
  60. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
  61. package/dist-esm/samples-dev/volumesUpdateSample.js +22 -18
  62. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
  63. package/dist-esm/src/elasticSanManagement.d.ts +3 -1
  64. package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
  65. package/dist-esm/src/elasticSanManagement.js +8 -9
  66. package/dist-esm/src/elasticSanManagement.js.map +1 -1
  67. package/dist-esm/src/index.d.ts +1 -0
  68. package/dist-esm/src/index.d.ts.map +1 -1
  69. package/dist-esm/src/index.js +1 -0
  70. package/dist-esm/src/index.js.map +1 -1
  71. package/dist-esm/src/lroImpl.d.ts +6 -11
  72. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  73. package/dist-esm/src/lroImpl.js +12 -20
  74. package/dist-esm/src/lroImpl.js.map +1 -1
  75. package/dist-esm/src/models/index.d.ts +331 -124
  76. package/dist-esm/src/models/index.d.ts.map +1 -1
  77. package/dist-esm/src/models/index.js +28 -0
  78. package/dist-esm/src/models/index.js.map +1 -1
  79. package/dist-esm/src/models/mappers.d.ts +20 -6
  80. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  81. package/dist-esm/src/models/mappers.js +400 -112
  82. package/dist-esm/src/models/mappers.js.map +1 -1
  83. package/dist-esm/src/models/parameters.d.ts +2 -0
  84. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  85. package/dist-esm/src/models/parameters.js +16 -3
  86. package/dist-esm/src/models/parameters.js.map +1 -1
  87. package/dist-esm/src/operations/elasticSans.d.ts +4 -4
  88. package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
  89. package/dist-esm/src/operations/elasticSans.js +98 -51
  90. package/dist-esm/src/operations/elasticSans.js.map +1 -1
  91. package/dist-esm/src/operations/index.d.ts +2 -0
  92. package/dist-esm/src/operations/index.d.ts.map +1 -1
  93. package/dist-esm/src/operations/index.js +2 -0
  94. package/dist-esm/src/operations/index.js.map +1 -1
  95. package/dist-esm/src/operations/operations.d.ts +2 -2
  96. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  97. package/dist-esm/src/operations/operations.js +22 -11
  98. package/dist-esm/src/operations/operations.js.map +1 -1
  99. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  100. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  101. package/dist-esm/src/operations/privateEndpointConnections.js +334 -0
  102. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  103. package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
  104. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  105. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  106. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  107. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  108. package/dist-esm/src/operations/skus.js +21 -10
  109. package/dist-esm/src/operations/skus.js.map +1 -1
  110. package/dist-esm/src/operations/volumeGroups.d.ts +4 -4
  111. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
  112. package/dist-esm/src/operations/volumeGroups.js +78 -48
  113. package/dist-esm/src/operations/volumeGroups.js.map +1 -1
  114. package/dist-esm/src/operations/volumes.d.ts +4 -4
  115. package/dist-esm/src/operations/volumes.d.ts.map +1 -1
  116. package/dist-esm/src/operations/volumes.js +86 -56
  117. package/dist-esm/src/operations/volumes.js.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +4 -4
  119. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  121. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  122. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  123. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/operations.d.ts +2 -2
  125. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  127. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  129. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
  131. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  133. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +4 -4
  135. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -1
  136. package/dist-esm/src/operationsInterfaces/volumes.d.ts +4 -4
  137. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
  138. package/dist-esm/src/pagingHelper.d.ts +13 -0
  139. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  140. package/dist-esm/src/pagingHelper.js +32 -0
  141. package/dist-esm/src/pagingHelper.js.map +1 -0
  142. package/dist-esm/test/elasticsan_examples.spec.js +12 -5
  143. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
  144. package/package.json +11 -10
  145. package/review/arm-elasticsan.api.md +229 -60
  146. package/src/elasticSanManagement.ts +16 -9
  147. package/src/index.ts +1 -0
  148. package/src/lroImpl.ts +31 -23
  149. package/src/models/index.ts +334 -93
  150. package/src/models/mappers.ts +429 -114
  151. package/src/models/parameters.ts +19 -3
  152. package/src/operations/elasticSans.ts +97 -60
  153. package/src/operations/index.ts +2 -0
  154. package/src/operations/operations.ts +16 -11
  155. package/src/operations/privateEndpointConnections.ts +450 -0
  156. package/src/operations/privateLinkResources.ts +72 -0
  157. package/src/operations/skus.ts +11 -6
  158. package/src/operations/volumeGroups.ts +76 -53
  159. package/src/operations/volumes.ts +82 -53
  160. package/src/operationsInterfaces/elasticSans.ts +6 -6
  161. package/src/operationsInterfaces/index.ts +2 -0
  162. package/src/operationsInterfaces/operations.ts +2 -2
  163. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  164. package/src/operationsInterfaces/privateLinkResources.ts +27 -0
  165. package/src/operationsInterfaces/volumeGroups.ts +6 -6
  166. package/src/operationsInterfaces/volumes.ts +10 -4
  167. package/src/pagingHelper.ts +39 -0
  168. package/types/arm-elasticsan.d.ts +409 -98
  169. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,109 @@
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 { SimplePollerLike, OperationState } from "@azure/core-lro";
11
+ import {
12
+ PrivateEndpointConnection,
13
+ PrivateEndpointConnectionsListOptionalParams,
14
+ PrivateEndpointConnectionsCreateOptionalParams,
15
+ PrivateEndpointConnectionsCreateResponse,
16
+ PrivateEndpointConnectionsGetOptionalParams,
17
+ PrivateEndpointConnectionsGetResponse,
18
+ PrivateEndpointConnectionsDeleteOptionalParams
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a PrivateEndpointConnections. */
23
+ export interface PrivateEndpointConnections {
24
+ /**
25
+ * List all Private Endpoint Connections associated with the Elastic San.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param elasticSanName The name of the ElasticSan.
28
+ * @param options The options parameters.
29
+ */
30
+ list(
31
+ resourceGroupName: string,
32
+ elasticSanName: string,
33
+ options?: PrivateEndpointConnectionsListOptionalParams
34
+ ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
35
+ /**
36
+ * Update the state of specified private endpoint connection associated with the Elastic San
37
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
38
+ * @param elasticSanName The name of the ElasticSan.
39
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
40
+ * @param parameters Private Endpoint Connection Approval object.
41
+ * @param options The options parameters.
42
+ */
43
+ beginCreate(
44
+ resourceGroupName: string,
45
+ elasticSanName: string,
46
+ privateEndpointConnectionName: string,
47
+ parameters: PrivateEndpointConnection,
48
+ options?: PrivateEndpointConnectionsCreateOptionalParams
49
+ ): Promise<
50
+ SimplePollerLike<
51
+ OperationState<PrivateEndpointConnectionsCreateResponse>,
52
+ PrivateEndpointConnectionsCreateResponse
53
+ >
54
+ >;
55
+ /**
56
+ * Update the state of specified private endpoint connection associated with the Elastic San
57
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
58
+ * @param elasticSanName The name of the ElasticSan.
59
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
60
+ * @param parameters Private Endpoint Connection Approval object.
61
+ * @param options The options parameters.
62
+ */
63
+ beginCreateAndWait(
64
+ resourceGroupName: string,
65
+ elasticSanName: string,
66
+ privateEndpointConnectionName: string,
67
+ parameters: PrivateEndpointConnection,
68
+ options?: PrivateEndpointConnectionsCreateOptionalParams
69
+ ): Promise<PrivateEndpointConnectionsCreateResponse>;
70
+ /**
71
+ * Gets the specified private endpoint connection associated with the Elastic San
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param elasticSanName The name of the ElasticSan.
74
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
75
+ * @param options The options parameters.
76
+ */
77
+ get(
78
+ resourceGroupName: string,
79
+ elasticSanName: string,
80
+ privateEndpointConnectionName: string,
81
+ options?: PrivateEndpointConnectionsGetOptionalParams
82
+ ): Promise<PrivateEndpointConnectionsGetResponse>;
83
+ /**
84
+ * Deletes the specified private endpoint connection associated with the Elastic San
85
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
86
+ * @param elasticSanName The name of the ElasticSan.
87
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
88
+ * @param options The options parameters.
89
+ */
90
+ beginDelete(
91
+ resourceGroupName: string,
92
+ elasticSanName: string,
93
+ privateEndpointConnectionName: string,
94
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
95
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
96
+ /**
97
+ * Deletes the specified private endpoint connection associated with the Elastic San
98
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
99
+ * @param elasticSanName The name of the ElasticSan.
100
+ * @param privateEndpointConnectionName The name of the Private Endpoint connection.
101
+ * @param options The options parameters.
102
+ */
103
+ beginDeleteAndWait(
104
+ resourceGroupName: string,
105
+ elasticSanName: string,
106
+ privateEndpointConnectionName: string,
107
+ options?: PrivateEndpointConnectionsDeleteOptionalParams
108
+ ): Promise<void>;
109
+ }
@@ -0,0 +1,27 @@
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 {
10
+ PrivateLinkResourcesListByElasticSanOptionalParams,
11
+ PrivateLinkResourcesListByElasticSanResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a PrivateLinkResources. */
15
+ export interface PrivateLinkResources {
16
+ /**
17
+ * Gets the private link resources that need to be created for a elastic San.
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param elasticSanName The name of the ElasticSan.
20
+ * @param options The options parameters.
21
+ */
22
+ listByElasticSan(
23
+ resourceGroupName: string,
24
+ elasticSanName: string,
25
+ options?: PrivateLinkResourcesListByElasticSanOptionalParams
26
+ ): Promise<PrivateLinkResourcesListByElasticSanResponse>;
27
+ }
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  VolumeGroup,
13
13
  VolumeGroupsListByElasticSanOptionalParams,
@@ -50,8 +50,8 @@ export interface VolumeGroups {
50
50
  parameters: VolumeGroup,
51
51
  options?: VolumeGroupsCreateOptionalParams
52
52
  ): Promise<
53
- PollerLike<
54
- PollOperationState<VolumeGroupsCreateResponse>,
53
+ SimplePollerLike<
54
+ OperationState<VolumeGroupsCreateResponse>,
55
55
  VolumeGroupsCreateResponse
56
56
  >
57
57
  >;
@@ -85,8 +85,8 @@ export interface VolumeGroups {
85
85
  parameters: VolumeGroupUpdate,
86
86
  options?: VolumeGroupsUpdateOptionalParams
87
87
  ): Promise<
88
- PollerLike<
89
- PollOperationState<VolumeGroupsUpdateResponse>,
88
+ SimplePollerLike<
89
+ OperationState<VolumeGroupsUpdateResponse>,
90
90
  VolumeGroupsUpdateResponse
91
91
  >
92
92
  >;
@@ -117,7 +117,7 @@ export interface VolumeGroups {
117
117
  elasticSanName: string,
118
118
  volumeGroupName: string,
119
119
  options?: VolumeGroupsDeleteOptionalParams
120
- ): Promise<PollerLike<PollOperationState<void>, void>>;
120
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
121
121
  /**
122
122
  * Delete an VolumeGroup.
123
123
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  Volume,
13
13
  VolumesListByVolumeGroupOptionalParams,
@@ -54,7 +54,10 @@ export interface Volumes {
54
54
  parameters: Volume,
55
55
  options?: VolumesCreateOptionalParams
56
56
  ): Promise<
57
- PollerLike<PollOperationState<VolumesCreateResponse>, VolumesCreateResponse>
57
+ SimplePollerLike<
58
+ OperationState<VolumesCreateResponse>,
59
+ VolumesCreateResponse
60
+ >
58
61
  >;
59
62
  /**
60
63
  * Create a Volume.
@@ -90,7 +93,10 @@ export interface Volumes {
90
93
  parameters: VolumeUpdate,
91
94
  options?: VolumesUpdateOptionalParams
92
95
  ): Promise<
93
- PollerLike<PollOperationState<VolumesUpdateResponse>, VolumesUpdateResponse>
96
+ SimplePollerLike<
97
+ OperationState<VolumesUpdateResponse>,
98
+ VolumesUpdateResponse
99
+ >
94
100
  >;
95
101
  /**
96
102
  * Update an Volume.
@@ -123,7 +129,7 @@ export interface Volumes {
123
129
  volumeGroupName: string,
124
130
  volumeName: string,
125
131
  options?: VolumesDeleteOptionalParams
126
- ): Promise<PollerLike<PollOperationState<void>, void>>;
132
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
127
133
  /**
128
134
  * Delete an Volume.
129
135
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -0,0 +1,39 @@
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
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given the last `.value` produced by the `byPage` iterator,
17
+ * returns a continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
+ * @returns The continuation token that can be passed into byPage() during future calls.
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }