@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
package/src/models/index.ts
CHANGED
|
@@ -129,42 +129,6 @@ export interface FleetListResult {
|
|
|
129
129
|
nextLink?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
/** The FleetHubProfile configures the fleet hub. */
|
|
133
|
-
export interface FleetHubProfile {
|
|
134
|
-
/** DNS prefix used to create the FQDN for the Fleet hub. */
|
|
135
|
-
dnsPrefix?: string;
|
|
136
|
-
/** The access profile for the Fleet hub API server. */
|
|
137
|
-
apiServerAccessProfile?: APIServerAccessProfile;
|
|
138
|
-
/** The agent profile for the Fleet hub. */
|
|
139
|
-
agentProfile?: AgentProfile;
|
|
140
|
-
/**
|
|
141
|
-
* The FQDN of the Fleet hub.
|
|
142
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
143
|
-
*/
|
|
144
|
-
readonly fqdn?: string;
|
|
145
|
-
/**
|
|
146
|
-
* The Kubernetes version of the Fleet hub.
|
|
147
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
148
|
-
*/
|
|
149
|
-
readonly kubernetesVersion?: string;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/** Access profile for the Fleet hub API server. */
|
|
153
|
-
export interface APIServerAccessProfile {
|
|
154
|
-
/** Whether to create the Fleet hub as a private cluster or not. */
|
|
155
|
-
enablePrivateCluster?: boolean;
|
|
156
|
-
/** Whether to enable apiserver vnet integration for the Fleet hub or not. */
|
|
157
|
-
enableVnetIntegration?: boolean;
|
|
158
|
-
/** The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet. */
|
|
159
|
-
subnetId?: string;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/** Agent profile for the Fleet hub. */
|
|
163
|
-
export interface AgentProfile {
|
|
164
|
-
/** 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. */
|
|
165
|
-
subnetId?: string;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
132
|
/** Managed service identity (system assigned and/or user assigned identities) */
|
|
169
133
|
export interface ManagedServiceIdentity {
|
|
170
134
|
/**
|
|
@@ -290,26 +254,25 @@ export interface UpdateRunListResult {
|
|
|
290
254
|
nextLink?: string;
|
|
291
255
|
}
|
|
292
256
|
|
|
293
|
-
/**
|
|
257
|
+
/**
|
|
258
|
+
* Defines the update sequence of the clusters via stages and groups.
|
|
259
|
+
*
|
|
260
|
+
* Stages within a run are executed sequentially one after another.
|
|
261
|
+
* Groups within a stage are executed in parallel.
|
|
262
|
+
* Member clusters within a group are updated sequentially one after another.
|
|
263
|
+
*
|
|
264
|
+
* A valid strategy contains no duplicate groups within or across stages.
|
|
265
|
+
*/
|
|
294
266
|
export interface UpdateRunStrategy {
|
|
295
|
-
/** The list of stages that compose this update run. */
|
|
267
|
+
/** The list of stages that compose this update run. Min size: 1. */
|
|
296
268
|
stages: UpdateStage[];
|
|
297
269
|
}
|
|
298
270
|
|
|
299
|
-
/**
|
|
300
|
-
* Contains the groups to be updated by an UpdateRun.
|
|
301
|
-
* Update order:
|
|
302
|
-
* - Sequential between stages: Stages run sequentially. The previous stage must complete before the next one starts.
|
|
303
|
-
* - Parallel within a stage: Groups within a stage run in parallel.
|
|
304
|
-
* - Sequential within a group: Clusters within a group are updated sequentially.
|
|
305
|
-
*/
|
|
271
|
+
/** 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. */
|
|
306
272
|
export interface UpdateStage {
|
|
307
273
|
/** The name of the stage. Must be unique within the UpdateRun. */
|
|
308
274
|
name: string;
|
|
309
|
-
/**
|
|
310
|
-
* A list of group names that compose the stage.
|
|
311
|
-
* The groups will be updated in parallel. Each group name can only appear once in the UpdateRun.
|
|
312
|
-
*/
|
|
275
|
+
/** Defines the groups to be executed in parallel in this stage. Duplicate groups are not allowed. Min size: 1. */
|
|
313
276
|
groups?: UpdateGroup[];
|
|
314
277
|
/** The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified. */
|
|
315
278
|
afterStageWaitInSeconds?: number;
|
|
@@ -318,9 +281,8 @@ export interface UpdateStage {
|
|
|
318
281
|
/** A group to be updated. */
|
|
319
282
|
export interface UpdateGroup {
|
|
320
283
|
/**
|
|
321
|
-
*
|
|
322
|
-
* It
|
|
323
|
-
* A group can only appear once across all UpdateStages in the UpdateRun.
|
|
284
|
+
* Name of the group.
|
|
285
|
+
* It must match a group name of an existing fleet member.
|
|
324
286
|
*/
|
|
325
287
|
name: string;
|
|
326
288
|
}
|
|
@@ -498,6 +460,14 @@ export interface NodeImageVersion {
|
|
|
498
460
|
readonly version?: string;
|
|
499
461
|
}
|
|
500
462
|
|
|
463
|
+
/** The response of a FleetUpdateStrategy list operation. */
|
|
464
|
+
export interface FleetUpdateStrategyListResult {
|
|
465
|
+
/** The FleetUpdateStrategy items on this page */
|
|
466
|
+
value: FleetUpdateStrategy[];
|
|
467
|
+
/** The link to the next page of items */
|
|
468
|
+
nextLink?: string;
|
|
469
|
+
}
|
|
470
|
+
|
|
501
471
|
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
502
472
|
export interface TrackedResource extends Resource {
|
|
503
473
|
/** Resource tags. */
|
|
@@ -523,8 +493,6 @@ export interface Fleet extends TrackedResource {
|
|
|
523
493
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
524
494
|
*/
|
|
525
495
|
readonly provisioningState?: FleetProvisioningState;
|
|
526
|
-
/** The FleetHubProfile configures the Fleet's hub. */
|
|
527
|
-
hubProfile?: FleetHubProfile;
|
|
528
496
|
}
|
|
529
497
|
|
|
530
498
|
/** A member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure. */
|
|
@@ -545,7 +513,7 @@ export interface FleetMember extends ProxyResource {
|
|
|
545
513
|
readonly provisioningState?: FleetMemberProvisioningState;
|
|
546
514
|
}
|
|
547
515
|
|
|
548
|
-
/**
|
|
516
|
+
/** A multi-stage process to perform update operations across members of a Fleet. */
|
|
549
517
|
export interface UpdateRun extends ProxyResource {
|
|
550
518
|
/**
|
|
551
519
|
* 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.
|
|
@@ -557,6 +525,21 @@ export interface UpdateRun extends ProxyResource {
|
|
|
557
525
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
558
526
|
*/
|
|
559
527
|
readonly provisioningState?: UpdateRunProvisioningState;
|
|
528
|
+
/**
|
|
529
|
+
* The resource id of the FleetUpdateStrategy resource to reference.
|
|
530
|
+
*
|
|
531
|
+
* When creating a new run, there are three ways to define a strategy for the run:
|
|
532
|
+
* 1. Define a new strategy in place: Set the "strategy" field.
|
|
533
|
+
* 2. Use an existing strategy: Set the "updateStrategyId" field. (since 2023-08-15-preview)
|
|
534
|
+
* 3. Use the default strategy to update all the members one by one: Leave both "updateStrategyId" and "strategy" unset. (since 2023-08-15-preview)
|
|
535
|
+
*
|
|
536
|
+
* Setting both "updateStrategyId" and "strategy" is invalid.
|
|
537
|
+
*
|
|
538
|
+
* UpdateRuns created by "updateStrategyId" snapshot the referenced UpdateStrategy at the time of creation and store it in the "strategy" field.
|
|
539
|
+
* Subsequent changes to the referenced FleetUpdateStrategy resource do not propagate.
|
|
540
|
+
* UpdateRunStrategy changes can be made directly on the "strategy" field before launching the UpdateRun.
|
|
541
|
+
*/
|
|
542
|
+
updateStrategyId?: string;
|
|
560
543
|
/**
|
|
561
544
|
* The strategy defines the order in which the clusters will be updated.
|
|
562
545
|
* If not set, all members will be updated sequentially. The UpdateRun status will show a single UpdateStage and a single UpdateGroup targeting all members.
|
|
@@ -572,6 +555,22 @@ export interface UpdateRun extends ProxyResource {
|
|
|
572
555
|
readonly status?: UpdateRunStatus;
|
|
573
556
|
}
|
|
574
557
|
|
|
558
|
+
/** Defines a multi-stage process to perform update operations across members of a Fleet. */
|
|
559
|
+
export interface FleetUpdateStrategy extends ProxyResource {
|
|
560
|
+
/**
|
|
561
|
+
* 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.
|
|
562
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
563
|
+
*/
|
|
564
|
+
readonly eTag?: string;
|
|
565
|
+
/**
|
|
566
|
+
* The provisioning state of the UpdateStrategy resource.
|
|
567
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
568
|
+
*/
|
|
569
|
+
readonly provisioningState?: FleetUpdateStrategyProvisioningState;
|
|
570
|
+
/** Defines the update sequence of the clusters. */
|
|
571
|
+
strategy?: UpdateRunStrategy;
|
|
572
|
+
}
|
|
573
|
+
|
|
575
574
|
/** Defines headers for Fleets_createOrUpdate operation. */
|
|
576
575
|
export interface FleetsCreateOrUpdateHeaders {
|
|
577
576
|
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
@@ -646,6 +645,20 @@ export interface UpdateRunsStopHeaders {
|
|
|
646
645
|
location?: string;
|
|
647
646
|
}
|
|
648
647
|
|
|
648
|
+
/** Defines headers for FleetUpdateStrategies_createOrUpdate operation. */
|
|
649
|
+
export interface FleetUpdateStrategiesCreateOrUpdateHeaders {
|
|
650
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
651
|
+
retryAfter?: number;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/** Defines headers for FleetUpdateStrategies_delete operation. */
|
|
655
|
+
export interface FleetUpdateStrategiesDeleteHeaders {
|
|
656
|
+
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
|
657
|
+
retryAfter?: number;
|
|
658
|
+
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
|
659
|
+
location?: string;
|
|
660
|
+
}
|
|
661
|
+
|
|
649
662
|
/** Known values of {@link Origin} that the service accepts. */
|
|
650
663
|
export enum KnownOrigin {
|
|
651
664
|
/** User */
|
|
@@ -880,6 +893,27 @@ export enum KnownUpdateState {
|
|
|
880
893
|
*/
|
|
881
894
|
export type UpdateState = string;
|
|
882
895
|
|
|
896
|
+
/** Known values of {@link FleetUpdateStrategyProvisioningState} that the service accepts. */
|
|
897
|
+
export enum KnownFleetUpdateStrategyProvisioningState {
|
|
898
|
+
/** Resource has been created. */
|
|
899
|
+
Succeeded = "Succeeded",
|
|
900
|
+
/** Resource creation failed. */
|
|
901
|
+
Failed = "Failed",
|
|
902
|
+
/** Resource creation was canceled. */
|
|
903
|
+
Canceled = "Canceled"
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Defines values for FleetUpdateStrategyProvisioningState. \
|
|
908
|
+
* {@link KnownFleetUpdateStrategyProvisioningState} can be used interchangeably with FleetUpdateStrategyProvisioningState,
|
|
909
|
+
* this enum contains the known values that the service supports.
|
|
910
|
+
* ### Known values supported by the service
|
|
911
|
+
* **Succeeded**: Resource has been created. \
|
|
912
|
+
* **Failed**: Resource creation failed. \
|
|
913
|
+
* **Canceled**: Resource creation was canceled.
|
|
914
|
+
*/
|
|
915
|
+
export type FleetUpdateStrategyProvisioningState = string;
|
|
916
|
+
|
|
883
917
|
/** Optional parameters. */
|
|
884
918
|
export interface OperationsListOptionalParams
|
|
885
919
|
extends coreClient.OperationOptions {}
|
|
@@ -1114,6 +1148,54 @@ export interface UpdateRunsListByFleetNextOptionalParams
|
|
|
1114
1148
|
/** Contains response data for the listByFleetNext operation. */
|
|
1115
1149
|
export type UpdateRunsListByFleetNextResponse = UpdateRunListResult;
|
|
1116
1150
|
|
|
1151
|
+
/** Optional parameters. */
|
|
1152
|
+
export interface FleetUpdateStrategiesListByFleetOptionalParams
|
|
1153
|
+
extends coreClient.OperationOptions {}
|
|
1154
|
+
|
|
1155
|
+
/** Contains response data for the listByFleet operation. */
|
|
1156
|
+
export type FleetUpdateStrategiesListByFleetResponse = FleetUpdateStrategyListResult;
|
|
1157
|
+
|
|
1158
|
+
/** Optional parameters. */
|
|
1159
|
+
export interface FleetUpdateStrategiesGetOptionalParams
|
|
1160
|
+
extends coreClient.OperationOptions {}
|
|
1161
|
+
|
|
1162
|
+
/** Contains response data for the get operation. */
|
|
1163
|
+
export type FleetUpdateStrategiesGetResponse = FleetUpdateStrategy;
|
|
1164
|
+
|
|
1165
|
+
/** Optional parameters. */
|
|
1166
|
+
export interface FleetUpdateStrategiesCreateOrUpdateOptionalParams
|
|
1167
|
+
extends coreClient.OperationOptions {
|
|
1168
|
+
/** The request should only proceed if an entity matches this string. */
|
|
1169
|
+
ifMatch?: string;
|
|
1170
|
+
/** The request should only proceed if no entity matches this string. */
|
|
1171
|
+
ifNoneMatch?: string;
|
|
1172
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
1173
|
+
updateIntervalInMs?: number;
|
|
1174
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
1175
|
+
resumeFrom?: string;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/** Contains response data for the createOrUpdate operation. */
|
|
1179
|
+
export type FleetUpdateStrategiesCreateOrUpdateResponse = FleetUpdateStrategy;
|
|
1180
|
+
|
|
1181
|
+
/** Optional parameters. */
|
|
1182
|
+
export interface FleetUpdateStrategiesDeleteOptionalParams
|
|
1183
|
+
extends coreClient.OperationOptions {
|
|
1184
|
+
/** The request should only proceed if an entity matches this string. */
|
|
1185
|
+
ifMatch?: string;
|
|
1186
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
1187
|
+
updateIntervalInMs?: number;
|
|
1188
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
1189
|
+
resumeFrom?: string;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/** Optional parameters. */
|
|
1193
|
+
export interface FleetUpdateStrategiesListByFleetNextOptionalParams
|
|
1194
|
+
extends coreClient.OperationOptions {}
|
|
1195
|
+
|
|
1196
|
+
/** Contains response data for the listByFleetNext operation. */
|
|
1197
|
+
export type FleetUpdateStrategiesListByFleetNextResponse = FleetUpdateStrategyListResult;
|
|
1198
|
+
|
|
1117
1199
|
/** Optional parameters. */
|
|
1118
1200
|
export interface ContainerServiceFleetClientOptionalParams
|
|
1119
1201
|
extends coreClient.ServiceClientOptions {
|
package/src/models/mappers.ts
CHANGED
|
@@ -242,98 +242,6 @@ export const FleetListResult: coreClient.CompositeMapper = {
|
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
|
|
245
|
-
export const FleetHubProfile: coreClient.CompositeMapper = {
|
|
246
|
-
type: {
|
|
247
|
-
name: "Composite",
|
|
248
|
-
className: "FleetHubProfile",
|
|
249
|
-
modelProperties: {
|
|
250
|
-
dnsPrefix: {
|
|
251
|
-
constraints: {
|
|
252
|
-
Pattern: new RegExp(
|
|
253
|
-
"^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$"
|
|
254
|
-
),
|
|
255
|
-
MaxLength: 54,
|
|
256
|
-
MinLength: 1
|
|
257
|
-
},
|
|
258
|
-
serializedName: "dnsPrefix",
|
|
259
|
-
type: {
|
|
260
|
-
name: "String"
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
apiServerAccessProfile: {
|
|
264
|
-
serializedName: "apiServerAccessProfile",
|
|
265
|
-
type: {
|
|
266
|
-
name: "Composite",
|
|
267
|
-
className: "APIServerAccessProfile"
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
agentProfile: {
|
|
271
|
-
serializedName: "agentProfile",
|
|
272
|
-
type: {
|
|
273
|
-
name: "Composite",
|
|
274
|
-
className: "AgentProfile"
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
fqdn: {
|
|
278
|
-
serializedName: "fqdn",
|
|
279
|
-
readOnly: true,
|
|
280
|
-
type: {
|
|
281
|
-
name: "String"
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
kubernetesVersion: {
|
|
285
|
-
serializedName: "kubernetesVersion",
|
|
286
|
-
readOnly: true,
|
|
287
|
-
type: {
|
|
288
|
-
name: "String"
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
export const APIServerAccessProfile: coreClient.CompositeMapper = {
|
|
296
|
-
type: {
|
|
297
|
-
name: "Composite",
|
|
298
|
-
className: "APIServerAccessProfile",
|
|
299
|
-
modelProperties: {
|
|
300
|
-
enablePrivateCluster: {
|
|
301
|
-
serializedName: "enablePrivateCluster",
|
|
302
|
-
type: {
|
|
303
|
-
name: "Boolean"
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
enableVnetIntegration: {
|
|
307
|
-
serializedName: "enableVnetIntegration",
|
|
308
|
-
type: {
|
|
309
|
-
name: "Boolean"
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
subnetId: {
|
|
313
|
-
serializedName: "subnetId",
|
|
314
|
-
type: {
|
|
315
|
-
name: "String"
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
export const AgentProfile: coreClient.CompositeMapper = {
|
|
323
|
-
type: {
|
|
324
|
-
name: "Composite",
|
|
325
|
-
className: "AgentProfile",
|
|
326
|
-
modelProperties: {
|
|
327
|
-
subnetId: {
|
|
328
|
-
serializedName: "subnetId",
|
|
329
|
-
type: {
|
|
330
|
-
name: "String"
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
|
|
337
245
|
export const ManagedServiceIdentity: coreClient.CompositeMapper = {
|
|
338
246
|
type: {
|
|
339
247
|
name: "Composite",
|
|
@@ -1022,6 +930,34 @@ export const NodeImageVersion: coreClient.CompositeMapper = {
|
|
|
1022
930
|
}
|
|
1023
931
|
};
|
|
1024
932
|
|
|
933
|
+
export const FleetUpdateStrategyListResult: coreClient.CompositeMapper = {
|
|
934
|
+
type: {
|
|
935
|
+
name: "Composite",
|
|
936
|
+
className: "FleetUpdateStrategyListResult",
|
|
937
|
+
modelProperties: {
|
|
938
|
+
value: {
|
|
939
|
+
serializedName: "value",
|
|
940
|
+
required: true,
|
|
941
|
+
type: {
|
|
942
|
+
name: "Sequence",
|
|
943
|
+
element: {
|
|
944
|
+
type: {
|
|
945
|
+
name: "Composite",
|
|
946
|
+
className: "FleetUpdateStrategy"
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
nextLink: {
|
|
952
|
+
serializedName: "nextLink",
|
|
953
|
+
type: {
|
|
954
|
+
name: "String"
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
|
|
1025
961
|
export const TrackedResource: coreClient.CompositeMapper = {
|
|
1026
962
|
type: {
|
|
1027
963
|
name: "Composite",
|
|
@@ -1082,13 +1018,6 @@ export const Fleet: coreClient.CompositeMapper = {
|
|
|
1082
1018
|
type: {
|
|
1083
1019
|
name: "String"
|
|
1084
1020
|
}
|
|
1085
|
-
},
|
|
1086
|
-
hubProfile: {
|
|
1087
|
-
serializedName: "properties.hubProfile",
|
|
1088
|
-
type: {
|
|
1089
|
-
name: "Composite",
|
|
1090
|
-
className: "FleetHubProfile"
|
|
1091
|
-
}
|
|
1092
1021
|
}
|
|
1093
1022
|
}
|
|
1094
1023
|
}
|
|
@@ -1155,6 +1084,12 @@ export const UpdateRun: coreClient.CompositeMapper = {
|
|
|
1155
1084
|
name: "String"
|
|
1156
1085
|
}
|
|
1157
1086
|
},
|
|
1087
|
+
updateStrategyId: {
|
|
1088
|
+
serializedName: "properties.updateStrategyId",
|
|
1089
|
+
type: {
|
|
1090
|
+
name: "String"
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1158
1093
|
strategy: {
|
|
1159
1094
|
serializedName: "properties.strategy",
|
|
1160
1095
|
type: {
|
|
@@ -1180,6 +1115,37 @@ export const UpdateRun: coreClient.CompositeMapper = {
|
|
|
1180
1115
|
}
|
|
1181
1116
|
};
|
|
1182
1117
|
|
|
1118
|
+
export const FleetUpdateStrategy: coreClient.CompositeMapper = {
|
|
1119
|
+
type: {
|
|
1120
|
+
name: "Composite",
|
|
1121
|
+
className: "FleetUpdateStrategy",
|
|
1122
|
+
modelProperties: {
|
|
1123
|
+
...ProxyResource.type.modelProperties,
|
|
1124
|
+
eTag: {
|
|
1125
|
+
serializedName: "eTag",
|
|
1126
|
+
readOnly: true,
|
|
1127
|
+
type: {
|
|
1128
|
+
name: "String"
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
provisioningState: {
|
|
1132
|
+
serializedName: "properties.provisioningState",
|
|
1133
|
+
readOnly: true,
|
|
1134
|
+
type: {
|
|
1135
|
+
name: "String"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
strategy: {
|
|
1139
|
+
serializedName: "properties.strategy",
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "Composite",
|
|
1142
|
+
className: "UpdateRunStrategy"
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
|
|
1183
1149
|
export const FleetsCreateOrUpdateHeaders: coreClient.CompositeMapper = {
|
|
1184
1150
|
type: {
|
|
1185
1151
|
name: "Composite",
|
|
@@ -1371,3 +1337,39 @@ export const UpdateRunsStopHeaders: coreClient.CompositeMapper = {
|
|
|
1371
1337
|
}
|
|
1372
1338
|
}
|
|
1373
1339
|
};
|
|
1340
|
+
|
|
1341
|
+
export const FleetUpdateStrategiesCreateOrUpdateHeaders: coreClient.CompositeMapper = {
|
|
1342
|
+
type: {
|
|
1343
|
+
name: "Composite",
|
|
1344
|
+
className: "FleetUpdateStrategiesCreateOrUpdateHeaders",
|
|
1345
|
+
modelProperties: {
|
|
1346
|
+
retryAfter: {
|
|
1347
|
+
serializedName: "retry-after",
|
|
1348
|
+
type: {
|
|
1349
|
+
name: "Number"
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
export const FleetUpdateStrategiesDeleteHeaders: coreClient.CompositeMapper = {
|
|
1357
|
+
type: {
|
|
1358
|
+
name: "Composite",
|
|
1359
|
+
className: "FleetUpdateStrategiesDeleteHeaders",
|
|
1360
|
+
modelProperties: {
|
|
1361
|
+
retryAfter: {
|
|
1362
|
+
serializedName: "retry-after",
|
|
1363
|
+
type: {
|
|
1364
|
+
name: "Number"
|
|
1365
|
+
}
|
|
1366
|
+
},
|
|
1367
|
+
location: {
|
|
1368
|
+
serializedName: "location",
|
|
1369
|
+
type: {
|
|
1370
|
+
name: "String"
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
};
|
package/src/models/parameters.ts
CHANGED
|
@@ -16,7 +16,8 @@ import {
|
|
|
16
16
|
FleetPatch as FleetPatchMapper,
|
|
17
17
|
FleetMember as FleetMemberMapper,
|
|
18
18
|
FleetMemberUpdate as FleetMemberUpdateMapper,
|
|
19
|
-
UpdateRun as UpdateRunMapper
|
|
19
|
+
UpdateRun as UpdateRunMapper,
|
|
20
|
+
FleetUpdateStrategy as FleetUpdateStrategyMapper
|
|
20
21
|
} from "../models/mappers";
|
|
21
22
|
|
|
22
23
|
export const accept: OperationParameter = {
|
|
@@ -46,7 +47,7 @@ export const $host: OperationURLParameter = {
|
|
|
46
47
|
export const apiVersion: OperationQueryParameter = {
|
|
47
48
|
parameterPath: "apiVersion",
|
|
48
49
|
mapper: {
|
|
49
|
-
defaultValue: "2023-
|
|
50
|
+
defaultValue: "2023-10-15",
|
|
50
51
|
isConstant: true,
|
|
51
52
|
serializedName: "api-version",
|
|
52
53
|
type: {
|
|
@@ -200,3 +201,24 @@ export const resource2: OperationParameter = {
|
|
|
200
201
|
parameterPath: "resource",
|
|
201
202
|
mapper: UpdateRunMapper
|
|
202
203
|
};
|
|
204
|
+
|
|
205
|
+
export const updateStrategyName: OperationURLParameter = {
|
|
206
|
+
parameterPath: "updateStrategyName",
|
|
207
|
+
mapper: {
|
|
208
|
+
constraints: {
|
|
209
|
+
Pattern: new RegExp("^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
|
|
210
|
+
MaxLength: 50,
|
|
211
|
+
MinLength: 1
|
|
212
|
+
},
|
|
213
|
+
serializedName: "updateStrategyName",
|
|
214
|
+
required: true,
|
|
215
|
+
type: {
|
|
216
|
+
name: "String"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
export const resource3: OperationParameter = {
|
|
222
|
+
parameterPath: "resource",
|
|
223
|
+
mapper: FleetUpdateStrategyMapper
|
|
224
|
+
};
|