@azure/arm-servicefabric 2.0.1-alpha.20220420.2 → 2.0.1-alpha.20220505.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 (154) hide show
  1. package/CHANGELOG.md +3 -6
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +54 -13
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/applicationTypeVersionsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/applicationTypeVersionsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/applicationTypeVersionsCreateOrUpdateSample.js +37 -0
  11. package/dist-esm/samples-dev/applicationTypeVersionsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js +33 -0
  15. package/dist-esm/samples-dev/applicationTypeVersionsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/applicationTypeVersionsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/applicationTypeVersionsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js +33 -0
  19. package/dist-esm/samples-dev/applicationTypeVersionsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/applicationTypeVersionsListSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/applicationTypeVersionsListSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/applicationTypeVersionsListSample.js +32 -0
  23. package/dist-esm/samples-dev/applicationTypeVersionsListSample.js.map +1 -0
  24. package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js +33 -0
  27. package/dist-esm/samples-dev/applicationTypesCreateOrUpdateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/applicationTypesDeleteSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/applicationTypesDeleteSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/applicationTypesDeleteSample.js +32 -0
  31. package/dist-esm/samples-dev/applicationTypesDeleteSample.js.map +1 -0
  32. package/dist-esm/samples-dev/applicationTypesGetSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/applicationTypesGetSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/applicationTypesGetSample.js +32 -0
  35. package/dist-esm/samples-dev/applicationTypesGetSample.js.map +1 -0
  36. package/dist-esm/samples-dev/applicationTypesListSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/applicationTypesListSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/applicationTypesListSample.js +31 -0
  39. package/dist-esm/samples-dev/applicationTypesListSample.js.map +1 -0
  40. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js +123 -0
  43. package/dist-esm/samples-dev/applicationsCreateOrUpdateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/applicationsDeleteSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/applicationsDeleteSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/applicationsDeleteSample.js +32 -0
  47. package/dist-esm/samples-dev/applicationsDeleteSample.js.map +1 -0
  48. package/dist-esm/samples-dev/applicationsGetSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/applicationsGetSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/applicationsGetSample.js +32 -0
  51. package/dist-esm/samples-dev/applicationsGetSample.js.map +1 -0
  52. package/dist-esm/samples-dev/applicationsListSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/applicationsListSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/applicationsListSample.js +31 -0
  55. package/dist-esm/samples-dev/applicationsListSample.js.map +1 -0
  56. package/dist-esm/samples-dev/applicationsUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/applicationsUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/applicationsUpdateSample.js +46 -0
  59. package/dist-esm/samples-dev/applicationsUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js +32 -0
  63. package/dist-esm/samples-dev/clusterVersionsGetByEnvironmentSample.js.map +1 -0
  64. package/dist-esm/samples-dev/clusterVersionsGetSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/clusterVersionsGetSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/clusterVersionsGetSample.js +31 -0
  67. package/dist-esm/samples-dev/clusterVersionsGetSample.js.map +1 -0
  68. package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js +31 -0
  71. package/dist-esm/samples-dev/clusterVersionsListByEnvironmentSample.js.map +1 -0
  72. package/dist-esm/samples-dev/clusterVersionsListSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/clusterVersionsListSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/clusterVersionsListSample.js +30 -0
  75. package/dist-esm/samples-dev/clusterVersionsListSample.js.map +1 -0
  76. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +235 -0
  79. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js.map +1 -0
  80. package/dist-esm/samples-dev/clustersDeleteSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/clustersDeleteSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/clustersDeleteSample.js +31 -0
  83. package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -0
  84. package/dist-esm/samples-dev/clustersGetSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/clustersGetSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/clustersGetSample.js +31 -0
  87. package/dist-esm/samples-dev/clustersGetSample.js.map +1 -0
  88. package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +30 -0
  91. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -0
  92. package/dist-esm/samples-dev/clustersListSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/clustersListSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/clustersListSample.js +29 -0
  95. package/dist-esm/samples-dev/clustersListSample.js.map +1 -0
  96. package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js +55 -0
  99. package/dist-esm/samples-dev/clustersListUpgradableVersionsSample.js.map +1 -0
  100. package/dist-esm/samples-dev/clustersUpdateSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/clustersUpdateSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/clustersUpdateSample.js +62 -0
  103. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -0
  104. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  107. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  108. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +74 -0
  111. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -0
  112. package/dist-esm/samples-dev/servicesDeleteSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/servicesDeleteSample.js +33 -0
  115. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -0
  116. package/dist-esm/samples-dev/servicesGetSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/servicesGetSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/servicesGetSample.js +33 -0
  119. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -0
  120. package/dist-esm/samples-dev/servicesListSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/servicesListSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/servicesListSample.js +32 -0
  123. package/dist-esm/samples-dev/servicesListSample.js.map +1 -0
  124. package/dist-esm/samples-dev/servicesUpdateSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/servicesUpdateSample.js +38 -0
  127. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -0
  128. package/dist-esm/src/operations/applicationTypeVersions.d.ts.map +1 -1
  129. package/dist-esm/src/operations/applicationTypeVersions.js +6 -2
  130. package/dist-esm/src/operations/applicationTypeVersions.js.map +1 -1
  131. package/dist-esm/src/operations/applicationTypes.d.ts.map +1 -1
  132. package/dist-esm/src/operations/applicationTypes.js +3 -1
  133. package/dist-esm/src/operations/applicationTypes.js.map +1 -1
  134. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  135. package/dist-esm/src/operations/applications.js +9 -3
  136. package/dist-esm/src/operations/applications.js.map +1 -1
  137. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  138. package/dist-esm/src/operations/clusters.js +6 -2
  139. package/dist-esm/src/operations/clusters.js.map +1 -1
  140. package/dist-esm/src/operations/services.d.ts.map +1 -1
  141. package/dist-esm/src/operations/services.js +9 -3
  142. package/dist-esm/src/operations/services.js.map +1 -1
  143. package/dist-esm/src/serviceFabricManagementClient.d.ts.map +1 -1
  144. package/dist-esm/src/serviceFabricManagementClient.js +20 -2
  145. package/dist-esm/src/serviceFabricManagementClient.js.map +1 -1
  146. package/package.json +25 -9
  147. package/rollup.config.js +6 -72
  148. package/src/operations/applicationTypeVersions.ts +6 -2
  149. package/src/operations/applicationTypes.ts +3 -1
  150. package/src/operations/applications.ts +9 -3
  151. package/src/operations/clusters.ts +6 -2
  152. package/src/operations/services.ts +9 -3
  153. package/src/serviceFabricManagementClient.ts +27 -2
  154. package/tsconfig.json +19 -5
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applicationTypesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationTypesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/applicationTypesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource.
15
+ *
16
+ * @summary Get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeNameGetOperation_example.json
18
+ */
19
+ function getAnApplicationType() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "resRg";
23
+ const clusterName = "myCluster";
24
+ const applicationTypeName = "myAppType";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
27
+ const result = yield client.applicationTypes.get(resourceGroupName, clusterName, applicationTypeName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAnApplicationType().catch(console.error);
32
+ //# sourceMappingURL=applicationTypesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationTypesGetSample.js","sourceRoot":"","sources":["../../samples-dev/applicationTypesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC;QAClC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,mBAAmB,GAAG,WAAW,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAC9C,iBAAiB,EACjB,WAAW,EACX,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applicationTypesListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationTypesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/applicationTypesListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource.
15
+ *
16
+ * @summary Gets all application type name resources created or in the process of being created in the Service Fabric cluster resource.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationTypeNameListOperation_example.json
18
+ */
19
+ function getAListOfApplicationTypeNameResources() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "resRg";
23
+ const clusterName = "myCluster";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
26
+ const result = yield client.applicationTypes.list(resourceGroupName, clusterName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getAListOfApplicationTypeNameResources().catch(console.error);
31
+ //# sourceMappingURL=applicationTypesListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationTypesListSample.js","sourceRoot":"","sources":["../../samples-dev/applicationTypesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sCAAsC;;QACnD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC;QAClC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAC/C,iBAAiB,EACjB,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applicationsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/applicationsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,123 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create or update a Service Fabric application resource with the specified name.
15
+ *
16
+ * @summary Create or update a Service Fabric application resource with the specified name.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_example_max.json
18
+ */
19
+ function putAnApplicationWithMaximumParameters() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "resRg";
23
+ const clusterName = "myCluster";
24
+ const applicationName = "myApp";
25
+ const parameters = {
26
+ maximumNodes: 3,
27
+ metrics: [
28
+ {
29
+ name: "metric1",
30
+ maximumCapacity: 3,
31
+ reservationCapacity: 1,
32
+ totalApplicationCapacity: 5
33
+ }
34
+ ],
35
+ minimumNodes: 1,
36
+ parameters: { param1: "value1" },
37
+ removeApplicationCapacity: false,
38
+ tags: {},
39
+ typeName: "myAppType",
40
+ typeVersion: "1.0",
41
+ upgradePolicy: {
42
+ applicationHealthPolicy: {
43
+ considerWarningAsError: true,
44
+ defaultServiceTypeHealthPolicy: {
45
+ maxPercentUnhealthyPartitionsPerService: 0,
46
+ maxPercentUnhealthyReplicasPerPartition: 0,
47
+ maxPercentUnhealthyServices: 0
48
+ },
49
+ maxPercentUnhealthyDeployedApplications: 0
50
+ },
51
+ forceRestart: false,
52
+ rollingUpgradeMonitoringPolicy: {
53
+ failureAction: "Rollback",
54
+ healthCheckRetryTimeout: "00:10:00",
55
+ healthCheckStableDuration: "00:05:00",
56
+ healthCheckWaitDuration: "00:02:00",
57
+ upgradeDomainTimeout: "1.06:00:00",
58
+ upgradeTimeout: "01:00:00"
59
+ },
60
+ upgradeMode: "Monitored",
61
+ upgradeReplicaSetCheckTimeout: "01:00:00"
62
+ }
63
+ };
64
+ const credential = new DefaultAzureCredential();
65
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
66
+ const result = yield client.applications.beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters);
67
+ console.log(result);
68
+ });
69
+ }
70
+ putAnApplicationWithMaximumParameters().catch(console.error);
71
+ /**
72
+ * This sample demonstrates how to Create or update a Service Fabric application resource with the specified name.
73
+ *
74
+ * @summary Create or update a Service Fabric application resource with the specified name.
75
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_example_min.json
76
+ */
77
+ function putAnApplicationWithMinimumParameters() {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
80
+ const resourceGroupName = "resRg";
81
+ const clusterName = "myCluster";
82
+ const applicationName = "myApp";
83
+ const parameters = {
84
+ location: "eastus",
85
+ removeApplicationCapacity: false,
86
+ tags: {},
87
+ typeName: "myAppType",
88
+ typeVersion: "1.0"
89
+ };
90
+ const credential = new DefaultAzureCredential();
91
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
92
+ const result = yield client.applications.beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters);
93
+ console.log(result);
94
+ });
95
+ }
96
+ putAnApplicationWithMinimumParameters().catch(console.error);
97
+ /**
98
+ * This sample demonstrates how to Create or update a Service Fabric application resource with the specified name.
99
+ *
100
+ * @summary Create or update a Service Fabric application resource with the specified name.
101
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPutOperation_recreate_example.json
102
+ */
103
+ function putAnApplicationWithRecreateOption() {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
106
+ const resourceGroupName = "resRg";
107
+ const clusterName = "myCluster";
108
+ const applicationName = "myApp";
109
+ const parameters = {
110
+ parameters: { param1: "value1" },
111
+ tags: {},
112
+ typeName: "myAppType",
113
+ typeVersion: "1.0",
114
+ upgradePolicy: { recreateApplication: true }
115
+ };
116
+ const credential = new DefaultAzureCredential();
117
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
118
+ const result = yield client.applications.beginCreateOrUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters);
119
+ console.log(result);
120
+ });
121
+ }
122
+ putAnApplicationWithRecreateOption().catch(console.error);
123
+ //# sourceMappingURL=applicationsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/applicationsCreateOrUpdateSample.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applicationsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/applicationsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete a Service Fabric application resource with the specified name.
15
+ *
16
+ * @summary Delete a Service Fabric application resource with the specified name.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationDeleteOperation_example.json
18
+ */
19
+ function deleteAnApplication() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "resRg";
23
+ const clusterName = "myCluster";
24
+ const applicationName = "myApp";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
27
+ const result = yield client.applications.beginDeleteAndWait(resourceGroupName, clusterName, applicationName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ deleteAnApplication().catch(console.error);
32
+ //# sourceMappingURL=applicationsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/applicationsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC;QAClC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,eAAe,GAAG,OAAO,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applicationsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/applicationsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource.
15
+ *
16
+ * @summary Get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationGetOperation_example.json
18
+ */
19
+ function getAnApplication() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "resRg";
23
+ const clusterName = "myCluster";
24
+ const applicationName = "myApp";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
27
+ const result = yield client.applications.get(resourceGroupName, clusterName, applicationName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAnApplication().catch(console.error);
32
+ //# sourceMappingURL=applicationsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/applicationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC;QAClC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,eAAe,GAAG,OAAO,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applicationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/applicationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets all application resources created or in the process of being created in the Service Fabric cluster resource.
15
+ *
16
+ * @summary Gets all application resources created or in the process of being created in the Service Fabric cluster resource.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationListOperation_example.json
18
+ */
19
+ function getAListOfApplicationResources() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "resRg";
23
+ const clusterName = "myCluster";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
26
+ const result = yield client.applications.list(resourceGroupName, clusterName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getAListOfApplicationResources().catch(console.error);
31
+ //# sourceMappingURL=applicationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsListSample.js","sourceRoot":"","sources":["../../samples-dev/applicationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,8BAA8B;;QAC3C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC;QAClC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=applicationsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/applicationsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Update a Service Fabric application resource with the specified name.
15
+ *
16
+ * @summary Update a Service Fabric application resource with the specified name.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ApplicationPatchOperation_example.json
18
+ */
19
+ function patchAnApplication() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceGroupName = "resRg";
23
+ const clusterName = "myCluster";
24
+ const applicationName = "myApp";
25
+ const parameters = {
26
+ location: "eastus",
27
+ metrics: [
28
+ {
29
+ name: "metric1",
30
+ maximumCapacity: 3,
31
+ reservationCapacity: 1,
32
+ totalApplicationCapacity: 5
33
+ }
34
+ ],
35
+ removeApplicationCapacity: false,
36
+ tags: {},
37
+ typeVersion: "1.0"
38
+ };
39
+ const credential = new DefaultAzureCredential();
40
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
41
+ const result = yield client.applications.beginUpdateAndWait(resourceGroupName, clusterName, applicationName, parameters);
42
+ console.log(result);
43
+ });
44
+ }
45
+ patchAnApplication().catch(console.error);
46
+ //# sourceMappingURL=applicationsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applicationsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/applicationsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,OAAO,CAAC;QAClC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,eAAe,GAAG,OAAO,CAAC;QAChC,MAAM,UAAU,GAA8B;YAC5C,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,SAAS;oBACf,eAAe,EAAE,CAAC;oBAClB,mBAAmB,EAAE,CAAC;oBACtB,wBAAwB,EAAE,CAAC;iBAC5B;aACF;YACD,yBAAyB,EAAE,KAAK;YAChC,IAAI,EAAE,EAAE;YACR,WAAW,EAAE,KAAK;SACnB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clusterVersionsGetByEnvironmentSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsGetByEnvironmentSample.d.ts","sourceRoot":"","sources":["../../samples-dev/clusterVersionsGetByEnvironmentSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets information about an available Service Fabric cluster code version by environment.
15
+ *
16
+ * @summary Gets information about an available Service Fabric cluster code version by environment.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsGetByEnvironment_example.json
18
+ */
19
+ function getClusterVersionByEnvironment() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const location = "eastus";
23
+ const environment = "Windows";
24
+ const clusterVersion = "6.1.480.9494";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
27
+ const result = yield client.clusterVersions.getByEnvironment(location, environment, clusterVersion);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getClusterVersionByEnvironment().catch(console.error);
32
+ //# sourceMappingURL=clusterVersionsGetByEnvironmentSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsGetByEnvironmentSample.js","sourceRoot":"","sources":["../../samples-dev/clusterVersionsGetByEnvironmentSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,8BAA8B;;QAC3C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,cAAc,GAAG,cAAc,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,gBAAgB,CAC1D,QAAQ,EACR,WAAW,EACX,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,8BAA8B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clusterVersionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/clusterVersionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets information about an available Service Fabric cluster code version.
15
+ *
16
+ * @summary Gets information about an available Service Fabric cluster code version.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsGet_example.json
18
+ */
19
+ function getClusterVersion() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const location = "eastus";
23
+ const clusterVersion = "6.1.480.9494";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
26
+ const result = yield client.clusterVersions.get(location, clusterVersion);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getClusterVersion().catch(console.error);
31
+ //# sourceMappingURL=clusterVersionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/clusterVersionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,cAAc,GAAG,cAAc,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QAC1E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clusterVersionsListByEnvironmentSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsListByEnvironmentSample.d.ts","sourceRoot":"","sources":["../../samples-dev/clusterVersionsListByEnvironmentSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets all available code versions for Service Fabric cluster resources by environment.
15
+ *
16
+ * @summary Gets all available code versions for Service Fabric cluster resources by environment.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsListByEnvironment.json
18
+ */
19
+ function listClusterVersionsByEnvironment() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const location = "eastus";
23
+ const environment = "Windows";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
26
+ const result = yield client.clusterVersions.listByEnvironment(location, environment);
27
+ console.log(result);
28
+ });
29
+ }
30
+ listClusterVersionsByEnvironment().catch(console.error);
31
+ //# sourceMappingURL=clusterVersionsListByEnvironmentSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsListByEnvironmentSample.js","sourceRoot":"","sources":["../../samples-dev/clusterVersionsListByEnvironmentSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,iBAAiB,CAC3D,QAAQ,EACR,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clusterVersionsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/clusterVersionsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { ServiceFabricManagementClient } from "@azure/arm-servicefabric";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets all available code versions for Service Fabric cluster resources by location.
15
+ *
16
+ * @summary Gets all available code versions for Service Fabric cluster resources by location.
17
+ * x-ms-original-file: specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ClusterVersionsList_example.json
18
+ */
19
+ function listClusterVersions() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const location = "eastus";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new ServiceFabricManagementClient(credential, subscriptionId);
25
+ const result = yield client.clusterVersions.list(location);
26
+ console.log(result);
27
+ });
28
+ }
29
+ listClusterVersions().catch(console.error);
30
+ //# sourceMappingURL=clusterVersionsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterVersionsListSample.js","sourceRoot":"","sources":["../../samples-dev/clusterVersionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC3D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clustersCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clustersCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/clustersCreateOrUpdateSample.ts"],"names":[],"mappings":""}