@azure/arm-servicefabric 2.1.1-alpha.20231113.1 → 3.0.0

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 (136) hide show
  1. package/CHANGELOG.md +25 -9
  2. package/LICENSE +1 -1
  3. package/dist/index.js +749 -111
  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/applicationTypeVersionsCreateOrUpdateSample.js +11 -3
  8. package/dist-esm/samples-dev/applicationTypeVersionsCreateOrUpdateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js +11 -3
  10. package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js.map +1 -1
  11. package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js +11 -3
  12. package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js.map +1 -1
  13. package/dist-esm/samples-dev/applicationTypeVersionsListSample.js +30 -6
  14. package/dist-esm/samples-dev/applicationTypeVersionsListSample.js.map +1 -1
  15. package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js +11 -3
  16. package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js.map +1 -1
  17. package/dist-esm/samples-dev/applicationTypesDeleteSample.js +11 -3
  18. package/dist-esm/samples-dev/applicationTypesDeleteSample.js.map +1 -1
  19. package/dist-esm/samples-dev/applicationTypesGetSample.js +11 -3
  20. package/dist-esm/samples-dev/applicationTypesGetSample.js.map +1 -1
  21. package/dist-esm/samples-dev/applicationTypesListSample.js +30 -6
  22. package/dist-esm/samples-dev/applicationTypesListSample.js.map +1 -1
  23. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +19 -9
  24. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +1 -1
  25. package/dist-esm/samples-dev/applicationsDeleteSample.js +11 -3
  26. package/dist-esm/samples-dev/applicationsDeleteSample.js.map +1 -1
  27. package/dist-esm/samples-dev/applicationsGetSample.js +11 -3
  28. package/dist-esm/samples-dev/applicationsGetSample.js.map +1 -1
  29. package/dist-esm/samples-dev/applicationsListSample.js +30 -6
  30. package/dist-esm/samples-dev/applicationsListSample.js.map +1 -1
  31. package/dist-esm/samples-dev/applicationsUpdateSample.js +11 -3
  32. package/dist-esm/samples-dev/applicationsUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js +10 -2
  34. package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js.map +1 -1
  35. package/dist-esm/samples-dev/clusterVersionsGetSample.js +10 -2
  36. package/dist-esm/samples-dev/clusterVersionsGetSample.js.map +1 -1
  37. package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js +10 -2
  38. package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js.map +1 -1
  39. package/dist-esm/samples-dev/clusterVersionsListSample.js +10 -2
  40. package/dist-esm/samples-dev/clusterVersionsListSample.js.map +1 -1
  41. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +15 -6
  42. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js.map +1 -1
  43. package/dist-esm/samples-dev/clustersDeleteSample.js +11 -3
  44. package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
  45. package/dist-esm/samples-dev/clustersGetSample.js +11 -3
  46. package/dist-esm/samples-dev/clustersGetSample.js.map +1 -1
  47. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +30 -6
  48. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
  49. package/dist-esm/samples-dev/clustersListSample.js +29 -5
  50. package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
  51. package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js +15 -6
  52. package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js.map +1 -1
  53. package/dist-esm/samples-dev/clustersUpdateSample.js +11 -3
  54. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
  55. package/dist-esm/samples-dev/operationsListSample.js +10 -2
  56. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  57. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +15 -6
  58. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -1
  59. package/dist-esm/samples-dev/servicesDeleteSample.js +11 -3
  60. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -1
  61. package/dist-esm/samples-dev/servicesGetSample.js +11 -3
  62. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -1
  63. package/dist-esm/samples-dev/servicesListSample.js +30 -6
  64. package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
  65. package/dist-esm/samples-dev/servicesUpdateSample.js +11 -3
  66. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -1
  67. package/dist-esm/src/lroImpl.d.ts +6 -11
  68. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  69. package/dist-esm/src/lroImpl.js +12 -20
  70. package/dist-esm/src/lroImpl.js.map +1 -1
  71. package/dist-esm/src/models/index.d.ts +38 -8
  72. package/dist-esm/src/models/index.d.ts.map +1 -1
  73. package/dist-esm/src/models/index.js +7 -7
  74. package/dist-esm/src/models/index.js.map +1 -1
  75. package/dist-esm/src/models/parameters.d.ts +1 -1
  76. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  77. package/dist-esm/src/models/parameters.js +11 -11
  78. package/dist-esm/src/models/parameters.js.map +1 -1
  79. package/dist-esm/src/operations/applicationTypeVersions.d.ts +26 -5
  80. package/dist-esm/src/operations/applicationTypeVersions.d.ts.map +1 -1
  81. package/dist-esm/src/operations/applicationTypeVersions.js +139 -19
  82. package/dist-esm/src/operations/applicationTypeVersions.js.map +1 -1
  83. package/dist-esm/src/operations/applicationTypes.d.ts +23 -4
  84. package/dist-esm/src/operations/applicationTypes.d.ts.map +1 -1
  85. package/dist-esm/src/operations/applicationTypes.js +109 -8
  86. package/dist-esm/src/operations/applicationTypes.js.map +1 -1
  87. package/dist-esm/src/operations/applications.d.ts +25 -6
  88. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  89. package/dist-esm/src/operations/applications.js +137 -16
  90. package/dist-esm/src/operations/applications.js.map +1 -1
  91. package/dist-esm/src/operations/clusterVersions.d.ts +3 -3
  92. package/dist-esm/src/operations/clusterVersions.d.ts.map +1 -1
  93. package/dist-esm/src/operations/clusterVersions.js.map +1 -1
  94. package/dist-esm/src/operations/clusters.d.ts +37 -6
  95. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  96. package/dist-esm/src/operations/clusters.js +204 -13
  97. package/dist-esm/src/operations/clusters.js.map +1 -1
  98. package/dist-esm/src/operations/services.d.ts +27 -6
  99. package/dist-esm/src/operations/services.d.ts.map +1 -1
  100. package/dist-esm/src/operations/services.js +148 -30
  101. package/dist-esm/src/operations/services.js.map +1 -1
  102. package/dist-esm/src/operationsInterfaces/applicationTypeVersions.d.ts +14 -13
  103. package/dist-esm/src/operationsInterfaces/applicationTypeVersions.d.ts.map +1 -1
  104. package/dist-esm/src/operationsInterfaces/applicationTypes.d.ts +12 -11
  105. package/dist-esm/src/operationsInterfaces/applicationTypes.d.ts.map +1 -1
  106. package/dist-esm/src/operationsInterfaces/applications.d.ts +14 -13
  107. package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -1
  108. package/dist-esm/src/operationsInterfaces/clusterVersions.d.ts +3 -3
  109. package/dist-esm/src/operationsInterfaces/clusterVersions.d.ts.map +1 -1
  110. package/dist-esm/src/operationsInterfaces/clusters.d.ts +18 -17
  111. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/services.d.ts +15 -14
  113. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -1
  114. package/dist-esm/src/serviceFabricManagementClient.js +1 -1
  115. package/dist-esm/test/servicefabric_examples.spec.js +73 -11
  116. package/dist-esm/test/servicefabric_examples.spec.js.map +1 -1
  117. package/package.json +13 -10
  118. package/review/arm-servicefabric.api.md +72 -30
  119. package/src/lroImpl.ts +31 -23
  120. package/src/models/index.ts +50 -8
  121. package/src/models/parameters.ts +12 -12
  122. package/src/operations/applicationTypeVersions.ts +186 -25
  123. package/src/operations/applicationTypes.ts +141 -15
  124. package/src/operations/applications.ts +179 -35
  125. package/src/operations/clusterVersions.ts +3 -3
  126. package/src/operations/clusters.ts +245 -30
  127. package/src/operations/services.ts +193 -35
  128. package/src/operationsInterfaces/applicationTypeVersions.ts +23 -22
  129. package/src/operationsInterfaces/applicationTypes.ts +19 -18
  130. package/src/operationsInterfaces/applications.ts +23 -22
  131. package/src/operationsInterfaces/clusterVersions.ts +3 -3
  132. package/src/operationsInterfaces/clusters.ts +28 -26
  133. package/src/operationsInterfaces/services.ts +25 -24
  134. package/src/serviceFabricManagementClient.ts +1 -1
  135. package/types/arm-servicefabric.d.ts +125 -83
  136. package/types/tsdoc-metadata.json +1 -1
package/package.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ServiceFabricManagementClient.",
6
- "version": "2.1.1-alpha.20231113.1",
6
+ "version": "3.0.0",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/core-lro": "^2.2.0",
11
+ "@azure/core-lro": "^2.5.4",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
- "@azure/core-client": "^1.6.1",
14
+ "@azure/core-client": "^1.7.0",
15
15
  "@azure/core-auth": "^1.3.0",
16
- "@azure/core-rest-pipeline": "^1.8.0",
16
+ "@azure/core-rest-pipeline": "^1.12.0",
17
17
  "tslib": "^2.2.0"
18
18
  },
19
19
  "keywords": [
@@ -29,22 +29,24 @@
29
29
  "types": "./types/arm-servicefabric.d.ts",
30
30
  "devDependencies": {
31
31
  "@microsoft/api-extractor": "^7.31.1",
32
- "mkdirp": "^1.0.4",
32
+ "mkdirp": "^2.1.2",
33
33
  "typescript": "~5.2.0",
34
34
  "uglify-js": "^3.4.9",
35
- "rimraf": "^3.0.0",
35
+ "rimraf": "^5.0.0",
36
+ "dotenv": "^16.0.0",
37
+ "@azure/dev-tool": "^1.0.0",
36
38
  "@azure/identity": "^3.3.0",
37
39
  "@azure-tools/test-recorder": "^3.0.0",
38
40
  "@azure-tools/test-credential": "^1.0.0",
39
41
  "mocha": "^10.0.0",
42
+ "@types/mocha": "^10.0.0",
43
+ "esm": "^3.2.18",
40
44
  "@types/chai": "^4.2.8",
41
45
  "chai": "^4.2.0",
42
46
  "cross-env": "^7.0.2",
43
47
  "@types/node": "^18.0.0",
44
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
45
48
  "ts-node": "^10.0.0"
46
49
  },
47
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric",
48
50
  "repository": {
49
51
  "type": "git",
50
52
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -77,7 +79,7 @@
77
79
  "extract-api": "api-extractor run --local",
78
80
  "lint": "echo skipped",
79
81
  "audit": "echo skipped",
80
- "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
82
+ "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
81
83
  "build:node": "echo skipped",
82
84
  "build:browser": "echo skipped",
83
85
  "build:test": "echo skipped",
@@ -105,6 +107,7 @@
105
107
  ]
106
108
  },
107
109
  "autoPublish": true,
110
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric",
108
111
  "//sampleConfiguration": {
109
112
  "productName": "",
110
113
  "productSlugs": [
@@ -113,4 +116,4 @@
113
116
  "disableDocsMs": true,
114
117
  "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-servicefabric?view=azure-node-preview"
115
118
  }
116
- }
119
+ }
@@ -6,9 +6,9 @@
6
6
 
7
7
  import * as coreAuth from '@azure/core-auth';
8
8
  import * as coreClient from '@azure/core-client';
9
+ import { OperationState } from '@azure/core-lro';
9
10
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
- import { PollerLike } from '@azure/core-lro';
11
- import { PollOperationState } from '@azure/core-lro';
11
+ import { SimplePollerLike } from '@azure/core-lro';
12
12
 
13
13
  // @public
14
14
  export type AddOnFeatures = string;
@@ -97,14 +97,14 @@ export interface ApplicationResourceUpdateProperties {
97
97
 
98
98
  // @public
99
99
  export interface Applications {
100
- beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResource, options?: ApplicationsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ApplicationsCreateOrUpdateResponse>, ApplicationsCreateOrUpdateResponse>>;
100
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResource, options?: ApplicationsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ApplicationsCreateOrUpdateResponse>, ApplicationsCreateOrUpdateResponse>>;
101
101
  beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResource, options?: ApplicationsCreateOrUpdateOptionalParams): Promise<ApplicationsCreateOrUpdateResponse>;
102
- beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
102
+ beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
103
103
  beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsDeleteOptionalParams): Promise<void>;
104
- beginUpdate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResourceUpdate, options?: ApplicationsUpdateOptionalParams): Promise<PollerLike<PollOperationState<ApplicationsUpdateResponse>, ApplicationsUpdateResponse>>;
104
+ beginUpdate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResourceUpdate, options?: ApplicationsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ApplicationsUpdateResponse>, ApplicationsUpdateResponse>>;
105
105
  beginUpdateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, parameters: ApplicationResourceUpdate, options?: ApplicationsUpdateOptionalParams): Promise<ApplicationsUpdateResponse>;
106
106
  get(resourceGroupName: string, clusterName: string, applicationName: string, options?: ApplicationsGetOptionalParams): Promise<ApplicationsGetResponse>;
107
- list(resourceGroupName: string, clusterName: string, options?: ApplicationsListOptionalParams): Promise<ApplicationsListResponse>;
107
+ list(resourceGroupName: string, clusterName: string, options?: ApplicationsListOptionalParams): PagedAsyncIterableIterator<ApplicationResource>;
108
108
  }
109
109
 
110
110
  // @public
@@ -129,6 +129,13 @@ export interface ApplicationsGetOptionalParams extends coreClient.OperationOptio
129
129
  // @public
130
130
  export type ApplicationsGetResponse = ApplicationResource;
131
131
 
132
+ // @public
133
+ export interface ApplicationsListNextOptionalParams extends coreClient.OperationOptions {
134
+ }
135
+
136
+ // @public
137
+ export type ApplicationsListNextResponse = ApplicationResourceList;
138
+
132
139
  // @public
133
140
  export interface ApplicationsListOptionalParams extends coreClient.OperationOptions {
134
141
  }
@@ -159,11 +166,11 @@ export interface ApplicationTypeResourceList {
159
166
 
160
167
  // @public
161
168
  export interface ApplicationTypes {
162
- beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
169
+ beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
163
170
  beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesDeleteOptionalParams): Promise<void>;
164
171
  createOrUpdate(resourceGroupName: string, clusterName: string, applicationTypeName: string, parameters: ApplicationTypeResource, options?: ApplicationTypesCreateOrUpdateOptionalParams): Promise<ApplicationTypesCreateOrUpdateResponse>;
165
172
  get(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypesGetOptionalParams): Promise<ApplicationTypesGetResponse>;
166
- list(resourceGroupName: string, clusterName: string, options?: ApplicationTypesListOptionalParams): Promise<ApplicationTypesListResponse>;
173
+ list(resourceGroupName: string, clusterName: string, options?: ApplicationTypesListOptionalParams): PagedAsyncIterableIterator<ApplicationTypeResource>;
167
174
  }
168
175
 
169
176
  // @public
@@ -186,6 +193,13 @@ export interface ApplicationTypesGetOptionalParams extends coreClient.OperationO
186
193
  // @public
187
194
  export type ApplicationTypesGetResponse = ApplicationTypeResource;
188
195
 
196
+ // @public
197
+ export interface ApplicationTypesListNextOptionalParams extends coreClient.OperationOptions {
198
+ }
199
+
200
+ // @public
201
+ export type ApplicationTypesListNextResponse = ApplicationTypeResourceList;
202
+
189
203
  // @public
190
204
  export interface ApplicationTypesListOptionalParams extends coreClient.OperationOptions {
191
205
  }
@@ -211,12 +225,12 @@ export interface ApplicationTypeVersionResourceList {
211
225
 
212
226
  // @public
213
227
  export interface ApplicationTypeVersions {
214
- beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, parameters: ApplicationTypeVersionResource, options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ApplicationTypeVersionsCreateOrUpdateResponse>, ApplicationTypeVersionsCreateOrUpdateResponse>>;
228
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, parameters: ApplicationTypeVersionResource, options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ApplicationTypeVersionsCreateOrUpdateResponse>, ApplicationTypeVersionsCreateOrUpdateResponse>>;
215
229
  beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, parameters: ApplicationTypeVersionResource, options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams): Promise<ApplicationTypeVersionsCreateOrUpdateResponse>;
216
- beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
230
+ beginDelete(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
217
231
  beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsDeleteOptionalParams): Promise<void>;
218
232
  get(resourceGroupName: string, clusterName: string, applicationTypeName: string, version: string, options?: ApplicationTypeVersionsGetOptionalParams): Promise<ApplicationTypeVersionsGetResponse>;
219
- list(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypeVersionsListOptionalParams): Promise<ApplicationTypeVersionsListResponse>;
233
+ list(resourceGroupName: string, clusterName: string, applicationTypeName: string, options?: ApplicationTypeVersionsListOptionalParams): PagedAsyncIterableIterator<ApplicationTypeVersionResource>;
220
234
  }
221
235
 
222
236
  // @public (undocumented)
@@ -246,6 +260,13 @@ export interface ApplicationTypeVersionsGetOptionalParams extends coreClient.Ope
246
260
  // @public
247
261
  export type ApplicationTypeVersionsGetResponse = ApplicationTypeVersionResource;
248
262
 
263
+ // @public
264
+ export interface ApplicationTypeVersionsListNextOptionalParams extends coreClient.OperationOptions {
265
+ }
266
+
267
+ // @public
268
+ export type ApplicationTypeVersionsListNextResponse = ApplicationTypeVersionResourceList;
269
+
249
270
  // @public
250
271
  export interface ApplicationTypeVersionsListOptionalParams extends coreClient.OperationOptions {
251
272
  }
@@ -411,14 +432,14 @@ export interface ClusterListResult {
411
432
 
412
433
  // @public
413
434
  export interface Clusters {
414
- beginCreateOrUpdate(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ClustersCreateOrUpdateResponse>, ClustersCreateOrUpdateResponse>>;
435
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ClustersCreateOrUpdateResponse>, ClustersCreateOrUpdateResponse>>;
415
436
  beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: Cluster, options?: ClustersCreateOrUpdateOptionalParams): Promise<ClustersCreateOrUpdateResponse>;
416
- beginUpdate(resourceGroupName: string, clusterName: string, parameters: ClusterUpdateParameters, options?: ClustersUpdateOptionalParams): Promise<PollerLike<PollOperationState<ClustersUpdateResponse>, ClustersUpdateResponse>>;
437
+ beginUpdate(resourceGroupName: string, clusterName: string, parameters: ClusterUpdateParameters, options?: ClustersUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ClustersUpdateResponse>, ClustersUpdateResponse>>;
417
438
  beginUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: ClusterUpdateParameters, options?: ClustersUpdateOptionalParams): Promise<ClustersUpdateResponse>;
418
439
  delete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<void>;
419
440
  get(resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): Promise<ClustersGetResponse>;
420
- list(options?: ClustersListOptionalParams): Promise<ClustersListResponse>;
421
- listByResourceGroup(resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams): Promise<ClustersListByResourceGroupResponse>;
441
+ list(options?: ClustersListOptionalParams): PagedAsyncIterableIterator<Cluster>;
442
+ listByResourceGroup(resourceGroupName: string, options?: ClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Cluster>;
422
443
  listUpgradableVersions(resourceGroupName: string, clusterName: string, options?: ClustersListUpgradableVersionsOptionalParams): Promise<ClustersListUpgradableVersionsResponse>;
423
444
  }
424
445
 
@@ -442,6 +463,13 @@ export interface ClustersGetOptionalParams extends coreClient.OperationOptions {
442
463
  // @public
443
464
  export type ClustersGetResponse = Cluster;
444
465
 
466
+ // @public
467
+ export interface ClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
468
+ }
469
+
470
+ // @public
471
+ export type ClustersListByResourceGroupNextResponse = ClusterListResult;
472
+
445
473
  // @public
446
474
  export interface ClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {
447
475
  }
@@ -449,6 +477,13 @@ export interface ClustersListByResourceGroupOptionalParams extends coreClient.Op
449
477
  // @public
450
478
  export type ClustersListByResourceGroupResponse = ClusterListResult;
451
479
 
480
+ // @public
481
+ export interface ClustersListNextOptionalParams extends coreClient.OperationOptions {
482
+ }
483
+
484
+ // @public
485
+ export type ClustersListNextResponse = ClusterListResult;
486
+
452
487
  // @public
453
488
  export interface ClustersListOptionalParams extends coreClient.OperationOptions {
454
489
  }
@@ -541,11 +576,14 @@ export interface ClusterVersionDetails {
541
576
  // @public
542
577
  export interface ClusterVersions {
543
578
  get(location: string, clusterVersion: string, options?: ClusterVersionsGetOptionalParams): Promise<ClusterVersionsGetResponse>;
544
- getByEnvironment(location: string, environment: Enum14, clusterVersion: string, options?: ClusterVersionsGetByEnvironmentOptionalParams): Promise<ClusterVersionsGetByEnvironmentResponse>;
579
+ getByEnvironment(location: string, environment: ClusterVersionsEnvironment, clusterVersion: string, options?: ClusterVersionsGetByEnvironmentOptionalParams): Promise<ClusterVersionsGetByEnvironmentResponse>;
545
580
  list(location: string, options?: ClusterVersionsListOptionalParams): Promise<ClusterVersionsListResponse>;
546
- listByEnvironment(location: string, environment: Enum14, options?: ClusterVersionsListByEnvironmentOptionalParams): Promise<ClusterVersionsListByEnvironmentResponse>;
581
+ listByEnvironment(location: string, environment: ClusterVersionsEnvironment, options?: ClusterVersionsListByEnvironmentOptionalParams): Promise<ClusterVersionsListByEnvironmentResponse>;
547
582
  }
548
583
 
584
+ // @public
585
+ export type ClusterVersionsEnvironment = string;
586
+
549
587
  // @public
550
588
  export interface ClusterVersionsGetByEnvironmentOptionalParams extends coreClient.OperationOptions {
551
589
  }
@@ -593,9 +631,6 @@ export interface EndpointRangeDescription {
593
631
  startPort: number;
594
632
  }
595
633
 
596
- // @public
597
- export type Enum14 = string;
598
-
599
634
  // @public
600
635
  export interface ErrorModel {
601
636
  error?: ErrorModelError;
@@ -657,6 +692,12 @@ export enum KnownClusterUpgradeCadence {
657
692
  Wave2 = "Wave2"
658
693
  }
659
694
 
695
+ // @public
696
+ export enum KnownClusterVersionsEnvironment {
697
+ Linux = "Linux",
698
+ Windows = "Windows"
699
+ }
700
+
660
701
  // @public
661
702
  export enum KnownDurabilityLevel {
662
703
  Bronze = "Bronze",
@@ -664,12 +705,6 @@ export enum KnownDurabilityLevel {
664
705
  Silver = "Silver"
665
706
  }
666
707
 
667
- // @public
668
- export enum KnownEnum14 {
669
- Linux = "Linux",
670
- Windows = "Windows"
671
- }
672
-
673
708
  // @public
674
709
  export enum KnownMoveCost {
675
710
  High = "High",
@@ -1079,14 +1114,14 @@ export type ServiceResourceUpdatePropertiesUnion = ServiceResourceUpdateProperti
1079
1114
 
1080
1115
  // @public
1081
1116
  export interface Services {
1082
- beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServicesCreateOrUpdateResponse>, ServicesCreateOrUpdateResponse>>;
1117
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ServicesCreateOrUpdateResponse>, ServicesCreateOrUpdateResponse>>;
1083
1118
  beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServicesCreateOrUpdateResponse>;
1084
- beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1119
+ beginDelete(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1085
1120
  beginDeleteAndWait(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<void>;
1086
- beginUpdate(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResourceUpdate, options?: ServicesUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServicesUpdateResponse>, ServicesUpdateResponse>>;
1121
+ beginUpdate(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResourceUpdate, options?: ServicesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ServicesUpdateResponse>, ServicesUpdateResponse>>;
1087
1122
  beginUpdateAndWait(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, parameters: ServiceResourceUpdate, options?: ServicesUpdateOptionalParams): Promise<ServicesUpdateResponse>;
1088
1123
  get(resourceGroupName: string, clusterName: string, applicationName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise<ServicesGetResponse>;
1089
- list(resourceGroupName: string, clusterName: string, applicationName: string, options?: ServicesListOptionalParams): Promise<ServicesListResponse>;
1124
+ list(resourceGroupName: string, clusterName: string, applicationName: string, options?: ServicesListOptionalParams): PagedAsyncIterableIterator<ServiceResource>;
1090
1125
  }
1091
1126
 
1092
1127
  // @public
@@ -1111,6 +1146,13 @@ export interface ServicesGetOptionalParams extends coreClient.OperationOptions {
1111
1146
  // @public
1112
1147
  export type ServicesGetResponse = ServiceResource;
1113
1148
 
1149
+ // @public
1150
+ export interface ServicesListNextOptionalParams extends coreClient.OperationOptions {
1151
+ }
1152
+
1153
+ // @public
1154
+ export type ServicesListNextResponse = ServiceResourceList;
1155
+
1114
1156
  // @public
1115
1157
  export interface ServicesListOptionalParams extends coreClient.OperationOptions {
1116
1158
  }
package/src/lroImpl.ts CHANGED
@@ -6,29 +6,37 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT license.
11
+
12
+ import { AbortSignalLike } from "@azure/abort-controller";
9
13
  import { LongRunningOperation, LroResponse } from "@azure/core-lro";
10
14
 
11
- export class LroImpl<T> implements LongRunningOperation<T> {
12
- constructor(
13
- private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
14
- private args: Record<string, unknown>,
15
- private spec: {
16
- readonly requestBody?: unknown;
17
- readonly path?: string;
18
- readonly httpMethod: string;
19
- } & Record<string, any>,
20
- public requestPath: string = spec.path!,
21
- public requestMethod: string = spec.httpMethod
22
- ) {}
23
- public async sendInitialRequest(): Promise<LroResponse<T>> {
24
- return this.sendOperationFn(this.args, this.spec);
25
- }
26
- public async sendPollRequest(path: string): Promise<LroResponse<T>> {
27
- const { requestBody, ...restSpec } = this.spec;
28
- return this.sendOperationFn(this.args, {
29
- ...restSpec,
30
- path,
31
- httpMethod: "GET"
32
- });
33
- }
15
+ export function createLroSpec<T>(inputs: {
16
+ sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
17
+ args: Record<string, unknown>;
18
+ spec: {
19
+ readonly requestBody?: unknown;
20
+ readonly path?: string;
21
+ readonly httpMethod: string;
22
+ } & Record<string, any>;
23
+ }): LongRunningOperation<T> {
24
+ const { args, spec, sendOperationFn } = inputs;
25
+ return {
26
+ requestMethod: spec.httpMethod,
27
+ requestPath: spec.path!,
28
+ sendInitialRequest: () => sendOperationFn(args, spec),
29
+ sendPollRequest: (
30
+ path: string,
31
+ options?: { abortSignal?: AbortSignalLike }
32
+ ) => {
33
+ const { requestBody, ...restSpec } = spec;
34
+ return sendOperationFn(args, {
35
+ ...restSpec,
36
+ httpMethod: "GET",
37
+ path,
38
+ abortSignal: options?.abortSignal
39
+ });
40
+ }
41
+ };
34
42
  }
@@ -401,7 +401,7 @@ export interface ClusterUpdateParameters {
401
401
  clientCertificateCommonNames?: ClientCertificateCommonName[];
402
402
  /** The list of client certificates referenced by thumbprint that are allowed to manage the cluster. This will overwrite the existing list. */
403
403
  clientCertificateThumbprints?: ClientCertificateThumbprint[];
404
- /** The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. */
404
+ /** The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](https://learn.microsoft.com/rest/api/servicefabric/cluster-versions/list). To get the list of available version for existing clusters use **availableClusterVersions**. */
405
405
  clusterCodeVersion?: string;
406
406
  /** Indicates if the event store service is enabled. */
407
407
  eventStoreServiceEnabled?: boolean;
@@ -842,7 +842,7 @@ export interface Cluster extends Resource {
842
842
  clientCertificateCommonNames?: ClientCertificateCommonName[];
843
843
  /** The list of client certificates referenced by thumbprint that are allowed to manage the cluster. */
844
844
  clientCertificateThumbprints?: ClientCertificateThumbprint[];
845
- /** The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. */
845
+ /** The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](https://learn.microsoft.com/rest/api/servicefabric/cluster-versions/list). To get the list of available version for existing clusters use **availableClusterVersions**. */
846
846
  clusterCodeVersion?: string;
847
847
  /**
848
848
  * The Azure Resource Provider endpoint. A system service in the cluster connects to this endpoint.
@@ -1428,7 +1428,7 @@ export type VmssZonalUpgradeMode = string;
1428
1428
 
1429
1429
  /** Known values of {@link ClusterUpgradeCadence} that the service accepts. */
1430
1430
  export enum KnownClusterUpgradeCadence {
1431
- /** Cluster upgrade starts immediately after a new version is rolled out. Recommended for Test/Dev clusters. */
1431
+ /** Cluster upgrade starts immediately after a new version is rolled out. Recommended for Test\/Dev clusters. */
1432
1432
  Wave0 = "Wave0",
1433
1433
  /** Cluster upgrade starts 7 days after a new version is rolled out. Recommended for Pre-prod clusters. */
1434
1434
  Wave1 = "Wave1",
@@ -1498,8 +1498,8 @@ export enum KnownNotificationChannel {
1498
1498
  */
1499
1499
  export type NotificationChannel = string;
1500
1500
 
1501
- /** Known values of {@link Enum14} that the service accepts. */
1502
- export enum KnownEnum14 {
1501
+ /** Known values of {@link ClusterVersionsEnvironment} that the service accepts. */
1502
+ export enum KnownClusterVersionsEnvironment {
1503
1503
  /** Windows */
1504
1504
  Windows = "Windows",
1505
1505
  /** Linux */
@@ -1507,14 +1507,14 @@ export enum KnownEnum14 {
1507
1507
  }
1508
1508
 
1509
1509
  /**
1510
- * Defines values for Enum14. \
1511
- * {@link KnownEnum14} can be used interchangeably with Enum14,
1510
+ * Defines values for ClusterVersionsEnvironment. \
1511
+ * {@link KnownClusterVersionsEnvironment} can be used interchangeably with ClusterVersionsEnvironment,
1512
1512
  * this enum contains the known values that the service supports.
1513
1513
  * ### Known values supported by the service
1514
1514
  * **Windows** \
1515
1515
  * **Linux**
1516
1516
  */
1517
- export type Enum14 = string;
1517
+ export type ClusterVersionsEnvironment = string;
1518
1518
 
1519
1519
  /** Known values of {@link ArmUpgradeFailureAction} that the service accepts. */
1520
1520
  export enum KnownArmUpgradeFailureAction {
@@ -1788,6 +1788,20 @@ export interface ClustersListUpgradableVersionsOptionalParams
1788
1788
  /** Contains response data for the listUpgradableVersions operation. */
1789
1789
  export type ClustersListUpgradableVersionsResponse = UpgradableVersionPathResult;
1790
1790
 
1791
+ /** Optional parameters. */
1792
+ export interface ClustersListByResourceGroupNextOptionalParams
1793
+ extends coreClient.OperationOptions {}
1794
+
1795
+ /** Contains response data for the listByResourceGroupNext operation. */
1796
+ export type ClustersListByResourceGroupNextResponse = ClusterListResult;
1797
+
1798
+ /** Optional parameters. */
1799
+ export interface ClustersListNextOptionalParams
1800
+ extends coreClient.OperationOptions {}
1801
+
1802
+ /** Contains response data for the listNext operation. */
1803
+ export type ClustersListNextResponse = ClusterListResult;
1804
+
1791
1805
  /** Optional parameters. */
1792
1806
  export interface ClusterVersionsGetOptionalParams
1793
1807
  extends coreClient.OperationOptions {}
@@ -1860,6 +1874,13 @@ export interface ApplicationTypesListOptionalParams
1860
1874
  /** Contains response data for the list operation. */
1861
1875
  export type ApplicationTypesListResponse = ApplicationTypeResourceList;
1862
1876
 
1877
+ /** Optional parameters. */
1878
+ export interface ApplicationTypesListNextOptionalParams
1879
+ extends coreClient.OperationOptions {}
1880
+
1881
+ /** Contains response data for the listNext operation. */
1882
+ export type ApplicationTypesListNextResponse = ApplicationTypeResourceList;
1883
+
1863
1884
  /** Optional parameters. */
1864
1885
  export interface ApplicationTypeVersionsGetOptionalParams
1865
1886
  extends coreClient.OperationOptions {}
@@ -1895,6 +1916,13 @@ export interface ApplicationTypeVersionsListOptionalParams
1895
1916
  /** Contains response data for the list operation. */
1896
1917
  export type ApplicationTypeVersionsListResponse = ApplicationTypeVersionResourceList;
1897
1918
 
1919
+ /** Optional parameters. */
1920
+ export interface ApplicationTypeVersionsListNextOptionalParams
1921
+ extends coreClient.OperationOptions {}
1922
+
1923
+ /** Contains response data for the listNext operation. */
1924
+ export type ApplicationTypeVersionsListNextResponse = ApplicationTypeVersionResourceList;
1925
+
1898
1926
  /** Optional parameters. */
1899
1927
  export interface ApplicationsGetOptionalParams
1900
1928
  extends coreClient.OperationOptions {}
@@ -1942,6 +1970,13 @@ export interface ApplicationsListOptionalParams
1942
1970
  /** Contains response data for the list operation. */
1943
1971
  export type ApplicationsListResponse = ApplicationResourceList;
1944
1972
 
1973
+ /** Optional parameters. */
1974
+ export interface ApplicationsListNextOptionalParams
1975
+ extends coreClient.OperationOptions {}
1976
+
1977
+ /** Contains response data for the listNext operation. */
1978
+ export type ApplicationsListNextResponse = ApplicationResourceList;
1979
+
1945
1980
  /** Optional parameters. */
1946
1981
  export interface ServicesGetOptionalParams
1947
1982
  extends coreClient.OperationOptions {}
@@ -1989,6 +2024,13 @@ export interface ServicesListOptionalParams
1989
2024
  /** Contains response data for the list operation. */
1990
2025
  export type ServicesListResponse = ServiceResourceList;
1991
2026
 
2027
+ /** Optional parameters. */
2028
+ export interface ServicesListNextOptionalParams
2029
+ extends coreClient.OperationOptions {}
2030
+
2031
+ /** Contains response data for the listNext operation. */
2032
+ export type ServicesListNextResponse = ServiceResourceList;
2033
+
1992
2034
  /** Optional parameters. */
1993
2035
  export interface ServiceFabricManagementClientOptionalParams
1994
2036
  extends coreClient.ServiceClientOptions {
@@ -119,6 +119,18 @@ export const versionsDescription: OperationParameter = {
119
119
  mapper: UpgradableVersionsDescriptionMapper
120
120
  };
121
121
 
122
+ export const nextLink: OperationURLParameter = {
123
+ parameterPath: "nextLink",
124
+ mapper: {
125
+ serializedName: "nextLink",
126
+ required: true,
127
+ type: {
128
+ name: "String"
129
+ }
130
+ },
131
+ skipEncoding: true
132
+ };
133
+
122
134
  export const location: OperationURLParameter = {
123
135
  parameterPath: "location",
124
136
  mapper: {
@@ -152,18 +164,6 @@ export const environment: OperationURLParameter = {
152
164
  }
153
165
  };
154
166
 
155
- export const nextLink: OperationURLParameter = {
156
- parameterPath: "nextLink",
157
- mapper: {
158
- serializedName: "nextLink",
159
- required: true,
160
- type: {
161
- name: "String"
162
- }
163
- },
164
- skipEncoding: true
165
- };
166
-
167
167
  export const applicationTypeName: OperationURLParameter = {
168
168
  parameterPath: "applicationTypeName",
169
169
  mapper: {