@azure/arm-servicefabric 2.0.0-alpha.20211105.1 → 2.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 (67) hide show
  1. package/CHANGELOG.md +7 -10
  2. package/README.md +4 -0
  3. package/dist/index.js +222 -242
  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/src/index.d.ts +0 -1
  8. package/dist-esm/src/index.d.ts.map +1 -1
  9. package/dist-esm/src/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/models/index.d.ts +134 -134
  12. package/dist-esm/src/models/index.d.ts.map +1 -1
  13. package/dist-esm/src/models/index.js +30 -30
  14. package/dist-esm/src/models/index.js.map +1 -1
  15. package/dist-esm/src/models/mappers.d.ts +8 -8
  16. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  17. package/dist-esm/src/models/mappers.js +189 -189
  18. package/dist-esm/src/models/mappers.js.map +1 -1
  19. package/dist-esm/src/operations/applicationTypeVersions.d.ts +2 -2
  20. package/dist-esm/src/operations/applicationTypeVersions.d.ts.map +1 -1
  21. package/dist-esm/src/operations/applicationTypeVersions.js.map +1 -1
  22. package/dist-esm/src/operations/applicationTypes.d.ts +2 -2
  23. package/dist-esm/src/operations/applicationTypes.d.ts.map +1 -1
  24. package/dist-esm/src/operations/applicationTypes.js.map +1 -1
  25. package/dist-esm/src/operations/applications.d.ts +2 -2
  26. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  27. package/dist-esm/src/operations/applications.js.map +1 -1
  28. package/dist-esm/src/operations/clusterVersions.d.ts +2 -2
  29. package/dist-esm/src/operations/clusterVersions.d.ts.map +1 -1
  30. package/dist-esm/src/operations/clusterVersions.js.map +1 -1
  31. package/dist-esm/src/operations/clusters.d.ts +2 -2
  32. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  33. package/dist-esm/src/operations/clusters.js.map +1 -1
  34. package/dist-esm/src/operations/operations.d.ts +2 -2
  35. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  36. package/dist-esm/src/operations/operations.js.map +1 -1
  37. package/dist-esm/src/operations/services.d.ts +2 -2
  38. package/dist-esm/src/operations/services.d.ts.map +1 -1
  39. package/dist-esm/src/operations/services.js.map +1 -1
  40. package/dist-esm/src/serviceFabricManagementClient.d.ts +5 -2
  41. package/dist-esm/src/serviceFabricManagementClient.d.ts.map +1 -1
  42. package/dist-esm/src/serviceFabricManagementClient.js +32 -3
  43. package/dist-esm/src/serviceFabricManagementClient.js.map +1 -1
  44. package/dist-esm/test/servicefabric.d.ts +3 -1
  45. package/dist-esm/test/servicefabric.d.ts.map +1 -1
  46. package/dist-esm/test/servicefabric.js +10 -4
  47. package/dist-esm/test/servicefabric.js.map +1 -1
  48. package/package.json +6 -5
  49. package/review/arm-servicefabric.api.md +5 -10
  50. package/src/index.ts +0 -1
  51. package/src/models/index.ts +143 -143
  52. package/src/models/mappers.ts +205 -205
  53. package/src/operations/applicationTypeVersions.ts +3 -3
  54. package/src/operations/applicationTypes.ts +3 -3
  55. package/src/operations/applications.ts +3 -3
  56. package/src/operations/clusterVersions.ts +3 -3
  57. package/src/operations/clusters.ts +3 -3
  58. package/src/operations/operations.ts +3 -3
  59. package/src/operations/services.ts +3 -3
  60. package/src/serviceFabricManagementClient.ts +46 -3
  61. package/types/arm-servicefabric.d.ts +4 -14
  62. package/types/tsdoc-metadata.json +1 -1
  63. package/dist-esm/src/serviceFabricManagementClientContext.d.ts +0 -16
  64. package/dist-esm/src/serviceFabricManagementClientContext.d.ts.map +0 -1
  65. package/dist-esm/src/serviceFabricManagementClientContext.js +0 -49
  66. package/dist-esm/src/serviceFabricManagementClientContext.js.map +0 -1
  67. package/src/serviceFabricManagementClientContext.ts +0 -70
package/CHANGELOG.md CHANGED
@@ -1,14 +1,11 @@
1
- ## 2.0.0-beta.1 (2021-11-03)
1
+ # Release History
2
+
3
+ ## 2.0.0 (2021-12-13)
2
4
 
3
- This is the first preview for the new version of the `@azure/arm-servicefabric` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
5
+ The package of @azure/arm-servicefabric is using our next generation design principles since version 2.0.0, which contains breaking changes.
4
6
 
5
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- **Noteworthy changes and features**
10
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
11
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
12
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
13
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
14
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
53
  const client = new ServiceFabricManagementClient(new DefaultAzureCredential(), subscriptionId);
54
54
  ```
55
55
 
56
+
57
+ ### JavaScript Bundle
58
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
59
+
56
60
  ## Key concepts
57
61
 
58
62
  ### ServiceFabricManagementClient
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
7
  var coreLro = require('@azure/core-lro');
8
8
 
9
9
  /*
@@ -125,6 +125,30 @@ var coreLro = require('@azure/core-lro');
125
125
  /** The upgrade will stop after completing each upgrade domain and automatically monitor health before proceeding. The value is 3 */
126
126
  KnownRollingUpgradeMode["Monitored"] = "Monitored";
127
127
  })(exports.KnownRollingUpgradeMode || (exports.KnownRollingUpgradeMode = {}));
128
+ (function (KnownServiceKind) {
129
+ /** Indicates the service kind is invalid. All Service Fabric enumerations have the invalid type. The value is zero. */
130
+ KnownServiceKind["Invalid"] = "Invalid";
131
+ /** Does not use Service Fabric to make its state highly available or reliable. The value is 1. */
132
+ KnownServiceKind["Stateless"] = "Stateless";
133
+ /** Uses Service Fabric to make its state or part of its state highly available and reliable. The value is 2. */
134
+ KnownServiceKind["Stateful"] = "Stateful";
135
+ })(exports.KnownServiceKind || (exports.KnownServiceKind = {}));
136
+ (function (KnownPartitionScheme) {
137
+ /** Indicates the partition kind is invalid. All Service Fabric enumerations have the invalid type. The value is zero. */
138
+ KnownPartitionScheme["Invalid"] = "Invalid";
139
+ /** Indicates that the partition is based on string names, and is a SingletonPartitionSchemeDescription object, The value is 1. */
140
+ KnownPartitionScheme["Singleton"] = "Singleton";
141
+ /** Indicates that the partition is based on Int64 key ranges, and is a UniformInt64RangePartitionSchemeDescription object. The value is 2. */
142
+ KnownPartitionScheme["UniformInt64Range"] = "UniformInt64Range";
143
+ /** Indicates that the partition is based on string names, and is a NamedPartitionSchemeDescription object. The value is 3 */
144
+ KnownPartitionScheme["Named"] = "Named";
145
+ })(exports.KnownPartitionScheme || (exports.KnownPartitionScheme = {}));
146
+ (function (KnownArmServicePackageActivationMode) {
147
+ /** Indicates the application package activation mode will use shared process. */
148
+ KnownArmServicePackageActivationMode["SharedProcess"] = "SharedProcess";
149
+ /** Indicates the application package activation mode will use exclusive process. */
150
+ KnownArmServicePackageActivationMode["ExclusiveProcess"] = "ExclusiveProcess";
151
+ })(exports.KnownArmServicePackageActivationMode || (exports.KnownArmServicePackageActivationMode = {}));
128
152
  (function (KnownServiceCorrelationScheme) {
129
153
  /** An invalid correlation scheme. Cannot be used. The value is zero. */
130
154
  KnownServiceCorrelationScheme["Invalid"] = "Invalid";
@@ -169,30 +193,6 @@ var coreLro = require('@azure/core-lro');
169
193
  /** Specifies the move cost of the service as High. The value is 3. */
170
194
  KnownMoveCost["High"] = "High";
171
195
  })(exports.KnownMoveCost || (exports.KnownMoveCost = {}));
172
- (function (KnownServiceKind) {
173
- /** Indicates the service kind is invalid. All Service Fabric enumerations have the invalid type. The value is zero. */
174
- KnownServiceKind["Invalid"] = "Invalid";
175
- /** Does not use Service Fabric to make its state highly available or reliable. The value is 1. */
176
- KnownServiceKind["Stateless"] = "Stateless";
177
- /** Uses Service Fabric to make its state or part of its state highly available and reliable. The value is 2. */
178
- KnownServiceKind["Stateful"] = "Stateful";
179
- })(exports.KnownServiceKind || (exports.KnownServiceKind = {}));
180
- (function (KnownPartitionScheme) {
181
- /** Indicates the partition kind is invalid. All Service Fabric enumerations have the invalid type. The value is zero. */
182
- KnownPartitionScheme["Invalid"] = "Invalid";
183
- /** Indicates that the partition is based on string names, and is a SingletonPartitionSchemeDescription object, The value is 1. */
184
- KnownPartitionScheme["Singleton"] = "Singleton";
185
- /** Indicates that the partition is based on Int64 key ranges, and is a UniformInt64RangePartitionSchemeDescription object. The value is 2. */
186
- KnownPartitionScheme["UniformInt64Range"] = "UniformInt64Range";
187
- /** Indicates that the partition is based on string names, and is a NamedPartitionSchemeDescription object. The value is 3 */
188
- KnownPartitionScheme["Named"] = "Named";
189
- })(exports.KnownPartitionScheme || (exports.KnownPartitionScheme = {}));
190
- (function (KnownArmServicePackageActivationMode) {
191
- /** Indicates the application package activation mode will use shared process. */
192
- KnownArmServicePackageActivationMode["SharedProcess"] = "SharedProcess";
193
- /** Indicates the application package activation mode will use exclusive process. */
194
- KnownArmServicePackageActivationMode["ExclusiveProcess"] = "ExclusiveProcess";
195
- })(exports.KnownArmServicePackageActivationMode || (exports.KnownArmServicePackageActivationMode = {}));
196
196
 
197
197
  /*
198
198
  * Copyright (c) Microsoft Corporation.
@@ -201,107 +201,6 @@ var coreLro = require('@azure/core-lro');
201
201
  * Code generated by Microsoft (R) AutoRest Code Generator.
202
202
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
203
203
  */
204
- const Resource = {
205
- type: {
206
- name: "Composite",
207
- className: "Resource",
208
- modelProperties: {
209
- id: {
210
- serializedName: "id",
211
- readOnly: true,
212
- type: {
213
- name: "String"
214
- }
215
- },
216
- name: {
217
- serializedName: "name",
218
- readOnly: true,
219
- type: {
220
- name: "String"
221
- }
222
- },
223
- type: {
224
- serializedName: "type",
225
- readOnly: true,
226
- type: {
227
- name: "String"
228
- }
229
- },
230
- location: {
231
- serializedName: "location",
232
- required: true,
233
- type: {
234
- name: "String"
235
- }
236
- },
237
- tags: {
238
- serializedName: "tags",
239
- type: {
240
- name: "Dictionary",
241
- value: { type: { name: "String" } }
242
- }
243
- },
244
- etag: {
245
- serializedName: "etag",
246
- readOnly: true,
247
- type: {
248
- name: "String"
249
- }
250
- },
251
- systemData: {
252
- serializedName: "systemData",
253
- type: {
254
- name: "Composite",
255
- className: "SystemData"
256
- }
257
- }
258
- }
259
- }
260
- };
261
- const SystemData = {
262
- type: {
263
- name: "Composite",
264
- className: "SystemData",
265
- modelProperties: {
266
- createdBy: {
267
- serializedName: "createdBy",
268
- type: {
269
- name: "String"
270
- }
271
- },
272
- createdByType: {
273
- serializedName: "createdByType",
274
- type: {
275
- name: "String"
276
- }
277
- },
278
- createdAt: {
279
- serializedName: "createdAt",
280
- type: {
281
- name: "DateTime"
282
- }
283
- },
284
- lastModifiedBy: {
285
- serializedName: "lastModifiedBy",
286
- type: {
287
- name: "String"
288
- }
289
- },
290
- lastModifiedByType: {
291
- serializedName: "lastModifiedByType",
292
- type: {
293
- name: "String"
294
- }
295
- },
296
- lastModifiedAt: {
297
- serializedName: "lastModifiedAt",
298
- type: {
299
- name: "DateTime"
300
- }
301
- }
302
- }
303
- }
304
- };
305
204
  const ClusterVersionDetails = {
306
205
  type: {
307
206
  name: "Composite",
@@ -1038,6 +937,107 @@ const NotificationTarget = {
1038
937
  }
1039
938
  }
1040
939
  };
940
+ const Resource = {
941
+ type: {
942
+ name: "Composite",
943
+ className: "Resource",
944
+ modelProperties: {
945
+ id: {
946
+ serializedName: "id",
947
+ readOnly: true,
948
+ type: {
949
+ name: "String"
950
+ }
951
+ },
952
+ name: {
953
+ serializedName: "name",
954
+ readOnly: true,
955
+ type: {
956
+ name: "String"
957
+ }
958
+ },
959
+ type: {
960
+ serializedName: "type",
961
+ readOnly: true,
962
+ type: {
963
+ name: "String"
964
+ }
965
+ },
966
+ location: {
967
+ serializedName: "location",
968
+ required: true,
969
+ type: {
970
+ name: "String"
971
+ }
972
+ },
973
+ tags: {
974
+ serializedName: "tags",
975
+ type: {
976
+ name: "Dictionary",
977
+ value: { type: { name: "String" } }
978
+ }
979
+ },
980
+ etag: {
981
+ serializedName: "etag",
982
+ readOnly: true,
983
+ type: {
984
+ name: "String"
985
+ }
986
+ },
987
+ systemData: {
988
+ serializedName: "systemData",
989
+ type: {
990
+ name: "Composite",
991
+ className: "SystemData"
992
+ }
993
+ }
994
+ }
995
+ }
996
+ };
997
+ const SystemData = {
998
+ type: {
999
+ name: "Composite",
1000
+ className: "SystemData",
1001
+ modelProperties: {
1002
+ createdBy: {
1003
+ serializedName: "createdBy",
1004
+ type: {
1005
+ name: "String"
1006
+ }
1007
+ },
1008
+ createdByType: {
1009
+ serializedName: "createdByType",
1010
+ type: {
1011
+ name: "String"
1012
+ }
1013
+ },
1014
+ createdAt: {
1015
+ serializedName: "createdAt",
1016
+ type: {
1017
+ name: "DateTime"
1018
+ }
1019
+ },
1020
+ lastModifiedBy: {
1021
+ serializedName: "lastModifiedBy",
1022
+ type: {
1023
+ name: "String"
1024
+ }
1025
+ },
1026
+ lastModifiedByType: {
1027
+ serializedName: "lastModifiedByType",
1028
+ type: {
1029
+ name: "String"
1030
+ }
1031
+ },
1032
+ lastModifiedAt: {
1033
+ serializedName: "lastModifiedAt",
1034
+ type: {
1035
+ name: "DateTime"
1036
+ }
1037
+ }
1038
+ }
1039
+ }
1040
+ };
1041
1041
  const ErrorModel = {
1042
1042
  type: {
1043
1043
  name: "Composite",
@@ -1998,6 +1998,26 @@ const ApplicationResourceList = {
1998
1998
  }
1999
1999
  }
2000
2000
  };
2001
+ const PartitionSchemeDescription = {
2002
+ type: {
2003
+ name: "Composite",
2004
+ className: "PartitionSchemeDescription",
2005
+ uberParent: "PartitionSchemeDescription",
2006
+ polymorphicDiscriminator: {
2007
+ serializedName: "partitionScheme",
2008
+ clientName: "partitionScheme"
2009
+ },
2010
+ modelProperties: {
2011
+ partitionScheme: {
2012
+ serializedName: "partitionScheme",
2013
+ required: true,
2014
+ type: {
2015
+ name: "String"
2016
+ }
2017
+ }
2018
+ }
2019
+ }
2020
+ };
2001
2021
  const ServiceResourcePropertiesBase = {
2002
2022
  type: {
2003
2023
  name: "Composite",
@@ -2135,26 +2155,6 @@ const ServicePlacementPolicyDescription = {
2135
2155
  }
2136
2156
  }
2137
2157
  };
2138
- const PartitionSchemeDescription = {
2139
- type: {
2140
- name: "Composite",
2141
- className: "PartitionSchemeDescription",
2142
- uberParent: "PartitionSchemeDescription",
2143
- polymorphicDiscriminator: {
2144
- serializedName: "partitionScheme",
2145
- clientName: "partitionScheme"
2146
- },
2147
- modelProperties: {
2148
- partitionScheme: {
2149
- serializedName: "partitionScheme",
2150
- required: true,
2151
- type: {
2152
- name: "String"
2153
- }
2154
- }
2155
- }
2156
- }
2157
- };
2158
2158
  const ServiceResourceList = {
2159
2159
  type: {
2160
2160
  name: "Composite",
@@ -2750,71 +2750,6 @@ const ApplicationResourceProperties = {
2750
2750
  } })
2751
2751
  }
2752
2752
  };
2753
- const ServiceResourceProperties = {
2754
- serializedName: "ServiceResourceProperties",
2755
- type: {
2756
- name: "Composite",
2757
- className: "ServiceResourceProperties",
2758
- uberParent: "ServiceResourcePropertiesBase",
2759
- polymorphicDiscriminator: {
2760
- serializedName: "serviceKind",
2761
- clientName: "serviceKind"
2762
- },
2763
- modelProperties: Object.assign(Object.assign({}, ServiceResourcePropertiesBase.type.modelProperties), { provisioningState: {
2764
- serializedName: "provisioningState",
2765
- readOnly: true,
2766
- type: {
2767
- name: "String"
2768
- }
2769
- }, serviceKind: {
2770
- serializedName: "serviceKind",
2771
- required: true,
2772
- type: {
2773
- name: "String"
2774
- }
2775
- }, serviceTypeName: {
2776
- serializedName: "serviceTypeName",
2777
- type: {
2778
- name: "String"
2779
- }
2780
- }, partitionDescription: {
2781
- serializedName: "partitionDescription",
2782
- type: {
2783
- name: "Composite",
2784
- className: "PartitionSchemeDescription"
2785
- }
2786
- }, servicePackageActivationMode: {
2787
- serializedName: "servicePackageActivationMode",
2788
- type: {
2789
- name: "String"
2790
- }
2791
- }, serviceDnsName: {
2792
- serializedName: "serviceDnsName",
2793
- type: {
2794
- name: "String"
2795
- }
2796
- } })
2797
- }
2798
- };
2799
- const ServiceResourceUpdateProperties = {
2800
- serializedName: "ServiceResourceUpdateProperties",
2801
- type: {
2802
- name: "Composite",
2803
- className: "ServiceResourceUpdateProperties",
2804
- uberParent: "ServiceResourcePropertiesBase",
2805
- polymorphicDiscriminator: {
2806
- serializedName: "serviceKind",
2807
- clientName: "serviceKind"
2808
- },
2809
- modelProperties: Object.assign(Object.assign({}, ServiceResourcePropertiesBase.type.modelProperties), { serviceKind: {
2810
- serializedName: "serviceKind",
2811
- required: true,
2812
- type: {
2813
- name: "String"
2814
- }
2815
- } })
2816
- }
2817
- };
2818
2753
  const NamedPartitionSchemeDescription = {
2819
2754
  serializedName: "Named",
2820
2755
  type: {
@@ -2880,6 +2815,71 @@ const UniformInt64RangePartitionSchemeDescription = {
2880
2815
  } })
2881
2816
  }
2882
2817
  };
2818
+ const ServiceResourceProperties = {
2819
+ serializedName: "ServiceResourceProperties",
2820
+ type: {
2821
+ name: "Composite",
2822
+ className: "ServiceResourceProperties",
2823
+ uberParent: "ServiceResourcePropertiesBase",
2824
+ polymorphicDiscriminator: {
2825
+ serializedName: "serviceKind",
2826
+ clientName: "serviceKind"
2827
+ },
2828
+ modelProperties: Object.assign(Object.assign({}, ServiceResourcePropertiesBase.type.modelProperties), { provisioningState: {
2829
+ serializedName: "provisioningState",
2830
+ readOnly: true,
2831
+ type: {
2832
+ name: "String"
2833
+ }
2834
+ }, serviceKind: {
2835
+ serializedName: "serviceKind",
2836
+ required: true,
2837
+ type: {
2838
+ name: "String"
2839
+ }
2840
+ }, serviceTypeName: {
2841
+ serializedName: "serviceTypeName",
2842
+ type: {
2843
+ name: "String"
2844
+ }
2845
+ }, partitionDescription: {
2846
+ serializedName: "partitionDescription",
2847
+ type: {
2848
+ name: "Composite",
2849
+ className: "PartitionSchemeDescription"
2850
+ }
2851
+ }, servicePackageActivationMode: {
2852
+ serializedName: "servicePackageActivationMode",
2853
+ type: {
2854
+ name: "String"
2855
+ }
2856
+ }, serviceDnsName: {
2857
+ serializedName: "serviceDnsName",
2858
+ type: {
2859
+ name: "String"
2860
+ }
2861
+ } })
2862
+ }
2863
+ };
2864
+ const ServiceResourceUpdateProperties = {
2865
+ serializedName: "ServiceResourceUpdateProperties",
2866
+ type: {
2867
+ name: "Composite",
2868
+ className: "ServiceResourceUpdateProperties",
2869
+ uberParent: "ServiceResourcePropertiesBase",
2870
+ polymorphicDiscriminator: {
2871
+ serializedName: "serviceKind",
2872
+ clientName: "serviceKind"
2873
+ },
2874
+ modelProperties: Object.assign(Object.assign({}, ServiceResourcePropertiesBase.type.modelProperties), { serviceKind: {
2875
+ serializedName: "serviceKind",
2876
+ required: true,
2877
+ type: {
2878
+ name: "String"
2879
+ }
2880
+ } })
2881
+ }
2882
+ };
2883
2883
  const StatefulServiceProperties = {
2884
2884
  serializedName: "Stateful",
2885
2885
  type: {
@@ -3014,21 +3014,19 @@ const StatelessServiceUpdateProperties = {
3014
3014
  }
3015
3015
  };
3016
3016
  let discriminators = {
3017
- "ServicePlacementPolicyDescription.undefined": ServicePlacementPolicyDescription,
3018
3017
  PartitionSchemeDescription: PartitionSchemeDescription,
3019
- "ServiceResourcePropertiesBase.ServiceResourceProperties": ServiceResourceProperties,
3020
- "ServiceResourcePropertiesBase.ServiceResourceUpdateProperties": ServiceResourceUpdateProperties,
3018
+ "ServicePlacementPolicyDescription.undefined": ServicePlacementPolicyDescription,
3021
3019
  "PartitionSchemeDescription.Named": NamedPartitionSchemeDescription,
3022
3020
  "PartitionSchemeDescription.Singleton": SingletonPartitionSchemeDescription,
3023
3021
  "PartitionSchemeDescription.UniformInt64Range": UniformInt64RangePartitionSchemeDescription,
3022
+ "ServiceResourcePropertiesBase.ServiceResourceProperties": ServiceResourceProperties,
3023
+ "ServiceResourcePropertiesBase.ServiceResourceUpdateProperties": ServiceResourceUpdateProperties,
3024
3024
  "ServiceResourcePropertiesBase.Stateful": StatefulServiceUpdateProperties,
3025
3025
  "ServiceResourcePropertiesBase.Stateless": StatelessServiceUpdateProperties
3026
3026
  };
3027
3027
 
3028
3028
  var Mappers = /*#__PURE__*/Object.freeze({
3029
3029
  __proto__: null,
3030
- Resource: Resource,
3031
- SystemData: SystemData,
3032
3030
  ClusterVersionDetails: ClusterVersionDetails,
3033
3031
  AzureActiveDirectory: AzureActiveDirectory,
3034
3032
  CertificateDescription: CertificateDescription,
@@ -3051,6 +3049,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
3051
3049
  ApplicationTypeVersionsCleanupPolicy: ApplicationTypeVersionsCleanupPolicy,
3052
3050
  Notification: Notification,
3053
3051
  NotificationTarget: NotificationTarget,
3052
+ Resource: Resource,
3053
+ SystemData: SystemData,
3054
3054
  ErrorModel: ErrorModel,
3055
3055
  ErrorModelError: ErrorModelError,
3056
3056
  ClusterUpdateParameters: ClusterUpdateParameters,
@@ -3075,11 +3075,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
3075
3075
  ApplicationMetricDescription: ApplicationMetricDescription,
3076
3076
  ApplicationUserAssignedIdentity: ApplicationUserAssignedIdentity,
3077
3077
  ApplicationResourceList: ApplicationResourceList,
3078
+ PartitionSchemeDescription: PartitionSchemeDescription,
3078
3079
  ServiceResourcePropertiesBase: ServiceResourcePropertiesBase,
3079
3080
  ServiceCorrelationDescription: ServiceCorrelationDescription,
3080
3081
  ServiceLoadMetricDescription: ServiceLoadMetricDescription,
3081
3082
  ServicePlacementPolicyDescription: ServicePlacementPolicyDescription,
3082
- PartitionSchemeDescription: PartitionSchemeDescription,
3083
3083
  ServiceResourceList: ServiceResourceList,
3084
3084
  Cluster: Cluster,
3085
3085
  ApplicationTypeResource: ApplicationTypeResource,
@@ -3089,11 +3089,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
3089
3089
  ServiceResource: ServiceResource,
3090
3090
  ServiceResourceUpdate: ServiceResourceUpdate,
3091
3091
  ApplicationResourceProperties: ApplicationResourceProperties,
3092
- ServiceResourceProperties: ServiceResourceProperties,
3093
- ServiceResourceUpdateProperties: ServiceResourceUpdateProperties,
3094
3092
  NamedPartitionSchemeDescription: NamedPartitionSchemeDescription,
3095
3093
  SingletonPartitionSchemeDescription: SingletonPartitionSchemeDescription,
3096
3094
  UniformInt64RangePartitionSchemeDescription: UniformInt64RangePartitionSchemeDescription,
3095
+ ServiceResourceProperties: ServiceResourceProperties,
3096
+ ServiceResourceUpdateProperties: ServiceResourceUpdateProperties,
3097
3097
  StatefulServiceProperties: StatefulServiceProperties,
3098
3098
  StatelessServiceProperties: StatelessServiceProperties,
3099
3099
  StatefulServiceUpdateProperties: StatefulServiceUpdateProperties,
@@ -5080,9 +5080,9 @@ const listOperationSpec$6 = {
5080
5080
  * Code generated by Microsoft (R) AutoRest Code Generator.
5081
5081
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5082
5082
  */
5083
- class ServiceFabricManagementClientContext extends coreClient.ServiceClient {
5083
+ class ServiceFabricManagementClient extends coreClient.ServiceClient {
5084
5084
  /**
5085
- * Initializes a new instance of the ServiceFabricManagementClientContext class.
5085
+ * Initializes a new instance of the ServiceFabricManagementClient class.
5086
5086
  * @param credentials Subscription credentials which uniquely identify client subscription.
5087
5087
  * @param subscriptionId The customer subscription identifier.
5088
5088
  * @param options The parameter options
@@ -5102,7 +5102,7 @@ class ServiceFabricManagementClientContext extends coreClient.ServiceClient {
5102
5102
  requestContentType: "application/json; charset=utf-8",
5103
5103
  credential: credentials
5104
5104
  };
5105
- const packageDetails = `azsdk-js-arm-servicefabric/2.0.0-beta.1`;
5105
+ const packageDetails = `azsdk-js-arm-servicefabric/2.0.0`;
5106
5106
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5107
5107
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
5108
5108
  : `${packageDetails}`;
@@ -5118,25 +5118,6 @@ class ServiceFabricManagementClientContext extends coreClient.ServiceClient {
5118
5118
  // Assigning values to Constant parameters
5119
5119
  this.$host = options.$host || "https://management.azure.com";
5120
5120
  this.apiVersion = options.apiVersion || "2021-06-01";
5121
- }
5122
- }
5123
-
5124
- /*
5125
- * Copyright (c) Microsoft Corporation.
5126
- * Licensed under the MIT License.
5127
- *
5128
- * Code generated by Microsoft (R) AutoRest Code Generator.
5129
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5130
- */
5131
- class ServiceFabricManagementClient extends ServiceFabricManagementClientContext {
5132
- /**
5133
- * Initializes a new instance of the ServiceFabricManagementClient class.
5134
- * @param credentials Subscription credentials which uniquely identify client subscription.
5135
- * @param subscriptionId The customer subscription identifier.
5136
- * @param options The parameter options
5137
- */
5138
- constructor(credentials, subscriptionId, options) {
5139
- super(credentials, subscriptionId, options);
5140
5121
  this.clusters = new ClustersImpl(this);
5141
5122
  this.clusterVersions = new ClusterVersionsImpl(this);
5142
5123
  this.operations = new OperationsImpl(this);
@@ -5148,5 +5129,4 @@ class ServiceFabricManagementClient extends ServiceFabricManagementClientContext
5148
5129
  }
5149
5130
 
5150
5131
  exports.ServiceFabricManagementClient = ServiceFabricManagementClient;
5151
- exports.ServiceFabricManagementClientContext = ServiceFabricManagementClientContext;
5152
5132
  //# sourceMappingURL=index.js.map