@azure/arm-servicefabric 2.1.1-alpha.20231211.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 (135) 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
@@ -6,27 +6,36 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
9
11
  import { Services } from "../operationsInterfaces";
10
12
  import * as coreClient from "@azure/core-client";
11
13
  import * as Mappers from "../models/mappers";
12
14
  import * as Parameters from "../models/parameters";
13
15
  import { ServiceFabricManagementClient } from "../serviceFabricManagementClient";
14
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
15
- import { LroImpl } from "../lroImpl";
16
16
  import {
17
+ SimplePollerLike,
18
+ OperationState,
19
+ createHttpPoller
20
+ } from "@azure/core-lro";
21
+ import { createLroSpec } from "../lroImpl";
22
+ import {
23
+ ServiceResource,
24
+ ServicesListNextOptionalParams,
25
+ ServicesListOptionalParams,
26
+ ServicesListResponse,
17
27
  ServicesGetOptionalParams,
18
28
  ServicesGetResponse,
19
- ServiceResource,
20
29
  ServicesCreateOrUpdateOptionalParams,
21
30
  ServicesCreateOrUpdateResponse,
22
31
  ServiceResourceUpdate,
23
32
  ServicesUpdateOptionalParams,
24
33
  ServicesUpdateResponse,
25
34
  ServicesDeleteOptionalParams,
26
- ServicesListOptionalParams,
27
- ServicesListResponse
35
+ ServicesListNextResponse
28
36
  } from "../models";
29
37
 
38
+ /// <reference lib="esnext.asynciterable" />
30
39
  /** Class containing Services operations. */
31
40
  export class ServicesImpl implements Services {
32
41
  private readonly client: ServiceFabricManagementClient;
@@ -39,6 +48,100 @@ export class ServicesImpl implements Services {
39
48
  this.client = client;
40
49
  }
41
50
 
51
+ /**
52
+ * Gets all service resources created or in the process of being created in the Service Fabric
53
+ * application resource.
54
+ * @param resourceGroupName The name of the resource group.
55
+ * @param clusterName The name of the cluster resource.
56
+ * @param applicationName The name of the application resource.
57
+ * @param options The options parameters.
58
+ */
59
+ public list(
60
+ resourceGroupName: string,
61
+ clusterName: string,
62
+ applicationName: string,
63
+ options?: ServicesListOptionalParams
64
+ ): PagedAsyncIterableIterator<ServiceResource> {
65
+ const iter = this.listPagingAll(
66
+ resourceGroupName,
67
+ clusterName,
68
+ applicationName,
69
+ options
70
+ );
71
+ return {
72
+ next() {
73
+ return iter.next();
74
+ },
75
+ [Symbol.asyncIterator]() {
76
+ return this;
77
+ },
78
+ byPage: (settings?: PageSettings) => {
79
+ if (settings?.maxPageSize) {
80
+ throw new Error("maxPageSize is not supported by this operation.");
81
+ }
82
+ return this.listPagingPage(
83
+ resourceGroupName,
84
+ clusterName,
85
+ applicationName,
86
+ options,
87
+ settings
88
+ );
89
+ }
90
+ };
91
+ }
92
+
93
+ private async *listPagingPage(
94
+ resourceGroupName: string,
95
+ clusterName: string,
96
+ applicationName: string,
97
+ options?: ServicesListOptionalParams,
98
+ settings?: PageSettings
99
+ ): AsyncIterableIterator<ServiceResource[]> {
100
+ let result: ServicesListResponse;
101
+ let continuationToken = settings?.continuationToken;
102
+ if (!continuationToken) {
103
+ result = await this._list(
104
+ resourceGroupName,
105
+ clusterName,
106
+ applicationName,
107
+ options
108
+ );
109
+ let page = result.value || [];
110
+ continuationToken = result.nextLink;
111
+ setContinuationToken(page, continuationToken);
112
+ yield page;
113
+ }
114
+ while (continuationToken) {
115
+ result = await this._listNext(
116
+ resourceGroupName,
117
+ clusterName,
118
+ applicationName,
119
+ continuationToken,
120
+ options
121
+ );
122
+ continuationToken = result.nextLink;
123
+ let page = result.value || [];
124
+ setContinuationToken(page, continuationToken);
125
+ yield page;
126
+ }
127
+ }
128
+
129
+ private async *listPagingAll(
130
+ resourceGroupName: string,
131
+ clusterName: string,
132
+ applicationName: string,
133
+ options?: ServicesListOptionalParams
134
+ ): AsyncIterableIterator<ServiceResource> {
135
+ for await (const page of this.listPagingPage(
136
+ resourceGroupName,
137
+ clusterName,
138
+ applicationName,
139
+ options
140
+ )) {
141
+ yield* page;
142
+ }
143
+ }
144
+
42
145
  /**
43
146
  * Get a Service Fabric service resource created or in the process of being created in the Service
44
147
  * Fabric application resource.
@@ -80,8 +183,8 @@ export class ServicesImpl implements Services {
80
183
  parameters: ServiceResource,
81
184
  options?: ServicesCreateOrUpdateOptionalParams
82
185
  ): Promise<
83
- PollerLike<
84
- PollOperationState<ServicesCreateOrUpdateResponse>,
186
+ SimplePollerLike<
187
+ OperationState<ServicesCreateOrUpdateResponse>,
85
188
  ServicesCreateOrUpdateResponse
86
189
  >
87
190
  > {
@@ -91,7 +194,7 @@ export class ServicesImpl implements Services {
91
194
  ): Promise<ServicesCreateOrUpdateResponse> => {
92
195
  return this.client.sendOperationRequest(args, spec);
93
196
  };
94
- const sendOperation = async (
197
+ const sendOperationFn = async (
95
198
  args: coreClient.OperationArguments,
96
199
  spec: coreClient.OperationSpec
97
200
  ) => {
@@ -124,9 +227,9 @@ export class ServicesImpl implements Services {
124
227
  };
125
228
  };
126
229
 
127
- const lro = new LroImpl(
128
- sendOperation,
129
- {
230
+ const lro = createLroSpec({
231
+ sendOperationFn,
232
+ args: {
130
233
  resourceGroupName,
131
234
  clusterName,
132
235
  applicationName,
@@ -134,10 +237,13 @@ export class ServicesImpl implements Services {
134
237
  parameters,
135
238
  options
136
239
  },
137
- createOrUpdateOperationSpec
138
- );
139
- const poller = new LroEngine(lro, {
140
- resumeFrom: options?.resumeFrom,
240
+ spec: createOrUpdateOperationSpec
241
+ });
242
+ const poller = await createHttpPoller<
243
+ ServicesCreateOrUpdateResponse,
244
+ OperationState<ServicesCreateOrUpdateResponse>
245
+ >(lro, {
246
+ restoreFrom: options?.resumeFrom,
141
247
  intervalInMs: options?.updateIntervalInMs
142
248
  });
143
249
  await poller.poll();
@@ -191,8 +297,8 @@ export class ServicesImpl implements Services {
191
297
  parameters: ServiceResourceUpdate,
192
298
  options?: ServicesUpdateOptionalParams
193
299
  ): Promise<
194
- PollerLike<
195
- PollOperationState<ServicesUpdateResponse>,
300
+ SimplePollerLike<
301
+ OperationState<ServicesUpdateResponse>,
196
302
  ServicesUpdateResponse
197
303
  >
198
304
  > {
@@ -202,7 +308,7 @@ export class ServicesImpl implements Services {
202
308
  ): Promise<ServicesUpdateResponse> => {
203
309
  return this.client.sendOperationRequest(args, spec);
204
310
  };
205
- const sendOperation = async (
311
+ const sendOperationFn = async (
206
312
  args: coreClient.OperationArguments,
207
313
  spec: coreClient.OperationSpec
208
314
  ) => {
@@ -235,9 +341,9 @@ export class ServicesImpl implements Services {
235
341
  };
236
342
  };
237
343
 
238
- const lro = new LroImpl(
239
- sendOperation,
240
- {
344
+ const lro = createLroSpec({
345
+ sendOperationFn,
346
+ args: {
241
347
  resourceGroupName,
242
348
  clusterName,
243
349
  applicationName,
@@ -245,10 +351,13 @@ export class ServicesImpl implements Services {
245
351
  parameters,
246
352
  options
247
353
  },
248
- updateOperationSpec
249
- );
250
- const poller = new LroEngine(lro, {
251
- resumeFrom: options?.resumeFrom,
354
+ spec: updateOperationSpec
355
+ });
356
+ const poller = await createHttpPoller<
357
+ ServicesUpdateResponse,
358
+ OperationState<ServicesUpdateResponse>
359
+ >(lro, {
360
+ restoreFrom: options?.resumeFrom,
252
361
  intervalInMs: options?.updateIntervalInMs
253
362
  });
254
363
  await poller.poll();
@@ -299,14 +408,14 @@ export class ServicesImpl implements Services {
299
408
  applicationName: string,
300
409
  serviceName: string,
301
410
  options?: ServicesDeleteOptionalParams
302
- ): Promise<PollerLike<PollOperationState<void>, void>> {
411
+ ): Promise<SimplePollerLike<OperationState<void>, void>> {
303
412
  const directSendOperation = async (
304
413
  args: coreClient.OperationArguments,
305
414
  spec: coreClient.OperationSpec
306
415
  ): Promise<void> => {
307
416
  return this.client.sendOperationRequest(args, spec);
308
417
  };
309
- const sendOperation = async (
418
+ const sendOperationFn = async (
310
419
  args: coreClient.OperationArguments,
311
420
  spec: coreClient.OperationSpec
312
421
  ) => {
@@ -339,13 +448,19 @@ export class ServicesImpl implements Services {
339
448
  };
340
449
  };
341
450
 
342
- const lro = new LroImpl(
343
- sendOperation,
344
- { resourceGroupName, clusterName, applicationName, serviceName, options },
345
- deleteOperationSpec
346
- );
347
- const poller = new LroEngine(lro, {
348
- resumeFrom: options?.resumeFrom,
451
+ const lro = createLroSpec({
452
+ sendOperationFn,
453
+ args: {
454
+ resourceGroupName,
455
+ clusterName,
456
+ applicationName,
457
+ serviceName,
458
+ options
459
+ },
460
+ spec: deleteOperationSpec
461
+ });
462
+ const poller = await createHttpPoller<void, OperationState<void>>(lro, {
463
+ restoreFrom: options?.resumeFrom,
349
464
  intervalInMs: options?.updateIntervalInMs
350
465
  });
351
466
  await poller.poll();
@@ -386,7 +501,7 @@ export class ServicesImpl implements Services {
386
501
  * @param applicationName The name of the application resource.
387
502
  * @param options The options parameters.
388
503
  */
389
- list(
504
+ private _list(
390
505
  resourceGroupName: string,
391
506
  clusterName: string,
392
507
  applicationName: string,
@@ -397,6 +512,27 @@ export class ServicesImpl implements Services {
397
512
  listOperationSpec
398
513
  );
399
514
  }
515
+
516
+ /**
517
+ * ListNext
518
+ * @param resourceGroupName The name of the resource group.
519
+ * @param clusterName The name of the cluster resource.
520
+ * @param applicationName The name of the application resource.
521
+ * @param nextLink The nextLink from the previous successful call to the List method.
522
+ * @param options The options parameters.
523
+ */
524
+ private _listNext(
525
+ resourceGroupName: string,
526
+ clusterName: string,
527
+ applicationName: string,
528
+ nextLink: string,
529
+ options?: ServicesListNextOptionalParams
530
+ ): Promise<ServicesListNextResponse> {
531
+ return this.client.sendOperationRequest(
532
+ { resourceGroupName, clusterName, applicationName, nextLink, options },
533
+ listNextOperationSpec
534
+ );
535
+ }
400
536
  }
401
537
  // Operation Specifications
402
538
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -543,3 +679,25 @@ const listOperationSpec: coreClient.OperationSpec = {
543
679
  headerParameters: [Parameters.accept],
544
680
  serializer
545
681
  };
682
+ const listNextOperationSpec: coreClient.OperationSpec = {
683
+ path: "{nextLink}",
684
+ httpMethod: "GET",
685
+ responses: {
686
+ 200: {
687
+ bodyMapper: Mappers.ServiceResourceList
688
+ },
689
+ default: {
690
+ bodyMapper: Mappers.ErrorModel
691
+ }
692
+ },
693
+ urlParameters: [
694
+ Parameters.$host,
695
+ Parameters.resourceGroupName,
696
+ Parameters.clusterName,
697
+ Parameters.subscriptionId,
698
+ Parameters.nextLink,
699
+ Parameters.applicationName
700
+ ],
701
+ headerParameters: [Parameters.accept],
702
+ serializer
703
+ };
@@ -6,20 +6,35 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PollerLike, PollOperationState } from "@azure/core-lro";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
10
11
  import {
12
+ ApplicationTypeVersionResource,
13
+ ApplicationTypeVersionsListOptionalParams,
11
14
  ApplicationTypeVersionsGetOptionalParams,
12
15
  ApplicationTypeVersionsGetResponse,
13
- ApplicationTypeVersionResource,
14
16
  ApplicationTypeVersionsCreateOrUpdateOptionalParams,
15
17
  ApplicationTypeVersionsCreateOrUpdateResponse,
16
- ApplicationTypeVersionsDeleteOptionalParams,
17
- ApplicationTypeVersionsListOptionalParams,
18
- ApplicationTypeVersionsListResponse
18
+ ApplicationTypeVersionsDeleteOptionalParams
19
19
  } from "../models";
20
20
 
21
+ /// <reference lib="esnext.asynciterable" />
21
22
  /** Interface representing a ApplicationTypeVersions. */
22
23
  export interface ApplicationTypeVersions {
24
+ /**
25
+ * Gets all application type version resources created or in the process of being created in the
26
+ * Service Fabric application type name resource.
27
+ * @param resourceGroupName The name of the resource group.
28
+ * @param clusterName The name of the cluster resource.
29
+ * @param applicationTypeName The name of the application type name resource.
30
+ * @param options The options parameters.
31
+ */
32
+ list(
33
+ resourceGroupName: string,
34
+ clusterName: string,
35
+ applicationTypeName: string,
36
+ options?: ApplicationTypeVersionsListOptionalParams
37
+ ): PagedAsyncIterableIterator<ApplicationTypeVersionResource>;
23
38
  /**
24
39
  * Get a Service Fabric application type version resource created or in the process of being created in
25
40
  * the Service Fabric application type name resource.
@@ -53,8 +68,8 @@ export interface ApplicationTypeVersions {
53
68
  parameters: ApplicationTypeVersionResource,
54
69
  options?: ApplicationTypeVersionsCreateOrUpdateOptionalParams
55
70
  ): Promise<
56
- PollerLike<
57
- PollOperationState<ApplicationTypeVersionsCreateOrUpdateResponse>,
71
+ SimplePollerLike<
72
+ OperationState<ApplicationTypeVersionsCreateOrUpdateResponse>,
58
73
  ApplicationTypeVersionsCreateOrUpdateResponse
59
74
  >
60
75
  >;
@@ -89,7 +104,7 @@ export interface ApplicationTypeVersions {
89
104
  applicationTypeName: string,
90
105
  version: string,
91
106
  options?: ApplicationTypeVersionsDeleteOptionalParams
92
- ): Promise<PollerLike<PollOperationState<void>, void>>;
107
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
93
108
  /**
94
109
  * Delete a Service Fabric application type version resource with the specified name.
95
110
  * @param resourceGroupName The name of the resource group.
@@ -105,18 +120,4 @@ export interface ApplicationTypeVersions {
105
120
  version: string,
106
121
  options?: ApplicationTypeVersionsDeleteOptionalParams
107
122
  ): Promise<void>;
108
- /**
109
- * Gets all application type version resources created or in the process of being created in the
110
- * Service Fabric application type name resource.
111
- * @param resourceGroupName The name of the resource group.
112
- * @param clusterName The name of the cluster resource.
113
- * @param applicationTypeName The name of the application type name resource.
114
- * @param options The options parameters.
115
- */
116
- list(
117
- resourceGroupName: string,
118
- clusterName: string,
119
- applicationTypeName: string,
120
- options?: ApplicationTypeVersionsListOptionalParams
121
- ): Promise<ApplicationTypeVersionsListResponse>;
122
123
  }
@@ -6,20 +6,33 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PollerLike, PollOperationState } from "@azure/core-lro";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
10
11
  import {
12
+ ApplicationTypeResource,
13
+ ApplicationTypesListOptionalParams,
11
14
  ApplicationTypesGetOptionalParams,
12
15
  ApplicationTypesGetResponse,
13
- ApplicationTypeResource,
14
16
  ApplicationTypesCreateOrUpdateOptionalParams,
15
17
  ApplicationTypesCreateOrUpdateResponse,
16
- ApplicationTypesDeleteOptionalParams,
17
- ApplicationTypesListOptionalParams,
18
- ApplicationTypesListResponse
18
+ ApplicationTypesDeleteOptionalParams
19
19
  } from "../models";
20
20
 
21
+ /// <reference lib="esnext.asynciterable" />
21
22
  /** Interface representing a ApplicationTypes. */
22
23
  export interface ApplicationTypes {
24
+ /**
25
+ * Gets all application type name resources created or in the process of being created in the Service
26
+ * Fabric cluster resource.
27
+ * @param resourceGroupName The name of the resource group.
28
+ * @param clusterName The name of the cluster resource.
29
+ * @param options The options parameters.
30
+ */
31
+ list(
32
+ resourceGroupName: string,
33
+ clusterName: string,
34
+ options?: ApplicationTypesListOptionalParams
35
+ ): PagedAsyncIterableIterator<ApplicationTypeResource>;
23
36
  /**
24
37
  * Get a Service Fabric application type name resource created or in the process of being created in
25
38
  * the Service Fabric cluster resource.
@@ -61,7 +74,7 @@ export interface ApplicationTypes {
61
74
  clusterName: string,
62
75
  applicationTypeName: string,
63
76
  options?: ApplicationTypesDeleteOptionalParams
64
- ): Promise<PollerLike<PollOperationState<void>, void>>;
77
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
65
78
  /**
66
79
  * Delete a Service Fabric application type name resource with the specified name.
67
80
  * @param resourceGroupName The name of the resource group.
@@ -75,16 +88,4 @@ export interface ApplicationTypes {
75
88
  applicationTypeName: string,
76
89
  options?: ApplicationTypesDeleteOptionalParams
77
90
  ): Promise<void>;
78
- /**
79
- * Gets all application type name resources created or in the process of being created in the Service
80
- * Fabric cluster resource.
81
- * @param resourceGroupName The name of the resource group.
82
- * @param clusterName The name of the cluster resource.
83
- * @param options The options parameters.
84
- */
85
- list(
86
- resourceGroupName: string,
87
- clusterName: string,
88
- options?: ApplicationTypesListOptionalParams
89
- ): Promise<ApplicationTypesListResponse>;
90
91
  }
@@ -6,23 +6,36 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PollerLike, PollOperationState } from "@azure/core-lro";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
10
11
  import {
12
+ ApplicationResource,
13
+ ApplicationsListOptionalParams,
11
14
  ApplicationsGetOptionalParams,
12
15
  ApplicationsGetResponse,
13
- ApplicationResource,
14
16
  ApplicationsCreateOrUpdateOptionalParams,
15
17
  ApplicationsCreateOrUpdateResponse,
16
18
  ApplicationResourceUpdate,
17
19
  ApplicationsUpdateOptionalParams,
18
20
  ApplicationsUpdateResponse,
19
- ApplicationsDeleteOptionalParams,
20
- ApplicationsListOptionalParams,
21
- ApplicationsListResponse
21
+ ApplicationsDeleteOptionalParams
22
22
  } from "../models";
23
23
 
24
+ /// <reference lib="esnext.asynciterable" />
24
25
  /** Interface representing a Applications. */
25
26
  export interface Applications {
27
+ /**
28
+ * Gets all application resources created or in the process of being created in the Service Fabric
29
+ * cluster resource.
30
+ * @param resourceGroupName The name of the resource group.
31
+ * @param clusterName The name of the cluster resource.
32
+ * @param options The options parameters.
33
+ */
34
+ list(
35
+ resourceGroupName: string,
36
+ clusterName: string,
37
+ options?: ApplicationsListOptionalParams
38
+ ): PagedAsyncIterableIterator<ApplicationResource>;
26
39
  /**
27
40
  * Get a Service Fabric application resource created or in the process of being created in the Service
28
41
  * Fabric cluster resource.
@@ -52,8 +65,8 @@ export interface Applications {
52
65
  parameters: ApplicationResource,
53
66
  options?: ApplicationsCreateOrUpdateOptionalParams
54
67
  ): Promise<
55
- PollerLike<
56
- PollOperationState<ApplicationsCreateOrUpdateResponse>,
68
+ SimplePollerLike<
69
+ OperationState<ApplicationsCreateOrUpdateResponse>,
57
70
  ApplicationsCreateOrUpdateResponse
58
71
  >
59
72
  >;
@@ -87,8 +100,8 @@ export interface Applications {
87
100
  parameters: ApplicationResourceUpdate,
88
101
  options?: ApplicationsUpdateOptionalParams
89
102
  ): Promise<
90
- PollerLike<
91
- PollOperationState<ApplicationsUpdateResponse>,
103
+ SimplePollerLike<
104
+ OperationState<ApplicationsUpdateResponse>,
92
105
  ApplicationsUpdateResponse
93
106
  >
94
107
  >;
@@ -119,7 +132,7 @@ export interface Applications {
119
132
  clusterName: string,
120
133
  applicationName: string,
121
134
  options?: ApplicationsDeleteOptionalParams
122
- ): Promise<PollerLike<PollOperationState<void>, void>>;
135
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
123
136
  /**
124
137
  * Delete a Service Fabric application resource with the specified name.
125
138
  * @param resourceGroupName The name of the resource group.
@@ -133,16 +146,4 @@ export interface Applications {
133
146
  applicationName: string,
134
147
  options?: ApplicationsDeleteOptionalParams
135
148
  ): Promise<void>;
136
- /**
137
- * Gets all application resources created or in the process of being created in the Service Fabric
138
- * cluster resource.
139
- * @param resourceGroupName The name of the resource group.
140
- * @param clusterName The name of the cluster resource.
141
- * @param options The options parameters.
142
- */
143
- list(
144
- resourceGroupName: string,
145
- clusterName: string,
146
- options?: ApplicationsListOptionalParams
147
- ): Promise<ApplicationsListResponse>;
148
149
  }
@@ -9,7 +9,7 @@
9
9
  import {
10
10
  ClusterVersionsGetOptionalParams,
11
11
  ClusterVersionsGetResponse,
12
- Enum14,
12
+ ClusterVersionsEnvironment,
13
13
  ClusterVersionsGetByEnvironmentOptionalParams,
14
14
  ClusterVersionsGetByEnvironmentResponse,
15
15
  ClusterVersionsListOptionalParams,
@@ -40,7 +40,7 @@ export interface ClusterVersions {
40
40
  */
41
41
  getByEnvironment(
42
42
  location: string,
43
- environment: Enum14,
43
+ environment: ClusterVersionsEnvironment,
44
44
  clusterVersion: string,
45
45
  options?: ClusterVersionsGetByEnvironmentOptionalParams
46
46
  ): Promise<ClusterVersionsGetByEnvironmentResponse>;
@@ -61,7 +61,7 @@ export interface ClusterVersions {
61
61
  */
62
62
  listByEnvironment(
63
63
  location: string,
64
- environment: Enum14,
64
+ environment: ClusterVersionsEnvironment,
65
65
  options?: ClusterVersionsListByEnvironmentOptionalParams
66
66
  ): Promise<ClusterVersionsListByEnvironmentResponse>;
67
67
  }