@azure/arm-servicefabric 2.0.2-alpha.20221214.2 → 2.1.1-alpha.20221216.4

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 (43) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/dist/index.js +152 -38
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/index.d.ts +1 -0
  7. package/dist-esm/src/index.d.ts.map +1 -1
  8. package/dist-esm/src/index.js +1 -0
  9. package/dist-esm/src/index.js.map +1 -1
  10. package/dist-esm/src/models/index.d.ts +83 -37
  11. package/dist-esm/src/models/index.d.ts.map +1 -1
  12. package/dist-esm/src/models/index.js +38 -0
  13. package/dist-esm/src/models/index.js.map +1 -1
  14. package/dist-esm/src/models/mappers.d.ts +5 -3
  15. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  16. package/dist-esm/src/models/mappers.js +14 -11
  17. package/dist-esm/src/models/mappers.js.map +1 -1
  18. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  19. package/dist-esm/src/operations/operations.js +19 -8
  20. package/dist-esm/src/operations/operations.js.map +1 -1
  21. package/dist-esm/src/pagingHelper.d.ts +13 -0
  22. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  23. package/dist-esm/src/pagingHelper.js +32 -0
  24. package/dist-esm/src/pagingHelper.js.map +1 -0
  25. package/dist-esm/src/serviceFabricManagementClient.d.ts +2 -0
  26. package/dist-esm/src/serviceFabricManagementClient.d.ts.map +1 -1
  27. package/dist-esm/src/serviceFabricManagementClient.js +49 -18
  28. package/dist-esm/src/serviceFabricManagementClient.js.map +1 -1
  29. package/dist-esm/test/{servicefabric.d.ts → servicefabric_examples.spec.d.ts} +1 -1
  30. package/dist-esm/test/servicefabric_examples.spec.d.ts.map +1 -0
  31. package/dist-esm/test/{servicefabric.js → servicefabric_examples.spec.js} +17 -19
  32. package/dist-esm/test/servicefabric_examples.spec.js.map +1 -0
  33. package/package.json +12 -8
  34. package/review/arm-servicefabric.api.md +84 -115
  35. package/src/index.ts +1 -0
  36. package/src/models/index.ts +91 -37
  37. package/src/models/mappers.ts +14 -11
  38. package/src/operations/operations.ts +21 -9
  39. package/src/pagingHelper.ts +39 -0
  40. package/src/serviceFabricManagementClient.ts +60 -20
  41. package/types/arm-servicefabric.d.ts +94 -37
  42. package/dist-esm/test/servicefabric.d.ts.map +0 -1
  43. package/dist-esm/test/servicefabric.js.map +0 -1
@@ -6,21 +6,18 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import { __awaiter } from "tslib";
9
- import { env, record, isPlaybackMode } from "@azure-tools/test-recorder";
10
- import * as assert from "assert";
11
- import { ClientSecretCredential } from "@azure/identity";
9
+ import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { assert } from "chai";
12
12
  import { ServiceFabricManagementClient } from "../src/serviceFabricManagementClient";
13
- const recorderEnvSetup = {
14
- replaceableVariables: {
15
- AZURE_CLIENT_ID: "azure_client_id",
16
- AZURE_CLIENT_SECRET: "azure_client_secret",
17
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
18
- SUBSCRIPTION_ID: "azure_subscription_id"
19
- },
20
- customizationsOnRecordings: [
21
- (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
22
- ],
23
- queryParametersToSkip: []
13
+ const replaceableVariables = {
14
+ AZURE_CLIENT_ID: "azure_client_id",
15
+ AZURE_CLIENT_SECRET: "azure_client_secret",
16
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
17
+ SUBSCRIPTION_ID: "azure_subscription_id"
18
+ };
19
+ const recorderOptions = {
20
+ envSetupForPlayback: replaceableVariables
24
21
  };
25
22
  export const testPollingOptions = {
26
23
  updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
@@ -35,11 +32,12 @@ describe("ServiceFabric test", () => {
35
32
  let applicationTypeName;
36
33
  beforeEach(function () {
37
34
  return __awaiter(this, void 0, void 0, function* () {
38
- recorder = record(this, recorderEnvSetup);
39
- subscriptionId = env.SUBSCRIPTION_ID;
35
+ recorder = new Recorder(this.currentTest);
36
+ yield recorder.start(recorderOptions);
37
+ subscriptionId = env.SUBSCRIPTION_ID || '';
40
38
  // This is an example of how the environment variables are used
41
- const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
42
- client = new ServiceFabricManagementClient(credential, subscriptionId);
39
+ const credential = createTestCredential();
40
+ client = new ServiceFabricManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
43
41
  location = "eastus";
44
42
  resourceGroup = "myjstest";
45
43
  clusterName = "myclusterxxxy";
@@ -203,4 +201,4 @@ describe("ServiceFabric test", () => {
203
201
  });
204
202
  });
205
203
  });
206
- //# sourceMappingURL=servicefabric.js.map
204
+ //# sourceMappingURL=servicefabric_examples.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"servicefabric_examples.spec.js","sourceRoot":"","sources":["../../test/servicefabric_examples.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAGrF,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CA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AC,CAAC;YACxI,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAA;YAC1E,MAAM,CAAC,KAAK,CAAC,MAAA,GAAG,CAAC,KAAK,0CAAE,MAAM,EAAE,CAAC,CAAC,CAAA;;KACnC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE;;YACzB,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;YAC3E,MAAM,GAAG,GAAG,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAA;YAC5E,MAAM,CAAC,KAAK,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,EAAE,CAAC,CAAC,CAAA;QAC9B,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for ServiceFabricManagementClient.",
6
- "version": "2.0.2-alpha.20221214.2",
6
+ "version": "2.1.1-alpha.20221216.4",
7
7
  "engines": {
8
8
  "node": ">=14.0.0"
9
9
  },
@@ -11,7 +11,7 @@
11
11
  "@azure/core-lro": "^2.2.0",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
- "@azure/core-client": "^1.5.0",
14
+ "@azure/core-client": "^1.6.1",
15
15
  "@azure/core-auth": "^1.3.0",
16
16
  "@azure/core-rest-pipeline": "^1.8.0",
17
17
  "tslib": "^2.2.0"
@@ -36,13 +36,18 @@
36
36
  "mkdirp": "^1.0.4",
37
37
  "rollup": "^2.66.1",
38
38
  "rollup-plugin-sourcemaps": "^0.6.3",
39
- "typescript": "~4.2.0",
39
+ "typescript": "~4.8.0",
40
40
  "uglify-js": "^3.4.9",
41
41
  "rimraf": "^3.0.0",
42
42
  "@azure/identity": "^2.0.1",
43
- "@azure-tools/test-recorder": "^1.0.0",
43
+ "@azure-tools/test-recorder": "^2.0.0",
44
+ "@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
44
45
  "mocha": "^7.1.1",
45
- "cross-env": "^7.0.2"
46
+ "@types/chai": "^4.2.8",
47
+ "chai": "^4.2.0",
48
+ "cross-env": "^7.0.2",
49
+ "@types/node": "^14.0.0",
50
+ "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
46
51
  },
47
52
  "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabric/arm-servicefabric",
48
53
  "repository": {
@@ -93,9 +98,8 @@
93
98
  "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
94
99
  "unit-test:browser": "echo skipped",
95
100
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
96
- "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
97
- "integration-test:browser": "echo skipped",
98
- "docs": "echo skipped"
101
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
102
+ "integration-test:browser": "echo skipped"
99
103
  },
100
104
  "sideEffects": false,
101
105
  "//metadata": {
@@ -38,21 +38,21 @@ export interface ApplicationMetricDescription {
38
38
  }
39
39
 
40
40
  // @public
41
- export type ApplicationResource = ProxyResource & {
41
+ export interface ApplicationResource extends ProxyResource {
42
42
  identity?: ManagedIdentity;
43
- typeVersion?: string;
43
+ managedIdentities?: ApplicationUserAssignedIdentity[];
44
+ maximumNodes?: number;
45
+ metrics?: ApplicationMetricDescription[];
46
+ minimumNodes?: number;
44
47
  parameters?: {
45
48
  [propertyName: string]: string;
46
49
  };
47
- upgradePolicy?: ApplicationUpgradePolicy;
48
- minimumNodes?: number;
49
- maximumNodes?: number;
50
- removeApplicationCapacity?: boolean;
51
- metrics?: ApplicationMetricDescription[];
52
- managedIdentities?: ApplicationUserAssignedIdentity[];
53
50
  readonly provisioningState?: string;
51
+ removeApplicationCapacity?: boolean;
54
52
  typeName?: string;
55
- };
53
+ typeVersion?: string;
54
+ upgradePolicy?: ApplicationUpgradePolicy;
55
+ }
56
56
 
57
57
  // @public
58
58
  export interface ApplicationResourceList {
@@ -62,24 +62,24 @@ export interface ApplicationResourceList {
62
62
  }
63
63
 
64
64
  // @public
65
- export type ApplicationResourceProperties = ApplicationResourceUpdateProperties & {
65
+ export interface ApplicationResourceProperties extends ApplicationResourceUpdateProperties {
66
66
  readonly provisioningState?: string;
67
67
  typeName?: string;
68
- };
68
+ }
69
69
 
70
70
  // @public
71
- export type ApplicationResourceUpdate = ProxyResource & {
72
- typeVersion?: string;
71
+ export interface ApplicationResourceUpdate extends ProxyResource {
72
+ managedIdentities?: ApplicationUserAssignedIdentity[];
73
+ maximumNodes?: number;
74
+ metrics?: ApplicationMetricDescription[];
75
+ minimumNodes?: number;
73
76
  parameters?: {
74
77
  [propertyName: string]: string;
75
78
  };
76
- upgradePolicy?: ApplicationUpgradePolicy;
77
- minimumNodes?: number;
78
- maximumNodes?: number;
79
79
  removeApplicationCapacity?: boolean;
80
- metrics?: ApplicationMetricDescription[];
81
- managedIdentities?: ApplicationUserAssignedIdentity[];
82
- };
80
+ typeVersion?: string;
81
+ upgradePolicy?: ApplicationUpgradePolicy;
82
+ }
83
83
 
84
84
  // @public
85
85
  export interface ApplicationResourceUpdateProperties {
@@ -146,9 +146,9 @@ export interface ApplicationsUpdateOptionalParams extends coreClient.OperationOp
146
146
  export type ApplicationsUpdateResponse = ApplicationResource;
147
147
 
148
148
  // @public
149
- export type ApplicationTypeResource = ProxyResource & {
149
+ export interface ApplicationTypeResource extends ProxyResource {
150
150
  readonly provisioningState?: string;
151
- };
151
+ }
152
152
 
153
153
  // @public
154
154
  export interface ApplicationTypeResourceList {
@@ -194,13 +194,13 @@ export interface ApplicationTypesListOptionalParams extends coreClient.Operation
194
194
  export type ApplicationTypesListResponse = ApplicationTypeResourceList;
195
195
 
196
196
  // @public
197
- export type ApplicationTypeVersionResource = ProxyResource & {
198
- readonly provisioningState?: string;
197
+ export interface ApplicationTypeVersionResource extends ProxyResource {
199
198
  appPackageUrl?: string;
200
199
  readonly defaultParameterList?: {
201
200
  [propertyName: string]: string;
202
201
  };
203
- };
202
+ readonly provisioningState?: string;
203
+ }
204
204
 
205
205
  // @public
206
206
  export interface ApplicationTypeVersionResourceList {
@@ -338,8 +338,9 @@ export interface ClientCertificateThumbprint {
338
338
  }
339
339
 
340
340
  // @public
341
- export type Cluster = Resource & {
341
+ export interface Cluster extends Resource {
342
342
  addOnFeatures?: AddOnFeatures[];
343
+ applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy;
343
344
  readonly availableClusterVersions?: ClusterVersionDetails[];
344
345
  azureActiveDirectory?: AzureActiveDirectory;
345
346
  certificate?: CertificateDescription;
@@ -353,25 +354,24 @@ export type Cluster = Resource & {
353
354
  diagnosticsStorageAccountConfig?: DiagnosticsStorageAccountConfig;
354
355
  eventStoreServiceEnabled?: boolean;
355
356
  fabricSettings?: SettingsSectionDescription[];
357
+ infrastructureServiceManager?: boolean;
356
358
  managementEndpoint?: string;
357
359
  nodeTypes?: NodeTypeDescription[];
360
+ notifications?: Notification_2[];
358
361
  readonly provisioningState?: ProvisioningState;
359
362
  reliabilityLevel?: ReliabilityLevel;
360
363
  reverseProxyCertificate?: CertificateDescription;
361
364
  reverseProxyCertificateCommonNames?: ServerCertificateCommonNames;
365
+ sfZonalUpgradeMode?: SfZonalUpgradeMode;
362
366
  upgradeDescription?: ClusterUpgradePolicy;
363
367
  upgradeMode?: UpgradeMode;
364
- applicationTypeVersionsCleanupPolicy?: ApplicationTypeVersionsCleanupPolicy;
368
+ upgradePauseEndTimestampUtc?: Date;
369
+ upgradePauseStartTimestampUtc?: Date;
370
+ upgradeWave?: ClusterUpgradeCadence;
365
371
  vmImage?: string;
366
- sfZonalUpgradeMode?: SfZonalUpgradeMode;
367
372
  vmssZonalUpgradeMode?: VmssZonalUpgradeMode;
368
- infrastructureServiceManager?: boolean;
369
- upgradeWave?: ClusterUpgradeCadence;
370
- upgradePauseStartTimestampUtc?: Date;
371
- upgradePauseEndTimestampUtc?: Date;
372
373
  waveUpgradePaused?: boolean;
373
- notifications?: Notification_2[];
374
- };
374
+ }
375
375
 
376
376
  // @public
377
377
  export interface ClusterCodeVersionsListResult {
@@ -607,15 +607,14 @@ export interface ErrorModelError {
607
607
  message?: string;
608
608
  }
609
609
 
610
+ // @public
611
+ export function getContinuationToken(page: unknown): string | undefined;
612
+
610
613
  // @public
611
614
  export enum KnownAddOnFeatures {
612
- // (undocumented)
613
615
  BackupRestoreService = "BackupRestoreService",
614
- // (undocumented)
615
616
  DnsService = "DnsService",
616
- // (undocumented)
617
617
  RepairManager = "RepairManager",
618
- // (undocumented)
619
618
  ResourceMonitorService = "ResourceMonitorService"
620
619
  }
621
620
 
@@ -633,33 +632,21 @@ export enum KnownArmUpgradeFailureAction {
633
632
 
634
633
  // @public
635
634
  export enum KnownClusterEnvironment {
636
- // (undocumented)
637
635
  Linux = "Linux",
638
- // (undocumented)
639
636
  Windows = "Windows"
640
637
  }
641
638
 
642
639
  // @public
643
640
  export enum KnownClusterState {
644
- // (undocumented)
645
641
  AutoScale = "AutoScale",
646
- // (undocumented)
647
642
  BaselineUpgrade = "BaselineUpgrade",
648
- // (undocumented)
649
643
  Deploying = "Deploying",
650
- // (undocumented)
651
644
  EnforcingClusterVersion = "EnforcingClusterVersion",
652
- // (undocumented)
653
645
  Ready = "Ready",
654
- // (undocumented)
655
646
  UpdatingInfrastructure = "UpdatingInfrastructure",
656
- // (undocumented)
657
647
  UpdatingUserCertificate = "UpdatingUserCertificate",
658
- // (undocumented)
659
648
  UpdatingUserConfiguration = "UpdatingUserConfiguration",
660
- // (undocumented)
661
649
  UpgradeServiceUnreachable = "UpgradeServiceUnreachable",
662
- // (undocumented)
663
650
  WaitingForNodes = "WaitingForNodes"
664
651
  }
665
652
 
@@ -672,19 +659,14 @@ export enum KnownClusterUpgradeCadence {
672
659
 
673
660
  // @public
674
661
  export enum KnownDurabilityLevel {
675
- // (undocumented)
676
662
  Bronze = "Bronze",
677
- // (undocumented)
678
663
  Gold = "Gold",
679
- // (undocumented)
680
664
  Silver = "Silver"
681
665
  }
682
666
 
683
667
  // @public
684
668
  export enum KnownEnum14 {
685
- // (undocumented)
686
669
  Linux = "Linux",
687
- // (undocumented)
688
670
  Windows = "Windows"
689
671
  }
690
672
 
@@ -723,27 +705,18 @@ export enum KnownPartitionScheme {
723
705
 
724
706
  // @public
725
707
  export enum KnownProvisioningState {
726
- // (undocumented)
727
708
  Canceled = "Canceled",
728
- // (undocumented)
729
709
  Failed = "Failed",
730
- // (undocumented)
731
710
  Succeeded = "Succeeded",
732
- // (undocumented)
733
711
  Updating = "Updating"
734
712
  }
735
713
 
736
714
  // @public
737
715
  export enum KnownReliabilityLevel {
738
- // (undocumented)
739
716
  Bronze = "Bronze",
740
- // (undocumented)
741
717
  Gold = "Gold",
742
- // (undocumented)
743
718
  None = "None",
744
- // (undocumented)
745
719
  Platinum = "Platinum",
746
- // (undocumented)
747
720
  Silver = "Silver"
748
721
  }
749
722
 
@@ -796,21 +769,13 @@ export enum KnownSfZonalUpgradeMode {
796
769
 
797
770
  // @public
798
771
  export enum KnownStoreName {
799
- // (undocumented)
800
772
  AddressBook = "AddressBook",
801
- // (undocumented)
802
773
  AuthRoot = "AuthRoot",
803
- // (undocumented)
804
774
  CertificateAuthority = "CertificateAuthority",
805
- // (undocumented)
806
775
  Disallowed = "Disallowed",
807
- // (undocumented)
808
776
  My = "My",
809
- // (undocumented)
810
777
  Root = "Root",
811
- // (undocumented)
812
778
  TrustedPeople = "TrustedPeople",
813
- // (undocumented)
814
779
  TrustedPublisher = "TrustedPublisher"
815
780
  }
816
781
 
@@ -843,11 +808,11 @@ export type ManagedIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAss
843
808
  export type MoveCost = string;
844
809
 
845
810
  // @public
846
- export type NamedPartitionSchemeDescription = PartitionSchemeDescription & {
847
- partitionScheme: "Named";
811
+ export interface NamedPartitionSchemeDescription extends PartitionSchemeDescription {
848
812
  count: number;
849
813
  names: string[];
850
- };
814
+ partitionScheme: "Named";
815
+ }
851
816
 
852
817
  // @public
853
818
  export interface NodeTypeDescription {
@@ -1044,26 +1009,26 @@ export type ServiceLoadMetricWeight = string;
1044
1009
 
1045
1010
  // @public
1046
1011
  export interface ServicePlacementPolicyDescription {
1047
- type: "undefined";
1012
+ type: "ServicePlacementPolicyDescription";
1048
1013
  }
1049
1014
 
1050
1015
  // @public
1051
1016
  export type ServicePlacementPolicyType = string;
1052
1017
 
1053
1018
  // @public
1054
- export type ServiceResource = ProxyResource & {
1055
- placementConstraints?: string;
1019
+ export interface ServiceResource extends ProxyResource {
1056
1020
  correlationScheme?: ServiceCorrelationDescription[];
1057
- serviceLoadMetrics?: ServiceLoadMetricDescription[];
1058
- servicePlacementPolicies?: ServicePlacementPolicyDescription[];
1059
1021
  defaultMoveCost?: MoveCost;
1022
+ partitionDescription?: PartitionSchemeDescriptionUnion;
1023
+ placementConstraints?: string;
1060
1024
  readonly provisioningState?: string;
1025
+ serviceDnsName?: string;
1061
1026
  serviceKind?: ServiceKind;
1062
- serviceTypeName?: string;
1063
- partitionDescription?: PartitionSchemeDescriptionUnion;
1027
+ serviceLoadMetrics?: ServiceLoadMetricDescription[];
1064
1028
  servicePackageActivationMode?: ArmServicePackageActivationMode;
1065
- serviceDnsName?: string;
1066
- };
1029
+ servicePlacementPolicies?: ServicePlacementPolicyDescription[];
1030
+ serviceTypeName?: string;
1031
+ }
1067
1032
 
1068
1033
  // @public
1069
1034
  export interface ServiceResourceList {
@@ -1073,14 +1038,14 @@ export interface ServiceResourceList {
1073
1038
  }
1074
1039
 
1075
1040
  // @public
1076
- export type ServiceResourceProperties = ServiceResourcePropertiesBase & {
1041
+ export interface ServiceResourceProperties extends ServiceResourcePropertiesBase {
1042
+ partitionDescription?: PartitionSchemeDescriptionUnion;
1077
1043
  readonly provisioningState?: string;
1044
+ serviceDnsName?: string;
1078
1045
  serviceKind: ServiceKind;
1079
- serviceTypeName?: string;
1080
- partitionDescription?: PartitionSchemeDescriptionUnion;
1081
1046
  servicePackageActivationMode?: ArmServicePackageActivationMode;
1082
- serviceDnsName?: string;
1083
- };
1047
+ serviceTypeName?: string;
1048
+ }
1084
1049
 
1085
1050
  // @public
1086
1051
  export interface ServiceResourcePropertiesBase {
@@ -1095,19 +1060,19 @@ export interface ServiceResourcePropertiesBase {
1095
1060
  export type ServiceResourcePropertiesUnion = ServiceResourceProperties | StatefulServiceProperties | StatelessServiceProperties;
1096
1061
 
1097
1062
  // @public
1098
- export type ServiceResourceUpdate = ProxyResource & {
1099
- placementConstraints?: string;
1063
+ export interface ServiceResourceUpdate extends ProxyResource {
1100
1064
  correlationScheme?: ServiceCorrelationDescription[];
1101
- serviceLoadMetrics?: ServiceLoadMetricDescription[];
1102
- servicePlacementPolicies?: ServicePlacementPolicyDescription[];
1103
1065
  defaultMoveCost?: MoveCost;
1066
+ placementConstraints?: string;
1104
1067
  serviceKind?: ServiceKind;
1105
- };
1068
+ serviceLoadMetrics?: ServiceLoadMetricDescription[];
1069
+ servicePlacementPolicies?: ServicePlacementPolicyDescription[];
1070
+ }
1106
1071
 
1107
1072
  // @public
1108
- export type ServiceResourceUpdateProperties = ServiceResourcePropertiesBase & {
1073
+ export interface ServiceResourceUpdateProperties extends ServiceResourcePropertiesBase {
1109
1074
  serviceKind: ServiceKind;
1110
- };
1075
+ }
1111
1076
 
1112
1077
  // @public (undocumented)
1113
1078
  export type ServiceResourceUpdatePropertiesUnion = ServiceResourceUpdateProperties | StatefulServiceUpdateProperties | StatelessServiceUpdateProperties;
@@ -1188,40 +1153,44 @@ export interface SettingsSectionDescription {
1188
1153
  export type SfZonalUpgradeMode = string;
1189
1154
 
1190
1155
  // @public
1191
- export type SingletonPartitionSchemeDescription = PartitionSchemeDescription & {
1156
+ export interface SingletonPartitionSchemeDescription extends PartitionSchemeDescription {
1192
1157
  partitionScheme: "Singleton";
1193
- };
1158
+ }
1194
1159
 
1195
1160
  // @public
1196
- export type StatefulServiceProperties = ServiceResourceProperties & {
1161
+ export interface StatefulServiceProperties extends ServiceResourceProperties {
1197
1162
  hasPersistedState?: boolean;
1198
- targetReplicaSetSize?: number;
1199
1163
  minReplicaSetSize?: number;
1200
- replicaRestartWaitDuration?: Date;
1201
1164
  quorumLossWaitDuration?: Date;
1165
+ replicaRestartWaitDuration?: Date;
1166
+ serviceKind: "Stateful";
1202
1167
  standByReplicaKeepDuration?: Date;
1203
- };
1168
+ targetReplicaSetSize?: number;
1169
+ }
1204
1170
 
1205
1171
  // @public
1206
- export type StatefulServiceUpdateProperties = ServiceResourceUpdateProperties & {
1207
- targetReplicaSetSize?: number;
1172
+ export interface StatefulServiceUpdateProperties extends ServiceResourceUpdateProperties {
1208
1173
  minReplicaSetSize?: number;
1209
- replicaRestartWaitDuration?: Date;
1210
1174
  quorumLossWaitDuration?: Date;
1175
+ replicaRestartWaitDuration?: Date;
1176
+ serviceKind: "Stateful";
1211
1177
  standByReplicaKeepDuration?: Date;
1212
- };
1178
+ targetReplicaSetSize?: number;
1179
+ }
1213
1180
 
1214
1181
  // @public
1215
- export type StatelessServiceProperties = ServiceResourceProperties & {
1216
- instanceCount?: number;
1182
+ export interface StatelessServiceProperties extends ServiceResourceProperties {
1217
1183
  instanceCloseDelayDuration?: string;
1218
- };
1184
+ instanceCount?: number;
1185
+ serviceKind: "Stateless";
1186
+ }
1219
1187
 
1220
1188
  // @public
1221
- export type StatelessServiceUpdateProperties = ServiceResourceUpdateProperties & {
1222
- instanceCount?: number;
1189
+ export interface StatelessServiceUpdateProperties extends ServiceResourceUpdateProperties {
1223
1190
  instanceCloseDelayDuration?: string;
1224
- };
1191
+ instanceCount?: number;
1192
+ serviceKind: "Stateless";
1193
+ }
1225
1194
 
1226
1195
  // @public
1227
1196
  export type StoreName = string;
@@ -1237,12 +1206,12 @@ export interface SystemData {
1237
1206
  }
1238
1207
 
1239
1208
  // @public
1240
- export type UniformInt64RangePartitionSchemeDescription = PartitionSchemeDescription & {
1241
- partitionScheme: "UniformInt64Range";
1209
+ export interface UniformInt64RangePartitionSchemeDescription extends PartitionSchemeDescription {
1242
1210
  count: number;
1243
- lowKey: string;
1244
1211
  highKey: string;
1245
- };
1212
+ lowKey: string;
1213
+ partitionScheme: "UniformInt64Range";
1214
+ }
1246
1215
 
1247
1216
  // @public
1248
1217
  export interface UpgradableVersionPathResult {
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
10
11
  export * from "./models";
11
12
  export { ServiceFabricManagementClient } from "./serviceFabricManagementClient";
12
13
  export * from "./operationsInterfaces";