From 134b0f0427ad90c79b57133272cb08f505cad12e Mon Sep 17 00:00:00 2001 From: zman-ms Date: Tue, 9 Jan 2024 16:21:39 -0800 Subject: [PATCH 01/16] manual skip API --- .../Fleet.Management/main.tsp | 5 + .../Fleet.Management/update/run.tsp | 48 +++ .../preview/2024-02-02-preview/fleets.json | 365 +++++++----------- 3 files changed, 192 insertions(+), 226 deletions(-) diff --git a/specification/containerservice/Fleet.Management/main.tsp b/specification/containerservice/Fleet.Management/main.tsp index 894c2d6a0e90..669d843a5754 100644 --- a/specification/containerservice/Fleet.Management/main.tsp +++ b/specification/containerservice/Fleet.Management/main.tsp @@ -46,4 +46,9 @@ enum Versions { @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) v2023_10_15: "2023-10-15", + + @doc("Azure Kubernetes Fleet Manager api version 2024-02-02-preview.") + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + v2024_02_02_preview: "2024-02-02-preview", } diff --git a/specification/containerservice/Fleet.Management/update/run.tsp b/specification/containerservice/Fleet.Management/update/run.tsp index 14bea2007c9e..d172f67c7f4d 100644 --- a/specification/containerservice/Fleet.Management/update/run.tsp +++ b/specification/containerservice/Fleet.Management/update/run.tsp @@ -286,6 +286,45 @@ model MemberUpdateStatus { message?: string; } +@doc("The target type of a skip request.") +@added(Versions.v2024_02_02_preview) +enum TargetType { + @doc("Skip the update of a member.") + Member, + + @doc("Skip the update of a group.") + Group, + + @doc("Skip the update of an entire stage inclusing the after stage wait.") + Stage, + + @doc("Skip the update of the after stage wait of a certain stage.") + AfterStageWait, +} + +@doc("The definition of a single skip request.") +@added(Versions.v2024_02_02_preview) +model SkipRequest { + @doc("The skip target type.") + type: TargetType; + + @doc(""" + The skip target. + To skip a member/group/stage, use the member/group/stage's name; + Tp skip an after satge wait, use the parent stage's name. + """) + target: string; +} + + +@doc("The properties of a skip operation containing multiple skip requests.") +@added(Versions.v2024_02_02_preview) +model SkipProperties { + @doc("The targets to skip.") + @extension("x-ms-identifiers", ["target"]) + targets: SkipRequest[]; +} + @added(Versions.v2023_03_15_preview) @armResourceOperations interface UpdateRuns { @@ -324,4 +363,13 @@ interface UpdateRuns { UpdateRun, BaseParameters & IfMatchParameters >; + + @doc("Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.") + @added(Versions.v2024_02_02_preview) + skip is ArmResourceActionSync< + UpdateRun, + SkipProperties, + UpdateRun, + BaseParameters & IfMatchParameters + >; } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index 48135755e546..6bbb51d33866 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -82,11 +82,6 @@ } } }, - "x-ms-examples": { - "List the operations for the provider.": { - "$ref": "./examples/Operations_List.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -121,11 +116,6 @@ } } }, - "x-ms-examples": { - "Lists the Fleet resources in a subscription.": { - "$ref": "./examples/Fleets_ListBySub.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -163,11 +153,6 @@ } } }, - "x-ms-examples": { - "Lists the Fleet resources in a resource group.": { - "$ref": "./examples/Fleets_ListByResourceGroup.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -214,11 +199,6 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-examples": { - "Gets a Fleet resource.": { - "$ref": "./examples/Fleets_Get.json" - } } }, "put": { @@ -300,11 +280,6 @@ } } }, - "x-ms-examples": { - "Creates a Fleet resource with a long running operation.": { - "$ref": "./examples/Fleets_CreateOrUpdate.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -382,11 +357,6 @@ } } }, - "x-ms-examples": { - "Update a Fleet.": { - "$ref": "./examples/Fleets_PatchTags.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -455,11 +425,6 @@ } } }, - "x-ms-examples": { - "Deletes a Fleet resource asynchronously with a long running operation.": { - "$ref": "./examples/Fleets_Delete.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -507,11 +472,6 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-examples": { - "Lists the user credentials of a Fleet.": { - "$ref": "./examples/Fleets_ListCredentialsResult.json" - } } } }, @@ -557,11 +517,6 @@ } } }, - "x-ms-examples": { - "Lists the members of a Fleet.": { - "$ref": "./examples/FleetMembers_ListByFleet.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -618,11 +573,6 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-examples": { - "Gets a FleetMember resource.": { - "$ref": "./examples/FleetMembers_Get.json" - } } }, "put": { @@ -714,11 +664,6 @@ } } }, - "x-ms-examples": { - "Creates a FleetMember resource with a long running operation.": { - "$ref": "./examples/FleetMembers_Create.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -806,11 +751,6 @@ } } }, - "x-ms-examples": { - "Updates a FleetMember resource synchronously.": { - "$ref": "./examples/FleetMembers_Update.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -889,11 +829,6 @@ } } }, - "x-ms-examples": { - "Deletes a FleetMember resource asynchronously with a long running operation.": { - "$ref": "./examples/FleetMembers_Delete.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -942,11 +877,6 @@ } } }, - "x-ms-examples": { - "Lists the UpdateRun resources by fleet.": { - "$ref": "./examples/UpdateRuns_ListByFleet.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -1003,11 +933,6 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-examples": { - "Gets an UpdateRun resource.": { - "$ref": "./examples/UpdateRuns_Get.json" - } } }, "put": { @@ -1099,11 +1024,6 @@ } } }, - "x-ms-examples": { - "Create an UpdateRun.": { - "$ref": "./examples/UpdateRuns_CreateOrUpdate.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -1182,17 +1102,83 @@ } } }, - "x-ms-examples": { - "Delete an updateRun resource.": { - "$ref": "./examples/UpdateRuns_Delete.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/skip": { + "post": { + "operationId": "UpdateRuns_Skip", + "tags": [ + "UpdateRuns" + ], + "description": "Skips one or a combination of member/group/stage/afterStageWait(s) of an update run.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "If-Match", + "in": "header", + "description": "The request should only proceed if an entity matches this string.", + "required": false, + "type": "string", + "x-ms-client-name": "ifMatch" + }, + { + "name": "fleetName", + "in": "path", + "description": "The name of the Fleet resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "updateRunName", + "in": "path", + "description": "The name of the UpdateRun resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/SkipProperties" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/UpdateRun" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}/start": { "post": { "operationId": "UpdateRuns_Start", @@ -1267,11 +1253,6 @@ } } }, - "x-ms-examples": { - "Starts an UpdateRun.": { - "$ref": "./examples/UpdateRuns_Start.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -1352,11 +1333,6 @@ } } }, - "x-ms-examples": { - "Stops an UpdateRun.": { - "$ref": "./examples/UpdateRuns_Stop.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -1405,11 +1381,6 @@ } } }, - "x-ms-examples": { - "List the FleetUpdateStrategy resources by fleet.": { - "$ref": "./examples/UpdateStrategies_ListByFleet.json" - } - }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -1466,11 +1437,6 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } - }, - "x-ms-examples": { - "Get a FleetUpdateStrategy resource.": { - "$ref": "./examples/UpdateStrategies_Get.json" - } } }, "put": { @@ -1562,11 +1528,6 @@ } } }, - "x-ms-examples": { - "Create a FleetUpdateStrategy.": { - "$ref": "./examples/UpdateStrategies_CreateOrUpdate.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -1645,11 +1606,6 @@ } } }, - "x-ms-examples": { - "Delete a FleetUpdateStrategy resource.": { - "$ref": "./examples/UpdateStrategies_Delete.json" - } - }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -1658,58 +1614,6 @@ } }, "definitions": { - "APIServerAccessProfile": { - "type": "object", - "description": "Access profile for the Fleet hub API server.", - "properties": { - "enablePrivateCluster": { - "type": "boolean", - "description": "Whether to create the Fleet hub as a private cluster or not.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "enableVnetIntegration": { - "type": "boolean", - "description": "Whether to enable apiserver vnet integration for the Fleet hub or not.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "subnetId": { - "$ref": "#/definitions/SubnetResourceId", - "description": "The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet.", - "x-ms-mutability": [ - "read", - "create" - ] - } - } - }, - "AgentProfile": { - "type": "object", - "description": "Agent profile for the Fleet hub.", - "properties": { - "subnetId": { - "$ref": "#/definitions/SubnetResourceId", - "description": "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.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "vmSize": { - "type": "string", - "description": "The virtual machine size of the Fleet hub.", - "x-ms-mutability": [ - "read", - "create" - ] - } - } - }, "ClusterResourceId": { "type": "string", "format": "arm-id", @@ -1785,54 +1689,6 @@ } } }, - "FleetHubProfile": { - "type": "object", - "description": "The FleetHubProfile configures the fleet hub.", - "properties": { - "dnsPrefix": { - "type": "string", - "description": "DNS prefix used to create the FQDN for the Fleet hub.", - "minLength": 1, - "maxLength": 54, - "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "apiServerAccessProfile": { - "$ref": "#/definitions/APIServerAccessProfile", - "description": "The access profile for the Fleet hub API server.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "agentProfile": { - "$ref": "#/definitions/AgentProfile", - "description": "The agent profile for the Fleet hub.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "fqdn": { - "type": "string", - "description": "The FQDN of the Fleet hub.", - "readOnly": true - }, - "kubernetesVersion": { - "type": "string", - "description": "The Kubernetes version of the Fleet hub.", - "readOnly": true - }, - "portalFqdn": { - "type": "string", - "description": "The Azure Portal FQDN of the Fleet hub.", - "readOnly": true - } - } - }, "FleetListResult": { "type": "object", "description": "The response of a Fleet list operation.", @@ -2025,10 +1881,6 @@ "$ref": "#/definitions/FleetProvisioningState", "description": "The status of the last operation.", "readOnly": true - }, - "hubProfile": { - "$ref": "#/definitions/FleetHubProfile", - "description": "The FleetHubProfile configures the Fleet's hub." } } }, @@ -2356,14 +2208,75 @@ } } }, - "SubnetResourceId": { + "SkipProperties": { + "type": "object", + "description": "The properties of a skip operation containing multiple skip requests.", + "properties": { + "targets": { + "type": "array", + "description": "The targets to skip.", + "items": { + "$ref": "#/definitions/SkipRequest" + }, + "x-ms-identifiers": [ + "target" + ] + } + }, + "required": [ + "targets" + ] + }, + "SkipRequest": { + "type": "object", + "description": "The definition of a single skip request.", + "properties": { + "type": { + "$ref": "#/definitions/TargetType", + "description": "The skip target type." + }, + "target": { + "type": "string", + "description": "The skip target. \nTo skip a member/group/stage, use the member/group/stage's name;\nTp skip an after satge wait, use the parent stage's name." + } + }, + "required": [ + "type", + "target" + ] + }, + "TargetType": { "type": "string", - "format": "arm-id", - "description": "A type definition that refers the id to an ARM resource.", - "x-ms-arm-id-details": { - "allowedResources": [ + "description": "The target type of a skip request.", + "enum": [ + "Member", + "Group", + "Stage", + "AfterStageWait" + ], + "x-ms-enum": { + "name": "TargetType", + "modelAsString": true, + "values": [ + { + "name": "Member", + "value": "Member", + "description": "Skip the update of a member." + }, + { + "name": "Group", + "value": "Group", + "description": "Skip the update of a group." + }, + { + "name": "Stage", + "value": "Stage", + "description": "Skip the update of an entire stage inclusing the after stage wait." + }, { - "type": "Microsoft.Network/virtualNetworks/subnets" + "name": "AfterStageWait", + "value": "AfterStageWait", + "description": "Skip the update of the after stage wait of a certain stage." } ] } @@ -2468,7 +2381,7 @@ }, "updateStrategyId": { "$ref": "#/definitions/FleetUpdateStrategyResourceId", - "description": "The resource id of the FleetUpdateStrategy resource to reference.\n\nWhen creating a new run, there are three ways to define a strategy for the run:\n1. Define a new strategy in place: Set the \"strategy\" field.\n2. Use an existing strategy: Set the \"updateStrategyId\" field. (since 2024-02-02-preview)\n3. Use the default strategy to update all the members one by one: Leave both \"updateStrategyId\" and \"strategy\" unset. (since 2024-02-02-preview)\n\nSetting both \"updateStrategyId\" and \"strategy\" is invalid.\n\nUpdateRuns created by \"updateStrategyId\" snapshot the referenced UpdateStrategy at the time of creation and store it in the \"strategy\" field. \nSubsequent changes to the referenced FleetUpdateStrategy resource do not propagate. \nUpdateRunStrategy changes can be made directly on the \"strategy\" field before launching the UpdateRun." + "description": "The resource id of the FleetUpdateStrategy resource to reference.\n\nWhen creating a new run, there are three ways to define a strategy for the run:\n1. Define a new strategy in place: Set the \"strategy\" field.\n2. Use an existing strategy: Set the \"updateStrategyId\" field. (since 2023-08-15-preview)\n3. Use the default strategy to update all the members one by one: Leave both \"updateStrategyId\" and \"strategy\" unset. (since 2023-08-15-preview)\n\nSetting both \"updateStrategyId\" and \"strategy\" is invalid.\n\nUpdateRuns created by \"updateStrategyId\" snapshot the referenced UpdateStrategy at the time of creation and store it in the \"strategy\" field. \nSubsequent changes to the referenced FleetUpdateStrategy resource do not propagate. \nUpdateRunStrategy changes can be made directly on the \"strategy\" field before launching the UpdateRun." }, "strategy": { "$ref": "#/definitions/UpdateRunStrategy", From 0c607fffb6f684293fadc1c802afb2c3720ef07f Mon Sep 17 00:00:00 2001 From: zman-ms Date: Tue, 9 Jan 2024 16:39:19 -0800 Subject: [PATCH 02/16] copied examples --- .../FleetMembers_Create.json | 68 ++++++ .../FleetMembers_Delete.json | 21 ++ .../2024-02-02-preview/FleetMembers_Get.json | 36 ++++ .../FleetMembers_ListByFleet.json | 37 ++++ .../FleetMembers_Update.json | 48 +++++ .../Fleets_CreateOrUpdate.json | 103 +++++++++ .../2024-02-02-preview/Fleets_Delete.json | 20 ++ .../2024-02-02-preview/Fleets_Get.json | 48 +++++ .../Fleets_ListByResourceGroup.json | 49 +++++ .../2024-02-02-preview/Fleets_ListBySub.json | 48 +++++ .../Fleets_ListCredentialsResult.json | 22 ++ .../2024-02-02-preview/Fleets_PatchTags.json | 61 ++++++ .../2024-02-02-preview/Operations_List.json | 25 +++ .../UpdateRuns_CreateOrUpdate.json | 196 ++++++++++++++++++ .../2024-02-02-preview/UpdateRuns_Delete.json | 21 ++ .../2024-02-02-preview/UpdateRuns_Get.json | 90 ++++++++ .../UpdateRuns_ListByFleet.json | 94 +++++++++ .../examples/Operations_List.json | 2 +- .../preview/2024-02-02-preview/fleets.json | 85 ++++++++ 19 files changed, 1073 insertions(+), 1 deletion(-) create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Create.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Delete.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Get.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_ListByFleet.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Update.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_CreateOrUpdate.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Delete.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Get.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListByResourceGroup.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListBySub.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListCredentialsResult.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_PatchTags.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_CreateOrUpdate.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Delete.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Get.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_ListByFleet.json diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Create.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Create.json new file mode 100644 index 000000000000..e3f2759e9ef9 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Create.json @@ -0,0 +1,68 @@ +{ + "operationId": "FleetMembers_Create", + "title": "Creates a FleetMember resource with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1", + "resource": { + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1" + } + } + }, + "responses": { + "201": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "23ujdflewrj3=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + }, + "200": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "23ujdflewrj3=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Delete.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Delete.json new file mode 100644 index 000000000000..96ea318bfb1c --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "FleetMembers_Delete", + "title": "Deletes a FleetMember resource asynchronously with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Get.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Get.json new file mode 100644 index 000000000000..e1bbe2da8cb6 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Get.json @@ -0,0 +1,36 @@ +{ + "operationId": "FleetMembers_Get", + "title": "Gets a FleetMember resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1" + }, + "responses": { + "200": { + "headers": { + "ETag": "kd30rkdfo49=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "kd30rkdfo49=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_ListByFleet.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_ListByFleet.json new file mode 100644 index 000000000000..b82dbb7b76a0 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_ListByFleet.json @@ -0,0 +1,37 @@ +{ + "operationId": "FleetMembers_ListByFleet", + "title": "Lists the members of a Fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "kd30rkdfo49=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Update.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Update.json new file mode 100644 index 000000000000..ba8d1f69123a --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Update.json @@ -0,0 +1,48 @@ +{ + "operationId": "FleetMembers_Update", + "title": "Updates a FleetMember resource synchronously.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1", + "properties": { + "properties": { + "group": "staging" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "23ujdflewrj3=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "group": "staging", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Retry-After": "20", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_CreateOrUpdate.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_CreateOrUpdate.json new file mode 100644 index 000000000000..2a0e618cb213 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_CreateOrUpdate.json @@ -0,0 +1,103 @@ +{ + "operationId": "Fleets_CreateOrUpdate", + "title": "Creates a Fleet resource with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "resource": { + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "agentProfile": { + "vmSize": "Standard_DS1" + } + } + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Updating" + } + } + }, + "201": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet1", + "name": "fleet1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Delete.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Delete.json new file mode 100644 index 000000000000..c77c8535ffb8 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Delete.json @@ -0,0 +1,20 @@ +{ + "operationId": "Fleets_Delete", + "title": "Deletes a Fleet resource asynchronously with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Get.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Get.json new file mode 100644 index 000000000000..4c6ff8a5610e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Get.json @@ -0,0 +1,48 @@ +{ + "operationId": "Fleets_Get", + "title": "Gets a Fleet resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListByResourceGroup.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListByResourceGroup.json new file mode 100644 index 000000000000..0ea97f40c667 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListByResourceGroup.json @@ -0,0 +1,49 @@ +{ + "operationId": "Fleets_ListByResourceGroup", + "title": "Lists the Fleet resources in a resource group.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListBySub.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListBySub.json new file mode 100644 index 000000000000..93c05450e1ab --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListBySub.json @@ -0,0 +1,48 @@ +{ + "operationId": "Fleets_ListBySubscription", + "title": "Lists the Fleet resources in a subscription.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListCredentialsResult.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListCredentialsResult.json new file mode 100644 index 000000000000..f07524926a1b --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListCredentialsResult.json @@ -0,0 +1,22 @@ +{ + "operationId": "Fleets_ListCredentials", + "title": "Lists the user credentials of a Fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet" + }, + "responses": { + "200": { + "body": { + "kubeconfigs": [ + { + "name": "credentialName1", + "value": "Y3JlZGVudGlhbFZhbHVlMQ==" + } + ] + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_PatchTags.json new file mode 100644 index 000000000000..7d6ac5ac3bd8 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_PatchTags.json @@ -0,0 +1,61 @@ +{ + "operationId": "Fleets_Update", + "title": "Update a Fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "If-Match": "dfjkwelr7384", + "properties": { + "tags": { + "tier": "secure", + "env": "prod" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "secure", + "env": "prod" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Retry-After": "20", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json new file mode 100644 index 000000000000..cdc0a85b3463 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json @@ -0,0 +1,25 @@ +{ + "operationId": "Operations_List", + "title": "List the operations for the provider.", + "parameters": { + "api-version": "2023-08-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "display": { + "description": "Gets the status of an asynchronous operation", + "operation": "Get Operation", + "provider": "Microsoft Container Service", + "resource": "Operation" + }, + "name": "Microsoft.ContainerService/locations/operations/read", + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_CreateOrUpdate.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_CreateOrUpdate.json new file mode 100644 index 000000000000..d53cf937fc4e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_CreateOrUpdate.json @@ -0,0 +1,196 @@ +{ + "operationId": "UpdateRuns_CreateOrUpdate", + "title": "Create an UpdateRun.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1", + "resource": { + "properties": { + "updateStrategyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "updateStrategyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "updateStrategyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Delete.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Delete.json new file mode 100644 index 000000000000..4943c4c2100b --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "UpdateRuns_Delete", + "title": "Delete an updateRun resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-09-02-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-09-02-preview" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Get.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Get.json new file mode 100644 index 000000000000..4b96e44e784e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Get.json @@ -0,0 +1,90 @@ +{ + "operationId": "UpdateRuns_Get", + "title": "Gets an UpdateRun resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_ListByFleet.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_ListByFleet.json new file mode 100644 index 000000000000..d5d987b71552 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_ListByFleet.json @@ -0,0 +1,94 @@ +{ + "operationId": "UpdateRuns_ListByFleet", + "title": "Lists the UpdateRun resources by fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json index aa8f9f0ceb96..cdc0a85b3463 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json @@ -2,7 +2,7 @@ "operationId": "Operations_List", "title": "List the operations for the provider.", "parameters": { - "api-version": "2024-02-02-preview" + "api-version": "2023-08-15-preview" }, "responses": { "200": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index 6bbb51d33866..ffb3435eed15 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -82,6 +82,11 @@ } } }, + "x-ms-examples": { + "List the operations for the provider.": { + "$ref": "./examples/Operations_List.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -116,6 +121,11 @@ } } }, + "x-ms-examples": { + "Lists the Fleet resources in a subscription.": { + "$ref": "./examples/Fleets_ListBySub.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -153,6 +163,11 @@ } } }, + "x-ms-examples": { + "Lists the Fleet resources in a resource group.": { + "$ref": "./examples/Fleets_ListByResourceGroup.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -199,6 +214,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets a Fleet resource.": { + "$ref": "./examples/Fleets_Get.json" + } } }, "put": { @@ -280,6 +300,11 @@ } } }, + "x-ms-examples": { + "Creates a Fleet resource with a long running operation.": { + "$ref": "./examples/Fleets_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -357,6 +382,11 @@ } } }, + "x-ms-examples": { + "Update a Fleet.": { + "$ref": "./examples/Fleets_PatchTags.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -425,6 +455,11 @@ } } }, + "x-ms-examples": { + "Deletes a Fleet resource asynchronously with a long running operation.": { + "$ref": "./examples/Fleets_Delete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -472,6 +507,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Lists the user credentials of a Fleet.": { + "$ref": "./examples/Fleets_ListCredentialsResult.json" + } } } }, @@ -517,6 +557,11 @@ } } }, + "x-ms-examples": { + "Lists the members of a Fleet.": { + "$ref": "./examples/FleetMembers_ListByFleet.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -573,6 +618,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets a FleetMember resource.": { + "$ref": "./examples/FleetMembers_Get.json" + } } }, "put": { @@ -664,6 +714,11 @@ } } }, + "x-ms-examples": { + "Creates a FleetMember resource with a long running operation.": { + "$ref": "./examples/FleetMembers_Create.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -751,6 +806,11 @@ } } }, + "x-ms-examples": { + "Updates a FleetMember resource synchronously.": { + "$ref": "./examples/FleetMembers_Update.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -829,6 +889,11 @@ } } }, + "x-ms-examples": { + "Deletes a FleetMember resource asynchronously with a long running operation.": { + "$ref": "./examples/FleetMembers_Delete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -877,6 +942,11 @@ } } }, + "x-ms-examples": { + "Lists the UpdateRun resources by fleet.": { + "$ref": "./examples/UpdateRuns_ListByFleet.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -933,6 +1003,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets an UpdateRun resource.": { + "$ref": "./examples/UpdateRuns_Get.json" + } } }, "put": { @@ -1024,6 +1099,11 @@ } } }, + "x-ms-examples": { + "Create an UpdateRun.": { + "$ref": "./examples/UpdateRuns_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -1102,6 +1182,11 @@ } } }, + "x-ms-examples": { + "Delete an updateRun resource.": { + "$ref": "./examples/UpdateRuns_Delete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, From fd52b9c79befdc13e27d84c017b74746dc9c9a0d Mon Sep 17 00:00:00 2001 From: zman-ms Date: Tue, 9 Jan 2024 17:07:28 -0800 Subject: [PATCH 03/16] fix typo --- .../containerservice/Fleet.Management/update/run.tsp | 4 ++-- .../fleet/preview/2024-02-02-preview/fleets.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/containerservice/Fleet.Management/update/run.tsp b/specification/containerservice/Fleet.Management/update/run.tsp index d172f67c7f4d..c748867b950d 100644 --- a/specification/containerservice/Fleet.Management/update/run.tsp +++ b/specification/containerservice/Fleet.Management/update/run.tsp @@ -295,7 +295,7 @@ enum TargetType { @doc("Skip the update of a group.") Group, - @doc("Skip the update of an entire stage inclusing the after stage wait.") + @doc("Skip the update of an entire stage including the after stage wait.") Stage, @doc("Skip the update of the after stage wait of a certain stage.") @@ -311,7 +311,7 @@ model SkipRequest { @doc(""" The skip target. To skip a member/group/stage, use the member/group/stage's name; - Tp skip an after satge wait, use the parent stage's name. + Tp skip an after stage wait, use the parent stage's name. """) target: string; } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index ffb3435eed15..a3c1f6680596 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -2322,7 +2322,7 @@ }, "target": { "type": "string", - "description": "The skip target. \nTo skip a member/group/stage, use the member/group/stage's name;\nTp skip an after satge wait, use the parent stage's name." + "description": "The skip target. \nTo skip a member/group/stage, use the member/group/stage's name;\nTp skip an after stage wait, use the parent stage's name." } }, "required": [ @@ -2356,7 +2356,7 @@ { "name": "Stage", "value": "Stage", - "description": "Skip the update of an entire stage inclusing the after stage wait." + "description": "Skip the update of an entire stage including the after stage wait." }, { "name": "AfterStageWait", From b8ce4b2509b505566ff0a1f36d3da1f3bc66794f Mon Sep 17 00:00:00 2001 From: zman-ms Date: Wed, 10 Jan 2024 10:56:54 -0800 Subject: [PATCH 04/16] fix example --- .../examples/2024-02-02-preview/Operations_List.json | 2 +- specification/containerservice/Fleet.Management/update/run.tsp | 1 - .../preview/2024-02-02-preview/examples/Operations_List.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json index cdc0a85b3463..aa8f9f0ceb96 100644 --- a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json @@ -2,7 +2,7 @@ "operationId": "Operations_List", "title": "List the operations for the provider.", "parameters": { - "api-version": "2023-08-15-preview" + "api-version": "2024-02-02-preview" }, "responses": { "200": { diff --git a/specification/containerservice/Fleet.Management/update/run.tsp b/specification/containerservice/Fleet.Management/update/run.tsp index c748867b950d..925c3dfd6c89 100644 --- a/specification/containerservice/Fleet.Management/update/run.tsp +++ b/specification/containerservice/Fleet.Management/update/run.tsp @@ -316,7 +316,6 @@ model SkipRequest { target: string; } - @doc("The properties of a skip operation containing multiple skip requests.") @added(Versions.v2024_02_02_preview) model SkipProperties { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json index cdc0a85b3463..aa8f9f0ceb96 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json @@ -2,7 +2,7 @@ "operationId": "Operations_List", "title": "List the operations for the provider.", "parameters": { - "api-version": "2023-08-15-preview" + "api-version": "2024-02-02-preview" }, "responses": { "200": { From 87be8a7d213478579fdf7e165afe4459c5ad778e Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 13:24:19 -0800 Subject: [PATCH 05/16] add missing examples --- .../UpdateStrategies_CreateOrUpdate.json | 94 +++++++++++++++++++ .../UpdateStrategies_Delete.json | 21 +++++ .../UpdateStrategies_Get.json | 45 +++++++++ .../UpdateStrategies_ListByFleet.json | 49 ++++++++++ .../preview/2024-02-02-preview/fleets.json | 20 ++++ 5 files changed, 229 insertions(+) create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_CreateOrUpdate.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Delete.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Get.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_ListByFleet.json diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_CreateOrUpdate.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_CreateOrUpdate.json new file mode 100644 index 000000000000..99d05f6b9cb1 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_CreateOrUpdate.json @@ -0,0 +1,94 @@ +{ + "operationId": "FleetUpdateStrategies_CreateOrUpdate", + "title": "Create a FleetUpdateStrategy.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateStrategyName": "strartegy1", + "resource": { + "properties": { + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "name": "strategy1", + "type": "Microsoft.ContainerService/fleets/updateStrategies", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "name": "strategy1", + "type": "Microsoft.ContainerService/fleets/updateStrategies", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Delete.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Delete.json new file mode 100644 index 000000000000..db050c2f3553 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "FleetUpdateStrategies_Delete", + "title": "Delete a FleetUpdateStrategy resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateStrategyName": "strategy1" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-09-02-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-09-02-preview" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Get.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Get.json new file mode 100644 index 000000000000..437ab957b3bd --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_Get.json @@ -0,0 +1,45 @@ +{ + "operationId": "FleetUpdateStrategies_Get", + "title": "Get a FleetUpdateStrategy resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateStrategyName": "strategy1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "name": "strategy1", + "type": "Microsoft.ContainerService/fleets/updateStrategies", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_ListByFleet.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_ListByFleet.json new file mode 100644 index 000000000000..9f09d567e9da --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateStrategies_ListByFleet.json @@ -0,0 +1,49 @@ +{ + "operationId": "FleetUpdateStrategies_ListByFleet", + "title": "List the FleetUpdateStrategy resources by fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "name": "strategy1", + "type": "Microsoft.ContainerService/fleets/updateStrategies", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index a3c1f6680596..6af35d55285c 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -1466,6 +1466,11 @@ } } }, + "x-ms-examples": { + "List the FleetUpdateStrategy resources by fleet.": { + "$ref": "./examples/UpdateStrategies_ListByFleet.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -1522,6 +1527,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Get a FleetUpdateStrategy resource.": { + "$ref": "./examples/UpdateStrategies_Get.json" + } } }, "put": { @@ -1613,6 +1623,11 @@ } } }, + "x-ms-examples": { + "Create a FleetUpdateStrategy.": { + "$ref": "./examples/UpdateStrategies_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -1691,6 +1706,11 @@ } } }, + "x-ms-examples": { + "Delete a FleetUpdateStrategy resource.": { + "$ref": "./examples/UpdateStrategies_Delete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, From 965ecec1c140d0eb6dc7491537f664137fb551df Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 14:00:44 -0800 Subject: [PATCH 06/16] add missing examples --- .../2024-02-02-preview/UpdateRuns_Skip.json | 130 ++++++++++++++++++ .../2024-02-02-preview/UpdateRuns_Start.json | 99 +++++++++++++ .../2024-02-02-preview/UpdateRuns_Stop.json | 99 +++++++++++++ .../examples/UpdateRuns_Skip.json | 130 ++++++++++++++++++ .../preview/2024-02-02-preview/fleets.json | 15 ++ 5 files changed, 473 insertions(+) create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Start.json create mode 100644 specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Stop.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json new file mode 100644 index 000000000000..9755de7e0786 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json @@ -0,0 +1,130 @@ +{ + "operationId": "UpdateRuns_Skip", + "title": "Skips one or more member/group/stage/afterstagewait(s) of an UpdateRun.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1", + "properties": { + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" + } + ] + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:09:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + }, + { + "name": "group-b" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "stages": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "name": "stage1", + "groups": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Skipped" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "Skipped" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster-1" + } + ] + }, + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "name": "group-b", + "members": [ + { + "status": { + "state": "Running" + }, + "name": "member-two", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster-2" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "Skipped" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Start.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Start.json new file mode 100644 index 000000000000..254b0b02b9d2 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Start.json @@ -0,0 +1,99 @@ +{ + "operationId": "UpdateRuns_Start", + "title": "Starts an UpdateRun.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:09:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "stages": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "name": "stage1", + "groups": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "Running" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Stop.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Stop.json new file mode 100644 index 000000000000..d25b413bb0a4 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Stop.json @@ -0,0 +1,99 @@ +{ + "operationId": "UpdateRuns_Stop", + "title": "Stops an UpdateRun.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:09:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Stopping" + }, + "stages": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Stopping" + }, + "name": "stage1", + "groups": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Stopping" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "Stopping" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json new file mode 100644 index 000000000000..9755de7e0786 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json @@ -0,0 +1,130 @@ +{ + "operationId": "UpdateRuns_Skip", + "title": "Skips one or more member/group/stage/afterstagewait(s) of an UpdateRun.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1", + "properties": { + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" + } + ] + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:09:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + }, + { + "name": "group-b" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "stages": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "name": "stage1", + "groups": [ + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Skipped" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "Skipped" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster-1" + } + ] + }, + { + "status": { + "startTime": "2023-03-01T01:10:08.395Z", + "state": "Running" + }, + "name": "group-b", + "members": [ + { + "status": { + "state": "Running" + }, + "name": "member-two", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster-2" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "Skipped" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + }, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index 6af35d55285c..ce33924ed4a0 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -1261,6 +1261,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Skips one or more member/group/stage/afterstagewait(s) of an UpdateRun.": { + "$ref": "./examples/UpdateRuns_Skip.json" + } } } }, @@ -1338,6 +1343,11 @@ } } }, + "x-ms-examples": { + "Starts an UpdateRun.": { + "$ref": "./examples/UpdateRuns_Start.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -1418,6 +1428,11 @@ } } }, + "x-ms-examples": { + "Stops an UpdateRun.": { + "$ref": "./examples/UpdateRuns_Stop.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, From 0c61013e99cb635ac4f6b4c1c2a9000e645df683 Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 14:01:34 -0800 Subject: [PATCH 07/16] fix examples --- .../examples/2024-02-02-preview/UpdateRuns_Skip.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json index 9755de7e0786..62d5b4c37f12 100644 --- a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json @@ -119,12 +119,6 @@ }, "eTag": "\"EtagValue\"" } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" - } } } } From 758959b49f9ce2de1c9d923db60242eeca7571fc Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 14:01:50 -0800 Subject: [PATCH 08/16] fix examples --- .../2024-02-02-preview/examples/UpdateRuns_Skip.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json index 9755de7e0786..62d5b4c37f12 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json @@ -119,12 +119,6 @@ }, "eTag": "\"EtagValue\"" } - }, - "202": { - "headers": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" - } } } } From b2d2518579fc86b3045892b6545051ad160cea4d Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 14:07:58 -0800 Subject: [PATCH 09/16] fix examples --- .../2024-02-02-preview/UpdateRuns_Skip.json | 22 ++++++++++--------- .../examples/UpdateRuns_Skip.json | 22 ++++++++++--------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json index 62d5b4c37f12..4134c5b3f698 100644 --- a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json @@ -8,16 +8,18 @@ "fleetName": "fleet1", "updateRunName": "run1", "properties": { - "targets": [ - { - "type": "Member", - "target": "member-one" - }, - { - "type": "AfterStageWait", - "target": "stage1" - } - ] + "properties": { + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" + } + ] + } } }, "responses": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json index 62d5b4c37f12..4134c5b3f698 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json @@ -8,16 +8,18 @@ "fleetName": "fleet1", "updateRunName": "run1", "properties": { - "targets": [ - { - "type": "Member", - "target": "member-one" - }, - { - "type": "AfterStageWait", - "target": "stage1" - } - ] + "properties": { + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" + } + ] + } } }, "responses": { From 079445a324cfe01fc267678cfff5bec7554319e1 Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 14:55:34 -0800 Subject: [PATCH 10/16] fix examples --- .../examples/2024-02-02-preview/UpdateRuns_Skip.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json index 4134c5b3f698..7c935acb974f 100644 --- a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json @@ -1,6 +1,6 @@ { "operationId": "UpdateRuns_Skip", - "title": "Skips one or more member/group/stage/afterstagewait(s) of an UpdateRun.", + "title": "Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun.", "parameters": { "api-version": "2024-02-02-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", From b22030966731758e60fecb527df47d8700da5ab3 Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 14:55:47 -0800 Subject: [PATCH 11/16] fix examples --- .../preview/2024-02-02-preview/examples/UpdateRuns_Skip.json | 2 +- .../fleet/preview/2024-02-02-preview/fleets.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json index 4134c5b3f698..7c935acb974f 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json @@ -1,6 +1,6 @@ { "operationId": "UpdateRuns_Skip", - "title": "Skips one or more member/group/stage/afterstagewait(s) of an UpdateRun.", + "title": "Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun.", "parameters": { "api-version": "2024-02-02-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index ce33924ed4a0..a3e43214b12a 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -1263,7 +1263,7 @@ } }, "x-ms-examples": { - "Skips one or more member/group/stage/afterstagewait(s) of an UpdateRun.": { + "Skips one or more member/group/stage/afterStageWait(s) of an UpdateRun.": { "$ref": "./examples/UpdateRuns_Skip.json" } } From 0e42f77180e0ae53bfb45ddec560107d5845b0ae Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 15:02:59 -0800 Subject: [PATCH 12/16] fix examples --- .../2024-02-02-preview/UpdateRuns_Skip.json | 22 ++++++++----------- .../examples/UpdateRuns_Skip.json | 22 ++++++++----------- 2 files changed, 18 insertions(+), 26 deletions(-) diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json index 7c935acb974f..06d7e98383d4 100644 --- a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json @@ -7,20 +7,16 @@ "resourceGroupName": "rg1", "fleetName": "fleet1", "updateRunName": "run1", - "properties": { - "properties": { - "targets": [ - { - "type": "Member", - "target": "member-one" - }, - { - "type": "AfterStageWait", - "target": "stage1" - } - ] + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" } - } + ] }, "responses": { "200": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json index 7c935acb974f..06d7e98383d4 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json @@ -7,20 +7,16 @@ "resourceGroupName": "rg1", "fleetName": "fleet1", "updateRunName": "run1", - "properties": { - "properties": { - "targets": [ - { - "type": "Member", - "target": "member-one" - }, - { - "type": "AfterStageWait", - "target": "stage1" - } - ] + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" } - } + ] }, "responses": { "200": { From 4d64e1270b6ac0398b32f806464d31be4899b7e1 Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 11 Jan 2024 15:18:31 -0800 Subject: [PATCH 13/16] fix examples --- .../2024-02-02-preview/UpdateRuns_Skip.json | 22 ++++++++++--------- .../examples/UpdateRuns_Skip.json | 22 ++++++++++--------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json index 06d7e98383d4..4909edad9b8e 100644 --- a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Skip.json @@ -7,16 +7,18 @@ "resourceGroupName": "rg1", "fleetName": "fleet1", "updateRunName": "run1", - "targets": [ - { - "type": "Member", - "target": "member-one" - }, - { - "type": "AfterStageWait", - "target": "stage1" - } - ] + "body": { + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" + } + ] + } }, "responses": { "200": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json index 06d7e98383d4..4909edad9b8e 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/UpdateRuns_Skip.json @@ -7,16 +7,18 @@ "resourceGroupName": "rg1", "fleetName": "fleet1", "updateRunName": "run1", - "targets": [ - { - "type": "Member", - "target": "member-one" - }, - { - "type": "AfterStageWait", - "target": "stage1" - } - ] + "body": { + "targets": [ + { + "type": "Member", + "target": "member-one" + }, + { + "type": "AfterStageWait", + "target": "stage1" + } + ] + } }, "responses": { "200": { From a1ef4c98d3bf7ec0d95c2ebf23fe22435d7ded35 Mon Sep 17 00:00:00 2001 From: zman-ms Date: Fri, 12 Jan 2024 14:11:07 -0800 Subject: [PATCH 14/16] add fleet hub profile back --- .../Fleet.Management/fleet.tsp | 5 + .../preview/2024-02-02-preview/fleets.json | 116 ++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/specification/containerservice/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index f5ef8cbfc09a..5798e3f9af96 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -50,7 +50,12 @@ model FleetProperties { #suppress "@azure-tools/typespec-providerhub/non-breaking-versioning" "https://github.com/Azure/typespec-azure/issues/3558" @doc("The FleetHubProfile configures the Fleet's hub.") + @added(Versions.v2022_09_02_preview) + @added(Versions.v2023_03_15_preview) + @added(Versions.v2023_06_15_preview) + @added(Versions.v2023_08_15_preview) @removed(Versions.v2023_10_15) + @added(Versions.v2024_02_02_preview) hubProfile?: FleetHubProfile; } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index a3e43214b12a..2d41773609e7 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -1734,6 +1734,58 @@ } }, "definitions": { + "APIServerAccessProfile": { + "type": "object", + "description": "Access profile for the Fleet hub API server.", + "properties": { + "enablePrivateCluster": { + "type": "boolean", + "description": "Whether to create the Fleet hub as a private cluster or not.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "enableVnetIntegration": { + "type": "boolean", + "description": "Whether to enable apiserver vnet integration for the Fleet hub or not.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "subnetId": { + "$ref": "#/definitions/SubnetResourceId", + "description": "The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet.", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "AgentProfile": { + "type": "object", + "description": "Agent profile for the Fleet hub.", + "properties": { + "subnetId": { + "$ref": "#/definitions/SubnetResourceId", + "description": "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.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "vmSize": { + "type": "string", + "description": "The virtual machine size of the Fleet hub.", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, "ClusterResourceId": { "type": "string", "format": "arm-id", @@ -1809,6 +1861,54 @@ } } }, + "FleetHubProfile": { + "type": "object", + "description": "The FleetHubProfile configures the fleet hub.", + "properties": { + "dnsPrefix": { + "type": "string", + "description": "DNS prefix used to create the FQDN for the Fleet hub.", + "minLength": 1, + "maxLength": 54, + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "apiServerAccessProfile": { + "$ref": "#/definitions/APIServerAccessProfile", + "description": "The access profile for the Fleet hub API server.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "agentProfile": { + "$ref": "#/definitions/AgentProfile", + "description": "The agent profile for the Fleet hub.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "fqdn": { + "type": "string", + "description": "The FQDN of the Fleet hub.", + "readOnly": true + }, + "kubernetesVersion": { + "type": "string", + "description": "The Kubernetes version of the Fleet hub.", + "readOnly": true + }, + "portalFqdn": { + "type": "string", + "description": "The Azure Portal FQDN of the Fleet hub.", + "readOnly": true + } + } + }, "FleetListResult": { "type": "object", "description": "The response of a Fleet list operation.", @@ -2001,6 +2101,10 @@ "$ref": "#/definitions/FleetProvisioningState", "description": "The status of the last operation.", "readOnly": true + }, + "hubProfile": { + "$ref": "#/definitions/FleetHubProfile", + "description": "The FleetHubProfile configures the Fleet's hub." } } }, @@ -2365,6 +2469,18 @@ "target" ] }, + "SubnetResourceId": { + "type": "string", + "format": "arm-id", + "description": "A type definition that refers the id to an ARM resource.", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + } + }, "TargetType": { "type": "string", "description": "The target type of a skip request.", From fd06839e1fea18617f4c59b62d3026b4aed6228f Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 18 Jan 2024 14:01:23 -0800 Subject: [PATCH 15/16] custom-words --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index f2f50c3db1b7..db672e292548 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -558,6 +558,7 @@ connectionstrings conntrack consistencygroup consumergroups +containerd containerid containerinstance containerlogs From 4e3ad8ab59c6771473aa1e538be93ee1b711cb37 Mon Sep 17 00:00:00 2001 From: zman-ms Date: Thu, 18 Jan 2024 14:09:51 -0800 Subject: [PATCH 16/16] readOnly schema --- .../containerservice/Fleet.Management/tspconfig.yaml | 1 + .../fleet/preview/2022-09-02-preview/fleets.json | 6 ++++-- .../fleet/preview/2023-03-15-preview/fleets.json | 9 ++++++--- .../fleet/preview/2023-06-15-preview/fleets.json | 9 ++++++--- .../fleet/preview/2023-08-15-preview/fleets.json | 12 ++++++++---- .../fleet/preview/2024-02-02-preview/fleets.json | 12 ++++++++---- .../fleet/stable/2023-10-15/fleets.json | 12 ++++++++---- 7 files changed, 41 insertions(+), 20 deletions(-) diff --git a/specification/containerservice/Fleet.Management/tspconfig.yaml b/specification/containerservice/Fleet.Management/tspconfig.yaml index ffd0e4e00f32..4d987e847d4c 100644 --- a/specification/containerservice/Fleet.Management/tspconfig.yaml +++ b/specification/containerservice/Fleet.Management/tspconfig.yaml @@ -13,3 +13,4 @@ options: examples-directory: "examples" output-file: "{azure-resource-provider-folder}/{service-name}/fleet/{version-status}/{version}/fleets.json" omit-unreachable-types: true + use-read-only-status-schema: true diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json index e810d09689bb..1322142a4dac 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/fleets.json @@ -1019,7 +1019,8 @@ "description": "The provisioning state of a member being updated." } ] - } + }, + "readOnly": true }, "FleetPatch": { "type": "object", @@ -1095,7 +1096,8 @@ "description": "The provisioning state of a fleet being deleted." } ] - } + }, + "readOnly": true } }, "parameters": {} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json index 7fed6259e2b7..7f8ca6012e4e 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/fleets.json @@ -1566,7 +1566,8 @@ "description": "The provisioning state of a member being updated." } ] - } + }, + "readOnly": true }, "FleetMemberUpdate": { "type": "object", @@ -1665,7 +1666,8 @@ "description": "The provisioning state of a fleet being deleted." } ] - } + }, + "readOnly": true }, "KubernetesVersion": { "type": "string" @@ -1894,7 +1896,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "UpdateRunStatus": { "type": "object", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/fleets.json index 261e53e71b90..d2803c31757d 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/fleets.json @@ -1666,7 +1666,8 @@ "description": "The provisioning state of a member being updated." } ] - } + }, + "readOnly": true }, "FleetMemberUpdate": { "type": "object", @@ -1769,7 +1770,8 @@ "description": "The provisioning state of a fleet being deleted." } ] - } + }, + "readOnly": true }, "KubernetesVersion": { "type": "string" @@ -2092,7 +2094,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "UpdateRunStatus": { "type": "object", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-08-15-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-08-15-preview/fleets.json index c43c26eeec96..688ad04fa717 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-08-15-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-08-15-preview/fleets.json @@ -1975,7 +1975,8 @@ "description": "The provisioning state of a member being updated." } ] - } + }, + "readOnly": true }, "FleetMemberUpdate": { "type": "object", @@ -2078,7 +2079,8 @@ "description": "The provisioning state of a fleet being deleted." } ] - } + }, + "readOnly": true }, "FleetUpdateStrategy": { "type": "object", @@ -2177,7 +2179,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "FleetUpdateStrategyResourceId": { "type": "string", @@ -2516,7 +2519,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "UpdateRunStatus": { "type": "object", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index 2d41773609e7..f1027de3f8a2 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -2051,7 +2051,8 @@ "description": "The provisioning state of a member being updated." } ] - } + }, + "readOnly": true }, "FleetMemberUpdate": { "type": "object", @@ -2154,7 +2155,8 @@ "description": "The provisioning state of a fleet being deleted." } ] - } + }, + "readOnly": true }, "FleetUpdateStrategy": { "type": "object", @@ -2253,7 +2255,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "FleetUpdateStrategyResourceId": { "type": "string", @@ -2665,7 +2668,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "UpdateRunStatus": { "type": "object", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/fleets.json index e1feabef7a95..2880694ec91d 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/stable/2023-10-15/fleets.json @@ -1875,7 +1875,8 @@ "description": "The provisioning state of a member being updated." } ] - } + }, + "readOnly": true }, "FleetMemberUpdate": { "type": "object", @@ -1974,7 +1975,8 @@ "description": "The provisioning state of a fleet being deleted." } ] - } + }, + "readOnly": true }, "FleetUpdateStrategy": { "type": "object", @@ -2073,7 +2075,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "FleetUpdateStrategyResourceId": { "type": "string", @@ -2400,7 +2403,8 @@ "description": "Resource creation was canceled." } ] - } + }, + "readOnly": true }, "UpdateRunStatus": { "type": "object",