@azure/arm-containerservicefleet 1.0.0-beta.2 → 1.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.
- package/CHANGELOG.md +2 -42
- package/README.md +1 -1
- package/dist/index.js +581 -188
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/fleetMembersCreateSample.js +1 -1
- package/dist-esm/samples-dev/fleetMembersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/fleetMembersGetSample.js +1 -1
- package/dist-esm/samples-dev/fleetMembersListByFleetSample.js +1 -1
- package/dist-esm/samples-dev/fleetMembersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.js +51 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesGetSample.js +40 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesListByFleetSample.d.ts +2 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesListByFleetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesListByFleetSample.js +60 -0
- package/dist-esm/samples-dev/fleetUpdateStrategiesListByFleetSample.js.map +1 -0
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.js +1 -2
- package/dist-esm/samples-dev/fleetsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/fleetsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/fleetsGetSample.js +1 -1
- package/dist-esm/samples-dev/fleetsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/fleetsListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/fleetsListCredentialsSample.js +1 -1
- package/dist-esm/samples-dev/fleetsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.js +3 -2
- package/dist-esm/samples-dev/updateRunsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/updateRunsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/updateRunsGetSample.js +1 -1
- package/dist-esm/samples-dev/updateRunsListByFleetSample.js +1 -1
- package/dist-esm/samples-dev/updateRunsStartSample.js +1 -1
- package/dist-esm/samples-dev/updateRunsStopSample.js +1 -1
- package/dist-esm/src/containerServiceFleetClient.d.ts +2 -1
- package/dist-esm/src/containerServiceFleetClient.d.ts.map +1 -1
- package/dist-esm/src/containerServiceFleetClient.js +4 -3
- package/dist-esm/src/containerServiceFleetClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +120 -52
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -3
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +91 -93
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +21 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/fleetUpdateStrategies.d.ts +81 -0
- package/dist-esm/src/operations/fleetUpdateStrategies.d.ts.map +1 -0
- package/dist-esm/src/operations/fleetUpdateStrategies.js +374 -0
- package/dist-esm/src/operations/fleetUpdateStrategies.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/fleetUpdateStrategies.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/fleetUpdateStrategies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/fleetUpdateStrategies.js +9 -0
- package/dist-esm/src/operationsInterfaces/fleetUpdateStrategies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/test/containerservicefleet_operations_test.spec.js +1 -2
- package/dist-esm/test/containerservicefleet_operations_test.spec.js.map +1 -1
- package/package.json +11 -15
- package/review/arm-containerservicefleet.api.md +86 -22
- package/src/containerServiceFleetClient.ts +8 -4
- package/src/models/index.ts +137 -55
- package/src/models/mappers.ts +101 -99
- package/src/models/parameters.ts +24 -2
- package/src/operations/fleetUpdateStrategies.ts +509 -0
- package/src/operations/index.ts +1 -0
- package/src/operationsInterfaces/fleetUpdateStrategies.ts +109 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/types/arm-containerservicefleet.d.ts +189 -55
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -13,22 +13,6 @@ import { SimplePollerLike } from '@azure/core-lro';
|
|
|
13
13
|
*/
|
|
14
14
|
export declare type ActionType = string;
|
|
15
15
|
|
|
16
|
-
/** Agent profile for the Fleet hub. */
|
|
17
|
-
export declare interface AgentProfile {
|
|
18
|
-
/** The ID of the subnet which the Fleet hub node will join on startup. If this is not specified, a vnet and subnet will be generated and used. */
|
|
19
|
-
subnetId?: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** Access profile for the Fleet hub API server. */
|
|
23
|
-
export declare interface APIServerAccessProfile {
|
|
24
|
-
/** Whether to create the Fleet hub as a private cluster or not. */
|
|
25
|
-
enablePrivateCluster?: boolean;
|
|
26
|
-
/** Whether to enable apiserver vnet integration for the Fleet hub or not. */
|
|
27
|
-
enableVnetIntegration?: boolean;
|
|
28
|
-
/** The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet. */
|
|
29
|
-
subnetId?: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
16
|
export declare class ContainerServiceFleetClient extends coreClient.ServiceClient {
|
|
33
17
|
$host: string;
|
|
34
18
|
apiVersion: string;
|
|
@@ -46,6 +30,7 @@ export declare class ContainerServiceFleetClient extends coreClient.ServiceClien
|
|
|
46
30
|
fleets: Fleets;
|
|
47
31
|
fleetMembers: FleetMembers;
|
|
48
32
|
updateRuns: UpdateRuns;
|
|
33
|
+
fleetUpdateStrategies: FleetUpdateStrategies;
|
|
49
34
|
}
|
|
50
35
|
|
|
51
36
|
/** Optional parameters. */
|
|
@@ -133,8 +118,6 @@ export declare interface Fleet extends TrackedResource {
|
|
|
133
118
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
134
119
|
*/
|
|
135
120
|
readonly provisioningState?: FleetProvisioningState;
|
|
136
|
-
/** The FleetHubProfile configures the Fleet's hub. */
|
|
137
|
-
hubProfile?: FleetHubProfile;
|
|
138
121
|
}
|
|
139
122
|
|
|
140
123
|
/** One credential result item. */
|
|
@@ -160,26 +143,6 @@ export declare interface FleetCredentialResults {
|
|
|
160
143
|
readonly kubeconfigs?: FleetCredentialResult[];
|
|
161
144
|
}
|
|
162
145
|
|
|
163
|
-
/** The FleetHubProfile configures the fleet hub. */
|
|
164
|
-
export declare interface FleetHubProfile {
|
|
165
|
-
/** DNS prefix used to create the FQDN for the Fleet hub. */
|
|
166
|
-
dnsPrefix?: string;
|
|
167
|
-
/** The access profile for the Fleet hub API server. */
|
|
168
|
-
apiServerAccessProfile?: APIServerAccessProfile;
|
|
169
|
-
/** The agent profile for the Fleet hub. */
|
|
170
|
-
agentProfile?: AgentProfile;
|
|
171
|
-
/**
|
|
172
|
-
* The FQDN of the Fleet hub.
|
|
173
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
174
|
-
*/
|
|
175
|
-
readonly fqdn?: string;
|
|
176
|
-
/**
|
|
177
|
-
* The Kubernetes version of the Fleet hub.
|
|
178
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
179
|
-
*/
|
|
180
|
-
readonly kubernetesVersion?: string;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
146
|
/** The response of a Fleet list operation. */
|
|
184
147
|
export declare interface FleetListResult {
|
|
185
148
|
/** The Fleet items on this page */
|
|
@@ -587,6 +550,154 @@ export declare interface FleetsUpdateOptionalParams extends coreClient.Operation
|
|
|
587
550
|
/** Contains response data for the update operation. */
|
|
588
551
|
export declare type FleetsUpdateResponse = Fleet;
|
|
589
552
|
|
|
553
|
+
/** Interface representing a FleetUpdateStrategies. */
|
|
554
|
+
export declare interface FleetUpdateStrategies {
|
|
555
|
+
/**
|
|
556
|
+
* List FleetUpdateStrategy resources by Fleet
|
|
557
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
558
|
+
* @param fleetName The name of the Fleet resource.
|
|
559
|
+
* @param options The options parameters.
|
|
560
|
+
*/
|
|
561
|
+
listByFleet(resourceGroupName: string, fleetName: string, options?: FleetUpdateStrategiesListByFleetOptionalParams): PagedAsyncIterableIterator<FleetUpdateStrategy>;
|
|
562
|
+
/**
|
|
563
|
+
* Get a FleetUpdateStrategy
|
|
564
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
565
|
+
* @param fleetName The name of the Fleet resource.
|
|
566
|
+
* @param updateStrategyName The name of the UpdateStrategy resource.
|
|
567
|
+
* @param options The options parameters.
|
|
568
|
+
*/
|
|
569
|
+
get(resourceGroupName: string, fleetName: string, updateStrategyName: string, options?: FleetUpdateStrategiesGetOptionalParams): Promise<FleetUpdateStrategiesGetResponse>;
|
|
570
|
+
/**
|
|
571
|
+
* Create a FleetUpdateStrategy
|
|
572
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
573
|
+
* @param fleetName The name of the Fleet resource.
|
|
574
|
+
* @param updateStrategyName The name of the UpdateStrategy resource.
|
|
575
|
+
* @param resource Resource create parameters.
|
|
576
|
+
* @param options The options parameters.
|
|
577
|
+
*/
|
|
578
|
+
beginCreateOrUpdate(resourceGroupName: string, fleetName: string, updateStrategyName: string, resource: FleetUpdateStrategy, options?: FleetUpdateStrategiesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FleetUpdateStrategiesCreateOrUpdateResponse>, FleetUpdateStrategiesCreateOrUpdateResponse>>;
|
|
579
|
+
/**
|
|
580
|
+
* Create a FleetUpdateStrategy
|
|
581
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
582
|
+
* @param fleetName The name of the Fleet resource.
|
|
583
|
+
* @param updateStrategyName The name of the UpdateStrategy resource.
|
|
584
|
+
* @param resource Resource create parameters.
|
|
585
|
+
* @param options The options parameters.
|
|
586
|
+
*/
|
|
587
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, fleetName: string, updateStrategyName: string, resource: FleetUpdateStrategy, options?: FleetUpdateStrategiesCreateOrUpdateOptionalParams): Promise<FleetUpdateStrategiesCreateOrUpdateResponse>;
|
|
588
|
+
/**
|
|
589
|
+
* Delete a FleetUpdateStrategy
|
|
590
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
591
|
+
* @param fleetName The name of the Fleet resource.
|
|
592
|
+
* @param updateStrategyName The name of the UpdateStrategy resource.
|
|
593
|
+
* @param options The options parameters.
|
|
594
|
+
*/
|
|
595
|
+
beginDelete(resourceGroupName: string, fleetName: string, updateStrategyName: string, options?: FleetUpdateStrategiesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
596
|
+
/**
|
|
597
|
+
* Delete a FleetUpdateStrategy
|
|
598
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
599
|
+
* @param fleetName The name of the Fleet resource.
|
|
600
|
+
* @param updateStrategyName The name of the UpdateStrategy resource.
|
|
601
|
+
* @param options The options parameters.
|
|
602
|
+
*/
|
|
603
|
+
beginDeleteAndWait(resourceGroupName: string, fleetName: string, updateStrategyName: string, options?: FleetUpdateStrategiesDeleteOptionalParams): Promise<void>;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/** Defines headers for FleetUpdateStrategies_createOrUpdate operation. */
|
|
607
|
+
export declare interface FleetUpdateStrategiesCreateOrUpdateHeaders {
|
|
608
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
609
|
+
retryAfter?: number;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/** Optional parameters. */
|
|
613
|
+
export declare interface FleetUpdateStrategiesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
614
|
+
/** The request should only proceed if an entity matches this string. */
|
|
615
|
+
ifMatch?: string;
|
|
616
|
+
/** The request should only proceed if no entity matches this string. */
|
|
617
|
+
ifNoneMatch?: string;
|
|
618
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
619
|
+
updateIntervalInMs?: number;
|
|
620
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
621
|
+
resumeFrom?: string;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/** Contains response data for the createOrUpdate operation. */
|
|
625
|
+
export declare type FleetUpdateStrategiesCreateOrUpdateResponse = FleetUpdateStrategy;
|
|
626
|
+
|
|
627
|
+
/** Defines headers for FleetUpdateStrategies_delete operation. */
|
|
628
|
+
export declare interface FleetUpdateStrategiesDeleteHeaders {
|
|
629
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
630
|
+
retryAfter?: number;
|
|
631
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
632
|
+
location?: string;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/** Optional parameters. */
|
|
636
|
+
export declare interface FleetUpdateStrategiesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
637
|
+
/** The request should only proceed if an entity matches this string. */
|
|
638
|
+
ifMatch?: string;
|
|
639
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
640
|
+
updateIntervalInMs?: number;
|
|
641
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
642
|
+
resumeFrom?: string;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/** Optional parameters. */
|
|
646
|
+
export declare interface FleetUpdateStrategiesGetOptionalParams extends coreClient.OperationOptions {
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/** Contains response data for the get operation. */
|
|
650
|
+
export declare type FleetUpdateStrategiesGetResponse = FleetUpdateStrategy;
|
|
651
|
+
|
|
652
|
+
/** Optional parameters. */
|
|
653
|
+
export declare interface FleetUpdateStrategiesListByFleetNextOptionalParams extends coreClient.OperationOptions {
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/** Contains response data for the listByFleetNext operation. */
|
|
657
|
+
export declare type FleetUpdateStrategiesListByFleetNextResponse = FleetUpdateStrategyListResult;
|
|
658
|
+
|
|
659
|
+
/** Optional parameters. */
|
|
660
|
+
export declare interface FleetUpdateStrategiesListByFleetOptionalParams extends coreClient.OperationOptions {
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/** Contains response data for the listByFleet operation. */
|
|
664
|
+
export declare type FleetUpdateStrategiesListByFleetResponse = FleetUpdateStrategyListResult;
|
|
665
|
+
|
|
666
|
+
/** Defines a multi-stage process to perform update operations across members of a Fleet. */
|
|
667
|
+
export declare interface FleetUpdateStrategy extends ProxyResource {
|
|
668
|
+
/**
|
|
669
|
+
* If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
|
|
670
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
671
|
+
*/
|
|
672
|
+
readonly eTag?: string;
|
|
673
|
+
/**
|
|
674
|
+
* The provisioning state of the UpdateStrategy resource.
|
|
675
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
676
|
+
*/
|
|
677
|
+
readonly provisioningState?: FleetUpdateStrategyProvisioningState;
|
|
678
|
+
/** Defines the update sequence of the clusters. */
|
|
679
|
+
strategy?: UpdateRunStrategy;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/** The response of a FleetUpdateStrategy list operation. */
|
|
683
|
+
export declare interface FleetUpdateStrategyListResult {
|
|
684
|
+
/** The FleetUpdateStrategy items on this page */
|
|
685
|
+
value: FleetUpdateStrategy[];
|
|
686
|
+
/** The link to the next page of items */
|
|
687
|
+
nextLink?: string;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Defines values for FleetUpdateStrategyProvisioningState. \
|
|
692
|
+
* {@link KnownFleetUpdateStrategyProvisioningState} can be used interchangeably with FleetUpdateStrategyProvisioningState,
|
|
693
|
+
* this enum contains the known values that the service supports.
|
|
694
|
+
* ### Known values supported by the service
|
|
695
|
+
* **Succeeded**: Resource has been created. \
|
|
696
|
+
* **Failed**: Resource creation failed. \
|
|
697
|
+
* **Canceled**: Resource creation was canceled.
|
|
698
|
+
*/
|
|
699
|
+
export declare type FleetUpdateStrategyProvisioningState = string;
|
|
700
|
+
|
|
590
701
|
/**
|
|
591
702
|
* Given the last `.value` produced by the `byPage` iterator,
|
|
592
703
|
* returns a continuation token that can be used to begin paging from
|
|
@@ -646,6 +757,16 @@ export declare enum KnownFleetProvisioningState {
|
|
|
646
757
|
Deleting = "Deleting"
|
|
647
758
|
}
|
|
648
759
|
|
|
760
|
+
/** Known values of {@link FleetUpdateStrategyProvisioningState} that the service accepts. */
|
|
761
|
+
export declare enum KnownFleetUpdateStrategyProvisioningState {
|
|
762
|
+
/** Resource has been created. */
|
|
763
|
+
Succeeded = "Succeeded",
|
|
764
|
+
/** Resource creation failed. */
|
|
765
|
+
Failed = "Failed",
|
|
766
|
+
/** Resource creation was canceled. */
|
|
767
|
+
Canceled = "Canceled"
|
|
768
|
+
}
|
|
769
|
+
|
|
649
770
|
/** Known values of {@link ManagedClusterUpgradeType} that the service accepts. */
|
|
650
771
|
export declare enum KnownManagedClusterUpgradeType {
|
|
651
772
|
/** Full upgrades the control plane and all agent pools of the target ManagedClusters. */
|
|
@@ -992,9 +1113,8 @@ export declare interface TrackedResource extends Resource {
|
|
|
992
1113
|
/** A group to be updated. */
|
|
993
1114
|
export declare interface UpdateGroup {
|
|
994
1115
|
/**
|
|
995
|
-
*
|
|
996
|
-
* It
|
|
997
|
-
* A group can only appear once across all UpdateStages in the UpdateRun.
|
|
1116
|
+
* Name of the group.
|
|
1117
|
+
* It must match a group name of an existing fleet member.
|
|
998
1118
|
*/
|
|
999
1119
|
name: string;
|
|
1000
1120
|
}
|
|
@@ -1018,7 +1138,7 @@ export declare interface UpdateGroupStatus {
|
|
|
1018
1138
|
readonly members?: MemberUpdateStatus[];
|
|
1019
1139
|
}
|
|
1020
1140
|
|
|
1021
|
-
/**
|
|
1141
|
+
/** A multi-stage process to perform update operations across members of a Fleet. */
|
|
1022
1142
|
export declare interface UpdateRun extends ProxyResource {
|
|
1023
1143
|
/**
|
|
1024
1144
|
* If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
|
|
@@ -1030,6 +1150,21 @@ export declare interface UpdateRun extends ProxyResource {
|
|
|
1030
1150
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1031
1151
|
*/
|
|
1032
1152
|
readonly provisioningState?: UpdateRunProvisioningState;
|
|
1153
|
+
/**
|
|
1154
|
+
* The resource id of the FleetUpdateStrategy resource to reference.
|
|
1155
|
+
*
|
|
1156
|
+
* When creating a new run, there are three ways to define a strategy for the run:
|
|
1157
|
+
* 1. Define a new strategy in place: Set the "strategy" field.
|
|
1158
|
+
* 2. Use an existing strategy: Set the "updateStrategyId" field. (since 2023-08-15-preview)
|
|
1159
|
+
* 3. Use the default strategy to update all the members one by one: Leave both "updateStrategyId" and "strategy" unset. (since 2023-08-15-preview)
|
|
1160
|
+
*
|
|
1161
|
+
* Setting both "updateStrategyId" and "strategy" is invalid.
|
|
1162
|
+
*
|
|
1163
|
+
* UpdateRuns created by "updateStrategyId" snapshot the referenced UpdateStrategy at the time of creation and store it in the "strategy" field.
|
|
1164
|
+
* Subsequent changes to the referenced FleetUpdateStrategy resource do not propagate.
|
|
1165
|
+
* UpdateRunStrategy changes can be made directly on the "strategy" field before launching the UpdateRun.
|
|
1166
|
+
*/
|
|
1167
|
+
updateStrategyId?: string;
|
|
1033
1168
|
/**
|
|
1034
1169
|
* The strategy defines the order in which the clusters will be updated.
|
|
1035
1170
|
* If not set, all members will be updated sequentially. The UpdateRun status will show a single UpdateStage and a single UpdateGroup targeting all members.
|
|
@@ -1270,26 +1405,25 @@ export declare interface UpdateRunStatus {
|
|
|
1270
1405
|
readonly nodeImageSelection?: NodeImageSelectionStatus;
|
|
1271
1406
|
}
|
|
1272
1407
|
|
|
1273
|
-
/**
|
|
1408
|
+
/**
|
|
1409
|
+
* Defines the update sequence of the clusters via stages and groups.
|
|
1410
|
+
*
|
|
1411
|
+
* Stages within a run are executed sequentially one after another.
|
|
1412
|
+
* Groups within a stage are executed in parallel.
|
|
1413
|
+
* Member clusters within a group are updated sequentially one after another.
|
|
1414
|
+
*
|
|
1415
|
+
* A valid strategy contains no duplicate groups within or across stages.
|
|
1416
|
+
*/
|
|
1274
1417
|
export declare interface UpdateRunStrategy {
|
|
1275
|
-
/** The list of stages that compose this update run. */
|
|
1418
|
+
/** The list of stages that compose this update run. Min size: 1. */
|
|
1276
1419
|
stages: UpdateStage[];
|
|
1277
1420
|
}
|
|
1278
1421
|
|
|
1279
|
-
/**
|
|
1280
|
-
* Contains the groups to be updated by an UpdateRun.
|
|
1281
|
-
* Update order:
|
|
1282
|
-
* - Sequential between stages: Stages run sequentially. The previous stage must complete before the next one starts.
|
|
1283
|
-
* - Parallel within a stage: Groups within a stage run in parallel.
|
|
1284
|
-
* - Sequential within a group: Clusters within a group are updated sequentially.
|
|
1285
|
-
*/
|
|
1422
|
+
/** Defines a stage which contains the groups to update and the steps to take (e.g., wait for a time period) before starting the next stage. */
|
|
1286
1423
|
export declare interface UpdateStage {
|
|
1287
1424
|
/** The name of the stage. Must be unique within the UpdateRun. */
|
|
1288
1425
|
name: string;
|
|
1289
|
-
/**
|
|
1290
|
-
* A list of group names that compose the stage.
|
|
1291
|
-
* The groups will be updated in parallel. Each group name can only appear once in the UpdateRun.
|
|
1292
|
-
*/
|
|
1426
|
+
/** Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1. */
|
|
1293
1427
|
groups?: UpdateGroup[];
|
|
1294
1428
|
/** The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified. */
|
|
1295
1429
|
afterStageWaitInSeconds?: number;
|
package/rollup.config.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
-
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
-
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
-
import json from "@rollup/plugin-json";
|
|
14
|
-
|
|
15
|
-
import nodeBuiltins from "builtin-modules";
|
|
16
|
-
|
|
17
|
-
// #region Warning Handler
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
-
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
function ignoreNiseSinonEval(warning) {
|
|
25
|
-
return (
|
|
26
|
-
warning.code === "EVAL" &&
|
|
27
|
-
warning.id &&
|
|
28
|
-
(warning.id.includes("node_modules/nise") ||
|
|
29
|
-
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function ignoreChaiCircularDependency(warning) {
|
|
34
|
-
return (
|
|
35
|
-
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
-
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Construct a warning handler for the shared rollup configuration
|
|
44
|
-
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
-
*/
|
|
46
|
-
function makeOnWarnForTesting() {
|
|
47
|
-
return (warning, warn) => {
|
|
48
|
-
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
-
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
-
warn(warning);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// #endregion
|
|
56
|
-
|
|
57
|
-
function makeBrowserTestConfig() {
|
|
58
|
-
const config = {
|
|
59
|
-
input: {
|
|
60
|
-
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
-
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
-
},
|
|
63
|
-
output: {
|
|
64
|
-
file: `dist-test/index.browser.js`,
|
|
65
|
-
format: "umd",
|
|
66
|
-
sourcemap: true
|
|
67
|
-
},
|
|
68
|
-
preserveSymlinks: false,
|
|
69
|
-
plugins: [
|
|
70
|
-
multiEntry({ exports: false }),
|
|
71
|
-
nodeResolve({
|
|
72
|
-
mainFields: ["module", "browser"]
|
|
73
|
-
}),
|
|
74
|
-
cjs(),
|
|
75
|
-
json(),
|
|
76
|
-
sourcemaps()
|
|
77
|
-
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
-
],
|
|
79
|
-
onwarn: makeOnWarnForTesting(),
|
|
80
|
-
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
-
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
-
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
-
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
-
treeshake: false
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
return config;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const defaultConfigurationOptions = {
|
|
91
|
-
disableBrowserBundle: false
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export function makeConfig(pkg, options) {
|
|
95
|
-
options = {
|
|
96
|
-
...defaultConfigurationOptions,
|
|
97
|
-
...(options || {})
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const baseConfig = {
|
|
101
|
-
// Use the package's module field if it has one
|
|
102
|
-
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
-
external: [
|
|
104
|
-
...nodeBuiltins,
|
|
105
|
-
...Object.keys(pkg.dependencies),
|
|
106
|
-
...Object.keys(pkg.devDependencies)
|
|
107
|
-
],
|
|
108
|
-
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
-
preserveSymlinks: false,
|
|
110
|
-
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
const config = [baseConfig];
|
|
114
|
-
|
|
115
|
-
if (!options.disableBrowserBundle) {
|
|
116
|
-
config.push(makeBrowserTestConfig());
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return config;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export default makeConfig(require("./package.json"));
|