From d6f2d7968f2dc5b33fcd205448d590a62743e1bd Mon Sep 17 00:00:00 2001 From: zman-ms <99997769+zman-ms@users.noreply.github.com> Date: Thu, 27 Jul 2023 13:06:33 -0700 Subject: [PATCH 01/12] Adds base for updating Microsoft.ContainerService/fleet from version preview/2023-03-15-preview to version 2023-06-15-preview --- .../examples/FleetMembers_Create.json | 68 + .../examples/FleetMembers_Delete.json | 21 + .../examples/FleetMembers_Get.json | 36 + .../examples/FleetMembers_ListByFleet.json | 37 + .../examples/FleetMembers_Update.json | 42 + .../examples/Fleets_CreateOrUpdate.json | 92 + .../examples/Fleets_Delete.json | 20 + .../examples/Fleets_Get.json | 44 + .../examples/Fleets_ListByResourceGroup.json | 45 + .../examples/Fleets_ListBySub.json | 44 + .../Fleets_ListCredentialsResult.json | 22 + .../examples/Fleets_PatchTags.json | 51 + .../examples/Operations_List.json | 25 + .../examples/UpdateRuns_CreateOrUpdate.json | 184 ++ .../examples/UpdateRuns_Delete.json | 21 + .../examples/UpdateRuns_Get.json | 87 + .../examples/UpdateRuns_ListByFleet.json | 91 + .../examples/UpdateRuns_Start.json | 96 + .../examples/UpdateRuns_Stop.json | 96 + .../preview/2023-06-15-preview/fleets.json | 2060 +++++++++++++++++ 20 files changed, 3182 insertions(+) create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json create mode 100644 specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/fleets.json diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json new file mode 100644 index 000000000000..86b3409ad58f --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json @@ -0,0 +1,68 @@ +{ + "operationId": "FleetMembers_Create", + "title": "Creates a FleetMember resource with a long running operation.", + "parameters": { + "api-version": "2023-03-15-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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json new file mode 100644 index 000000000000..22e5100cfe17 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "FleetMembers_Delete", + "title": "Deletes a FleetMember resource asynchronously with a long running operation.", + "parameters": { + "api-version": "2023-03-15-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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json new file mode 100644 index 000000000000..2a0bbdf0467b --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json @@ -0,0 +1,36 @@ +{ + "operationId": "FleetMembers_Get", + "title": "Gets a FleetMember resource.", + "parameters": { + "api-version": "2023-03-15-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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json new file mode 100644 index 000000000000..f89c30e89a0d --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json @@ -0,0 +1,37 @@ +{ + "operationId": "FleetMembers_ListByFleet", + "title": "Lists the members of a Fleet.", + "parameters": { + "api-version": "2023-03-15-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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json new file mode 100644 index 000000000000..d97d675a02af --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json @@ -0,0 +1,42 @@ +{ + "operationId": "FleetMembers_Update", + "title": "Updates a FleetMember resource synchronously.", + "parameters": { + "api-version": "2023-03-15-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" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json new file mode 100644 index 000000000000..27d11975019d --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json @@ -0,0 +1,92 @@ +{ + "operationId": "Fleets_CreateOrUpdate", + "title": "Creates a Fleet resource with a long running operation.", + "parameters": { + "api-version": "2023-03-15-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "resource": { + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1" + } + } + } + }, + "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", + "kubernetesVersion": "1.22.4" + }, + "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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json new file mode 100644 index 000000000000..e1a575b58e0c --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json @@ -0,0 +1,20 @@ +{ + "operationId": "Fleets_Delete", + "title": "Deletes a Fleet resource asynchronously with a long running operation.", + "parameters": { + "api-version": "2023-03-15-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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json new file mode 100644 index 000000000000..16feb42b8584 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json @@ -0,0 +1,44 @@ +{ + "operationId": "Fleets_Get", + "title": "Gets a Fleet resource.", + "parameters": { + "api-version": "2023-03-15-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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json new file mode 100644 index 000000000000..4befff30b7a3 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "operationId": "Fleets_ListByResourceGroup", + "title": "Lists the Fleet resources in a resource group.", + "parameters": { + "api-version": "2023-03-15-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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json new file mode 100644 index 000000000000..7805befeaad9 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json @@ -0,0 +1,44 @@ +{ + "operationId": "Fleets_ListBySubscription", + "title": "Lists the Fleet resources in a subscription.", + "parameters": { + "api-version": "2023-03-15-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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json new file mode 100644 index 000000000000..74f65dfa9bf4 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json @@ -0,0 +1,22 @@ +{ + "operationId": "Fleets_ListCredentials", + "title": "Lists the user credentials of a Fleet.", + "parameters": { + "api-version": "2023-03-15-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet" + }, + "responses": { + "200": { + "body": { + "kubeconfigs": [ + { + "name": "credentialName1", + "value": "Y3JlZGVudGlhbFZhbHVlMQ==" + } + ] + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json new file mode 100644 index 000000000000..455ebc78a602 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json @@ -0,0 +1,51 @@ +{ + "operationId": "Fleets_Update", + "title": "Update a Fleet.", + "parameters": { + "api-version": "2023-03-15-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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json new file mode 100644 index 000000000000..63f4ecf70748 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json @@ -0,0 +1,25 @@ +{ + "operationId": "Operations_List", + "title": "List the operations for the provider.", + "parameters": { + "api-version": "2023-03-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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json new file mode 100644 index 000000000000..ed12cb78523b --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json @@ -0,0 +1,184 @@ +{ + "operationId": "UpdateRuns_CreateOrUpdate", + "title": "Create an UpdateRun.", + "parameters": { + "api-version": "2023-03-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1", + "resource": { + "properties": { + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + } + } + } + } + }, + "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" + } + }, + "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", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + } + }, + "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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json new file mode 100644 index 000000000000..94e2f4015882 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "UpdateRuns_Delete", + "title": "Delete an updateRun resource.", + "parameters": { + "api-version": "2023-03-15-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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json new file mode 100644 index 000000000000..0ab4efd5fd9b --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json @@ -0,0 +1,87 @@ +{ + "operationId": "UpdateRuns_Get", + "title": "Gets an UpdateRun resource.", + "parameters": { + "api-version": "2023-03-15-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" + } + }, + "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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json new file mode 100644 index 000000000000..f1656a18428d --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json @@ -0,0 +1,91 @@ +{ + "operationId": "UpdateRuns_ListByFleet", + "title": "Lists the UpdateRun resources by fleet.", + "parameters": { + "api-version": "2023-03-15-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" + } + }, + "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/2023-06-15-preview/examples/UpdateRuns_Start.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json new file mode 100644 index 000000000000..f3981c852184 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json @@ -0,0 +1,96 @@ +{ + "operationId": "UpdateRuns_Start", + "title": "Starts an UpdateRun.", + "parameters": { + "api-version": "2023-03-15-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" + } + }, + "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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json new file mode 100644 index 000000000000..ac26f8d48455 --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json @@ -0,0 +1,96 @@ +{ + "operationId": "UpdateRuns_Stop", + "title": "Stops an UpdateRun.", + "parameters": { + "api-version": "2023-03-15-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" + } + }, + "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/2023-06-15-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/fleets.json new file mode 100644 index 000000000000..415fdbc2001e --- /dev/null +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/fleets.json @@ -0,0 +1,2060 @@ +{ + "swagger": "2.0", + "info": { + "title": "ContainerServiceFleetClient", + "version": "2023-03-15-preview", + "description": "Azure Kubernetes Fleet Manager api client.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "host": "management.azure.com", + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow.", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "tags": [ + { + "name": "Operations" + }, + { + "name": "Fleets" + }, + { + "name": "FleetMembers" + }, + { + "name": "UpdateRuns" + } + ], + "paths": { + "/providers/Microsoft.ContainerService/operations": { + "get": { + "operationId": "Operations_List", + "tags": [ + "Operations" + ], + "description": "List the operations for the provider", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List the operations for the provider.": { + "$ref": "./examples/Operations_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/fleets": { + "get": { + "operationId": "Fleets_ListBySubscription", + "tags": [ + "Fleets" + ], + "description": "Lists fleets in the specified subscription.", + "parameters": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists the Fleet resources in a subscription.": { + "$ref": "./examples/Fleets_ListBySub.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets": { + "get": { + "operationId": "Fleets_ListByResourceGroup", + "tags": [ + "Fleets" + ], + "description": "Lists fleets in the specified subscription and resource group.", + "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" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists the Fleet resources in a resource group.": { + "$ref": "./examples/Fleets_ListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}": { + "get": { + "operationId": "Fleets_Get", + "tags": [ + "Fleets" + ], + "description": "Gets a Fleet.", + "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": "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])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Fleet" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets a Fleet resource.": { + "$ref": "./examples/Fleets_Get.json" + } + } + }, + "put": { + "operationId": "Fleets_CreateOrUpdate", + "tags": [ + "Fleets" + ], + "description": "Creates or updates a Fleet.", + "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": "If-None-Match", + "in": "header", + "description": "The request should only proceed if no entity matches this string.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "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": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/Fleet" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Fleet" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "schema": { + "$ref": "#/definitions/Fleet" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "Fleets_Update", + "tags": [ + "Fleets" + ], + "description": "Update a Fleet", + "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": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/FleetPatch" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/Fleet" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Update a Fleet.": { + "$ref": "./examples/Fleets_PatchTags.json" + } + } + }, + "delete": { + "operationId": "Fleets_Delete", + "tags": [ + "Fleets" + ], + "description": "Delete a Fleet", + "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])?$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/listCredentials": { + "post": { + "operationId": "Fleets_ListCredentials", + "tags": [ + "Fleets" + ], + "description": "Lists the user credentials of a Fleet.", + "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": "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])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetCredentialResults" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$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" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members": { + "get": { + "operationId": "FleetMembers_ListByFleet", + "tags": [ + "FleetMembers" + ], + "description": "List FleetMember resources by Fleet", + "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": "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])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetMemberListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists the members of a Fleet.": { + "$ref": "./examples/FleetMembers_ListByFleet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/members/{fleetMemberName}": { + "get": { + "operationId": "FleetMembers_Get", + "tags": [ + "FleetMembers" + ], + "description": "Get a FleetMember", + "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": "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": "fleetMemberName", + "in": "path", + "description": "The name of the Fleet member resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetMember" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Gets a FleetMember resource.": { + "$ref": "./examples/FleetMembers_Get.json" + } + } + }, + "put": { + "operationId": "FleetMembers_Create", + "tags": [ + "FleetMembers" + ], + "description": "Create a FleetMember", + "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": "If-None-Match", + "in": "header", + "description": "The request should only proceed if no entity matches this string.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "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": "fleetMemberName", + "in": "path", + "description": "The name of the Fleet member resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/FleetMember" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetMember" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetMember" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + }, + "x-ms-long-running-operation": true + }, + "patch": { + "operationId": "FleetMembers_Update", + "tags": [ + "FleetMembers" + ], + "description": "Update a FleetMember", + "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": "fleetMemberName", + "in": "path", + "description": "The name of the Fleet member resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + { + "name": "properties", + "in": "body", + "description": "The resource properties to be updated.", + "required": true, + "schema": { + "$ref": "#/definitions/FleetMemberUpdate" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/FleetMember" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Updates a FleetMember resource synchronously.": { + "$ref": "./examples/FleetMembers_Update.json" + } + } + }, + "delete": { + "operationId": "FleetMembers_Delete", + "tags": [ + "FleetMembers" + ], + "description": "Delete a FleetMember", + "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": "fleetMemberName", + "in": "path", + "description": "The name of the Fleet member resource.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "Resource deletion accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "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" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns": { + "get": { + "operationId": "UpdateRuns_ListByFleet", + "tags": [ + "UpdateRuns" + ], + "description": "List UpdateRun resources by Fleet", + "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": "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])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/UpdateRunListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Lists the UpdateRun resources by fleet.": { + "$ref": "./examples/UpdateRuns_ListByFleet.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/fleets/{fleetName}/updateRuns/{updateRunName}": { + "get": { + "operationId": "UpdateRuns_Get", + "tags": [ + "UpdateRuns" + ], + "description": "Get a UpdateRun", + "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": "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])?$" + } + ], + "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" + } + } + }, + "x-ms-examples": { + "Gets an UpdateRun resource.": { + "$ref": "./examples/UpdateRuns_Get.json" + } + } + }, + "put": { + "operationId": "UpdateRuns_CreateOrUpdate", + "tags": [ + "UpdateRuns" + ], + "description": "Create a UpdateRun", + "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": "If-None-Match", + "in": "header", + "description": "The request should only proceed if no entity matches this string.", + "required": false, + "type": "string", + "x-ms-client-name": "ifNoneMatch" + }, + { + "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": "resource", + "in": "body", + "description": "Resource create parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/UpdateRun" + } + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/UpdateRun" + } + }, + "201": { + "description": "ARM create operation completed successfully.", + "schema": { + "$ref": "#/definitions/UpdateRun" + }, + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create an UpdateRun.": { + "$ref": "./examples/UpdateRuns_CreateOrUpdate.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "x-ms-long-running-operation": true + }, + "delete": { + "operationId": "UpdateRuns_Delete", + "tags": [ + "UpdateRuns" + ], + "description": "Delete a UpdateRun", + "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])?$" + } + ], + "responses": { + "200": { + "description": "Resource deleted successfully." + }, + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "204": { + "description": "Resource deleted successfully." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "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}/start": { + "post": { + "operationId": "UpdateRuns_Start", + "tags": [ + "UpdateRuns" + ], + "description": "Starts an UpdateRun.", + "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])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/UpdateRun" + } + }, + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Starts an UpdateRun.": { + "$ref": "./examples/UpdateRuns_Start.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}/stop": { + "post": { + "operationId": "UpdateRuns_Stop", + "tags": [ + "UpdateRuns" + ], + "description": "Stops an UpdateRun.", + "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])?$" + } + ], + "responses": { + "200": { + "description": "ARM operation completed successfully.", + "schema": { + "$ref": "#/definitions/UpdateRun" + } + }, + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Stops an UpdateRun.": { + "$ref": "./examples/UpdateRuns_Stop.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "ClusterResourceId": { + "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.ContainerService/managedClusters" + } + ] + } + }, + "Fleet": { + "type": "object", + "description": "The Fleet resource.", + "properties": { + "properties": { + "$ref": "#/definitions/FleetProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "eTag": { + "type": "string", + "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource" + } + ] + }, + "FleetCredentialResult": { + "type": "object", + "description": "One credential result item.", + "properties": { + "name": { + "type": "string", + "description": "The name of the credential.", + "readOnly": true + }, + "value": { + "type": "string", + "format": "byte", + "description": "Base64-encoded Kubernetes configuration file.", + "readOnly": true + } + } + }, + "FleetCredentialResults": { + "type": "object", + "description": "The Credential results response.", + "properties": { + "kubeconfigs": { + "type": "array", + "description": "Array of base64-encoded Kubernetes configuration files.", + "items": { + "$ref": "#/definitions/FleetCredentialResult" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "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" + ] + }, + "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 + } + } + }, + "FleetListResult": { + "type": "object", + "description": "The response of a Fleet list operation.", + "properties": { + "value": { + "type": "array", + "description": "The Fleet items on this page", + "items": { + "$ref": "#/definitions/Fleet" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "FleetMember": { + "type": "object", + "description": "A member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure.", + "properties": { + "properties": { + "$ref": "#/definitions/FleetMemberProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "eTag": { + "type": "string", + "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "FleetMemberListResult": { + "type": "object", + "description": "The response of a FleetMember list operation.", + "properties": { + "value": { + "type": "array", + "description": "The FleetMember items on this page", + "items": { + "$ref": "#/definitions/FleetMember" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "FleetMemberProperties": { + "type": "object", + "description": "A member of the Fleet. It contains a reference to an existing Kubernetes cluster on Azure.", + "properties": { + "clusterResourceId": { + "$ref": "#/definitions/ClusterResourceId", + "description": "The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "group": { + "type": "string", + "description": "The group this member belongs to for multi-cluster update management.", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "provisioningState": { + "$ref": "#/definitions/FleetMemberProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + } + }, + "required": [ + "clusterResourceId" + ] + }, + "FleetMemberProvisioningState": { + "type": "string", + "description": "The provisioning state of the last accepted operation.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Joining", + "Leaving", + "Updating" + ], + "x-ms-enum": { + "name": "FleetMemberProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Joining", + "value": "Joining" + }, + { + "name": "Leaving", + "value": "Leaving" + }, + { + "name": "Updating", + "value": "Updating" + } + ] + } + }, + "FleetMemberUpdate": { + "type": "object", + "description": "The type used for update operations of the FleetMember.", + "properties": { + "properties": { + "$ref": "#/definitions/FleetMemberUpdateProperties", + "x-ms-client-flatten": true + } + } + }, + "FleetMemberUpdateProperties": { + "type": "object", + "description": "The updatable properties of the FleetMember.", + "properties": { + "group": { + "type": "string", + "description": "The group this member belongs to for multi-cluster update management.", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + } + }, + "FleetPatch": { + "type": "object", + "description": "Properties of a Fleet that can be patched.", + "properties": { + "tags": { + "type": "object", + "description": "Resource tags.", + "additionalProperties": { + "type": "string" + } + } + } + }, + "FleetProperties": { + "type": "object", + "description": "Fleet properties.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/FleetProvisioningState", + "description": "The status of the last operation.", + "readOnly": true + }, + "hubProfile": { + "$ref": "#/definitions/FleetHubProfile", + "description": "The FleetHubProfile configures the Fleet's hub." + } + } + }, + "FleetProvisioningState": { + "type": "string", + "description": "The provisioning state of the last accepted operation.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Creating", + "Updating", + "Deleting" + ], + "x-ms-enum": { + "name": "FleetProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + }, + { + "name": "Creating", + "value": "Creating" + }, + { + "name": "Updating", + "value": "Updating" + }, + { + "name": "Deleting", + "value": "Deleting" + } + ] + } + }, + "KubernetesVersion": { + "type": "string" + }, + "ManagedClusterUpdate": { + "type": "object", + "description": "The update to be applied to the ManagedClusters.", + "properties": { + "upgrade": { + "$ref": "#/definitions/ManagedClusterUpgradeSpec", + "description": "The upgrade to apply to the ManagedClusters." + } + }, + "required": [ + "upgrade" + ] + }, + "ManagedClusterUpgradeSpec": { + "type": "object", + "description": "The upgrade to apply to a ManagedCluster.", + "properties": { + "type": { + "$ref": "#/definitions/ManagedClusterUpgradeType", + "description": "The upgrade type.\nFull requires the KubernetesVersion property to be set.\nNodeImageOnly requires the KubernetesVersion property not to be set." + }, + "kubernetesVersion": { + "$ref": "#/definitions/KubernetesVersion", + "description": "The Kubernetes version to upgrade the member clusters to." + } + }, + "required": [ + "type" + ] + }, + "ManagedClusterUpgradeType": { + "type": "string", + "description": "The type of upgrade to perform when targeting ManagedClusters.", + "enum": [ + "Full", + "NodeImageOnly" + ], + "x-ms-enum": { + "name": "ManagedClusterUpgradeType", + "modelAsString": true, + "values": [ + { + "name": "Full", + "value": "Full", + "description": "Full upgrades the control plane and all agent pools of the target ManagedClusters." + }, + { + "name": "NodeImageOnly", + "value": "NodeImageOnly", + "description": "NodeImageOnly upgrades only the node images of the target ManagedClusters." + } + ] + } + }, + "MemberUpdateStatus": { + "type": "object", + "description": "The status of a member update operation.", + "properties": { + "status": { + "$ref": "#/definitions/UpdateStatus", + "description": "The status of the MemberUpdate operation.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the FleetMember.", + "readOnly": true + }, + "clusterResourceId": { + "type": "string", + "description": "The Azure resource id of the target Kubernetes cluster.", + "readOnly": true + }, + "operationId": { + "type": "string", + "description": "The operation resource id of the latest attempt to perform the operation.", + "readOnly": true + } + } + }, + "UpdateGroup": { + "type": "object", + "description": "A group to be updated.", + "properties": { + "name": { + "type": "string", + "description": "The name of the Fleet member group to update. \nIt should match the name of an existing FleetMember group.\nA group can only appear once across all UpdateStages in the UpdateRun.", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + } + }, + "required": [ + "name" + ] + }, + "UpdateGroupStatus": { + "type": "object", + "description": "The status of a UpdateGroup.", + "properties": { + "status": { + "$ref": "#/definitions/UpdateStatus", + "description": "The status of the UpdateGroup.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the UpdateGroup.", + "readOnly": true + }, + "members": { + "type": "array", + "description": "The list of member this UpdateGroup updates.", + "items": { + "$ref": "#/definitions/MemberUpdateStatus" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "UpdateRun": { + "type": "object", + "description": "An UpdateRun is a multi-stage process to perform update operations across members of a Fleet.", + "properties": { + "properties": { + "$ref": "#/definitions/UpdateRunProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "eTag": { + "type": "string", + "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource" + } + ] + }, + "UpdateRunListResult": { + "type": "object", + "description": "The response of a UpdateRun list operation.", + "properties": { + "value": { + "type": "array", + "description": "The UpdateRun items on this page", + "items": { + "$ref": "#/definitions/UpdateRun" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "UpdateRunProperties": { + "type": "object", + "description": "The properties of the UpdateRun.", + "properties": { + "provisioningState": { + "$ref": "#/definitions/UpdateRunProvisioningState", + "description": "The provisioning state of the UpdateRun resource.", + "readOnly": true + }, + "strategy": { + "$ref": "#/definitions/UpdateRunStrategy", + "description": "The strategy defines the order in which the clusters will be updated. \nIf not set, all members will be updated sequentially. The UpdateRun status will show a single UpdateStage and a single UpdateGroup targeting all members.\nThe strategy of the UpdateRun can be modified until the run is started." + }, + "managedClusterUpdate": { + "$ref": "#/definitions/ManagedClusterUpdate", + "description": "The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started." + }, + "status": { + "$ref": "#/definitions/UpdateRunStatus", + "description": "The status of the UpdateRun.", + "readOnly": true + } + }, + "required": [ + "managedClusterUpdate" + ] + }, + "UpdateRunProvisioningState": { + "type": "string", + "description": "The provisioning state of the UpdateRun resource.", + "enum": [ + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "UpdateRunProvisioningState", + "modelAsString": true, + "values": [ + { + "name": "Succeeded", + "value": "Succeeded", + "description": "Resource has been created." + }, + { + "name": "Failed", + "value": "Failed", + "description": "Resource creation failed." + }, + { + "name": "Canceled", + "value": "Canceled", + "description": "Resource creation was canceled." + } + ] + } + }, + "UpdateRunStatus": { + "type": "object", + "description": "The status of a UpdateRun.", + "properties": { + "status": { + "$ref": "#/definitions/UpdateStatus", + "description": "The status of the UpdateRun.", + "readOnly": true + }, + "stages": { + "type": "array", + "description": "The stages composing an update run. Stages are run sequentially withing an UpdateRun.", + "items": { + "$ref": "#/definitions/UpdateStageStatus" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "UpdateRunStrategy": { + "type": "object", + "description": "The UpdateRunStrategy configures the sequence of Stages and Groups in which the clusters will be updated.", + "properties": { + "stages": { + "type": "array", + "description": "The list of stages that compose this update run.", + "items": { + "$ref": "#/definitions/UpdateStage" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "required": [ + "stages" + ] + }, + "UpdateStage": { + "type": "object", + "description": "Contains the groups to be updated by an UpdateRun.\nUpdate order:\n- Sequential between stages: Stages run sequentially. The previous stage must complete before the next one starts.\n- Parallel within a stage: Groups within a stage run in parallel.\n- Sequential within a group: Clusters within a group are updated sequentially.", + "properties": { + "name": { + "type": "string", + "description": "The name of the stage. Must be unique within the UpdateRun.", + "minLength": 1, + "maxLength": 50, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "groups": { + "type": "array", + "description": "A list of group names that compose the stage.\nThe groups will be updated in parallel. Each group name can only appear once in the UpdateRun.", + "items": { + "$ref": "#/definitions/UpdateGroup" + }, + "x-ms-identifiers": [ + "name" + ] + }, + "afterStageWaitInSeconds": { + "type": "integer", + "format": "int32", + "description": "The time in seconds to wait at the end of this stage before starting the next one. Defaults to 0 seconds if unspecified." + } + }, + "required": [ + "name" + ] + }, + "UpdateStageStatus": { + "type": "object", + "description": "The status of a UpdateStage.", + "properties": { + "status": { + "$ref": "#/definitions/UpdateStatus", + "description": "The status of the UpdateStage.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the UpdateStage.", + "readOnly": true + }, + "groups": { + "type": "array", + "description": "The list of groups to be updated as part of this UpdateStage.", + "items": { + "$ref": "#/definitions/UpdateGroupStatus" + }, + "readOnly": true, + "x-ms-identifiers": [ + "name" + ] + }, + "afterStageWaitStatus": { + "$ref": "#/definitions/WaitStatus", + "description": "The status of the wait period configured on the UpdateStage.", + "readOnly": true + } + } + }, + "UpdateState": { + "type": "string", + "description": "The state of the UpdateRun, UpdateStage, UpdateGroup, or MemberUpdate.", + "enum": [ + "NotStarted", + "Running", + "Stopping", + "Stopped", + "Failed", + "Completed" + ], + "x-ms-enum": { + "name": "UpdateState", + "modelAsString": true + } + }, + "UpdateStatus": { + "type": "object", + "description": "The status for an operation or group of operations.", + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "The time the operation or group was started.", + "readOnly": true + }, + "completedTime": { + "type": "string", + "format": "date-time", + "description": "The time the operation or group was completed.", + "readOnly": true + }, + "state": { + "$ref": "#/definitions/UpdateState", + "description": "The State of the operation or group.", + "readOnly": true + }, + "error": { + "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorDetail", + "description": "The error details when a failure is encountered.", + "readOnly": true + } + } + }, + "WaitStatus": { + "type": "object", + "description": "The status of the wait duration.", + "properties": { + "status": { + "$ref": "#/definitions/UpdateStatus", + "description": "The status of the wait duration.", + "readOnly": true + }, + "waitDurationInSeconds": { + "type": "integer", + "format": "int32", + "description": "The wait duration configured in seconds.", + "readOnly": true + } + } + } + }, + "parameters": {} +} From dc22537689cb2ce6c33f8fb823b94d491235ca6d Mon Sep 17 00:00:00 2001 From: zman-ms <99997769+zman-ms@users.noreply.github.com> Date: Thu, 27 Jul 2023 13:06:38 -0700 Subject: [PATCH 02/12] Updates readme --- .../Microsoft.ContainerService/fleet/readme.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md index 1cc7372dc864..04284416faba 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md @@ -2,9 +2,8 @@ > see https://aka.ms/autorest -This is the AutoRest configuration file for ContainerServiceFleet. +## This is the AutoRest configuration file for ContainerServiceFleet. The service is hosted under the Microsoft.ContainerService resource provider but exposes a separate set of resources, apis, and SDKs. ---- ## Getting Started @@ -27,9 +26,18 @@ These are the global settings for the ContainerServices API. ``` yaml openapi-type: arm -tag: package-2023-03-preview +tag: package-preview-2023-06 ``` + +### Tag: package-preview-2023-06 + +These settings apply only when `--tag=package-preview-2023-06` is specified on the command line. + +```yaml $(tag) == 'package-preview-2023-06' +input-file: + - preview/2023-06-15-preview/fleets.json +``` ### Tag: package-2023-03-preview These settings apply only when `--tag=package-2023-03-preview` is specified on the command line. @@ -104,4 +112,3 @@ See configuration in [readme.python.md](./readme.python.md) See configuration in [readme.java.md](./readme.java.md) ## Suppression - From 48ca5107de7373ec75211a421c24c04218d27d40 Mon Sep 17 00:00:00 2001 From: zman-ms <99997769+zman-ms@users.noreply.github.com> Date: Thu, 27 Jul 2023 13:06:41 -0700 Subject: [PATCH 03/12] Updates API version in new specs and examples --- .../2023-06-15-preview/examples/FleetMembers_Create.json | 2 +- .../2023-06-15-preview/examples/FleetMembers_Delete.json | 2 +- .../preview/2023-06-15-preview/examples/FleetMembers_Get.json | 2 +- .../2023-06-15-preview/examples/FleetMembers_ListByFleet.json | 2 +- .../2023-06-15-preview/examples/FleetMembers_Update.json | 2 +- .../2023-06-15-preview/examples/Fleets_CreateOrUpdate.json | 2 +- .../preview/2023-06-15-preview/examples/Fleets_Delete.json | 2 +- .../fleet/preview/2023-06-15-preview/examples/Fleets_Get.json | 2 +- .../2023-06-15-preview/examples/Fleets_ListByResourceGroup.json | 2 +- .../preview/2023-06-15-preview/examples/Fleets_ListBySub.json | 2 +- .../examples/Fleets_ListCredentialsResult.json | 2 +- .../preview/2023-06-15-preview/examples/Fleets_PatchTags.json | 2 +- .../preview/2023-06-15-preview/examples/Operations_List.json | 2 +- .../2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json | 2 +- .../preview/2023-06-15-preview/examples/UpdateRuns_Delete.json | 2 +- .../preview/2023-06-15-preview/examples/UpdateRuns_Get.json | 2 +- .../2023-06-15-preview/examples/UpdateRuns_ListByFleet.json | 2 +- .../preview/2023-06-15-preview/examples/UpdateRuns_Start.json | 2 +- .../preview/2023-06-15-preview/examples/UpdateRuns_Stop.json | 2 +- .../fleet/preview/2023-06-15-preview/fleets.json | 2 +- 20 files changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json index 86b3409ad58f..3d402f557ff7 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Create.json @@ -2,7 +2,7 @@ "operationId": "FleetMembers_Create", "title": "Creates a FleetMember resource with a long running operation.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json index 22e5100cfe17..b637d8a2ebb3 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Delete.json @@ -2,7 +2,7 @@ "operationId": "FleetMembers_Delete", "title": "Deletes a FleetMember resource asynchronously with a long running operation.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json index 2a0bbdf0467b..6fb8aebf4fd0 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Get.json @@ -2,7 +2,7 @@ "operationId": "FleetMembers_Get", "title": "Gets a FleetMember resource.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json index f89c30e89a0d..cd4d9cfcc07f 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_ListByFleet.json @@ -2,7 +2,7 @@ "operationId": "FleetMembers_ListByFleet", "title": "Lists the members of a Fleet.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1" diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json index d97d675a02af..23ab31da4bfe 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json @@ -2,7 +2,7 @@ "operationId": "FleetMembers_Update", "title": "Updates a FleetMember resource synchronously.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json index 27d11975019d..618182482fe5 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "Fleets_CreateOrUpdate", "title": "Creates a Fleet resource with a long running operation.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json index e1a575b58e0c..a80642d64c39 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Delete.json @@ -2,7 +2,7 @@ "operationId": "Fleets_Delete", "title": "Deletes a Fleet resource asynchronously with a long running operation.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1" diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json index 16feb42b8584..e90c55568ab8 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_Get.json @@ -2,7 +2,7 @@ "operationId": "Fleets_Get", "title": "Gets a Fleet resource.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1" diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json index 4befff30b7a3..2afbc4403ea2 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListByResourceGroup.json @@ -2,7 +2,7 @@ "operationId": "Fleets_ListByResourceGroup", "title": "Lists the Fleet resources in a resource group.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1" }, diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json index 7805befeaad9..6886d6a6c245 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListBySub.json @@ -2,7 +2,7 @@ "operationId": "Fleets_ListBySubscription", "title": "Lists the Fleet resources in a subscription.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1" }, "responses": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json index 74f65dfa9bf4..54e94ab65059 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_ListCredentialsResult.json @@ -2,7 +2,7 @@ "operationId": "Fleets_ListCredentials", "title": "Lists the user credentials of a Fleet.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet" diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json index 455ebc78a602..61d4dee72a7f 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json @@ -2,7 +2,7 @@ "operationId": "Fleets_Update", "title": "Update a Fleet.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json index 63f4ecf70748..5441fc7f4d5b 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Operations_List.json @@ -2,7 +2,7 @@ "operationId": "Operations_List", "title": "List the operations for the provider.", "parameters": { - "api-version": "2023-03-15-preview" + "api-version": "2023-06-15-preview" }, "responses": { "200": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json index ed12cb78523b..8b515cc85f7c 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json @@ -2,7 +2,7 @@ "operationId": "UpdateRuns_CreateOrUpdate", "title": "Create an UpdateRun.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json index 94e2f4015882..811e5a6cef49 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Delete.json @@ -2,7 +2,7 @@ "operationId": "UpdateRuns_Delete", "title": "Delete an updateRun resource.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "subid1", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json index 0ab4efd5fd9b..1e103869e60c 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json @@ -2,7 +2,7 @@ "operationId": "UpdateRuns_Get", "title": "Gets an UpdateRun resource.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json index f1656a18428d..1bcc316ddb3e 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json @@ -2,7 +2,7 @@ "operationId": "UpdateRuns_ListByFleet", "title": "Lists the UpdateRun resources by fleet.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "rg1", "fleetName": "fleet1" diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json index f3981c852184..4d01472cbc1f 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json @@ -2,7 +2,7 @@ "operationId": "UpdateRuns_Start", "title": "Starts an UpdateRun.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "rg1", "fleetName": "fleet1", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json index ac26f8d48455..8881f0035f94 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json @@ -2,7 +2,7 @@ "operationId": "UpdateRuns_Stop", "title": "Stops an UpdateRun.", "parameters": { - "api-version": "2023-03-15-preview", + "api-version": "2023-06-15-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "rg1", "fleetName": "fleet1", 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 415fdbc2001e..0a3bf65f4cf0 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 @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "ContainerServiceFleetClient", - "version": "2023-03-15-preview", + "version": "2023-06-15-preview", "description": "Azure Kubernetes Fleet Manager api client.", "x-typespec-generated": [ { From 36e9ac6f4c5f43bb3edbae59b3627ff789dfbc6e Mon Sep 17 00:00:00 2001 From: zman-ms <99997769+zman-ms@users.noreply.github.com> Date: Thu, 27 Jul 2023 17:14:08 -0700 Subject: [PATCH 04/12] [Fleet][Dev] API 0615 changes (#25020) * Adds base for updating Microsoft.ContainerService/fleet from version preview/2023-03-15-preview to version 2023-06-15-preview * Updates readme * Updates API version in new specs and examples * sync with ADO repo * exclude unneeded file changes * revert tsp config * revert helpers.tsp * remove package files * remove package files * add known word containerd * format * remove .npmrc * revert custom word * revert package-lock.json * re-generate json * add example * add example * fix read-only fields * fix read-only fields * re-generate json with latest compiler * add custom word back * re-generate json * restore config * add examples * add examples * add examples * add examples * add examples * add examples * prettier * fix examples * git ignore * review commoents * fix examples * make node image selection optional * fix warnings * fix warnings * fix warnings * fix docs * revert package changes * compile --- custom-words.txt | 1 + .../Fleet.Management/.gitignore | 4 + .../Fleet.Management/README.md | 24 ++ .../2022-09-02-preview/Fleets_PatchTags.json | 6 + .../FleetMembers_Update.json | 6 + .../2023-03-15-preview/Fleets_PatchTags.json | 6 + .../FleetMembers_Create.json | 68 +++++ .../FleetMembers_Delete.json | 21 ++ .../2023-06-15-preview/FleetMembers_Get.json | 36 +++ .../FleetMembers_ListByFleet.json | 37 +++ .../FleetMembers_Update.json | 48 ++++ .../Fleets_CreateOrUpdate.json | 92 ++++++ .../2023-06-15-preview/Fleets_Delete.json | 20 ++ .../2023-06-15-preview/Fleets_Get.json | 44 +++ .../Fleets_ListByResourceGroup.json | 45 +++ .../2023-06-15-preview/Fleets_ListBySub.json | 44 +++ .../Fleets_ListCredentialsResult.json | 22 ++ .../2023-06-15-preview/Fleets_PatchTags.json | 57 ++++ .../2023-06-15-preview/Operations_List.json | 25 ++ .../UpdateRuns_CreateOrUpdate.json | 193 +++++++++++++ .../2023-06-15-preview/UpdateRuns_Delete.json | 21 ++ .../2023-06-15-preview/UpdateRuns_Get.json | 90 ++++++ .../UpdateRuns_ListByFleet.json | 94 ++++++ .../2023-06-15-preview/UpdateRuns_Start.json | 99 +++++++ .../2023-06-15-preview/UpdateRuns_Stop.json | 99 +++++++ .../Fleet.Management/fleet.tsp | 61 +++- .../Fleet.Management/fleetmember.tsp | 18 +- .../Fleet.Management/main.tsp | 9 +- .../Fleet.Management/updaterun.tsp | 68 ++++- .../examples/Fleets_PatchTags.json | 6 + .../preview/2022-09-02-preview/fleets.json | 38 ++- .../examples/FleetMembers_Update.json | 6 + .../examples/Fleets_PatchTags.json | 6 + .../preview/2023-03-15-preview/fleets.json | 94 +++++- .../examples/FleetMembers_Update.json | 6 + .../examples/Fleets_PatchTags.json | 6 + .../examples/UpdateRuns_CreateOrUpdate.json | 9 + .../examples/UpdateRuns_Get.json | 3 + .../examples/UpdateRuns_ListByFleet.json | 3 + .../examples/UpdateRuns_Start.json | 3 + .../examples/UpdateRuns_Stop.json | 3 + .../preview/2023-06-15-preview/fleets.json | 267 +++++++++++++++++- 42 files changed, 1755 insertions(+), 53 deletions(-) create mode 100644 specification/containerservice/Fleet.Management/.gitignore create mode 100644 specification/containerservice/Fleet.Management/README.md create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Create.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Delete.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Get.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_ListByFleet.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Update.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_CreateOrUpdate.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_Delete.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_Get.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListByResourceGroup.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListBySub.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListCredentialsResult.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_PatchTags.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Operations_List.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_CreateOrUpdate.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Delete.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Get.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_ListByFleet.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Start.json create mode 100644 specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Stop.json diff --git a/custom-words.txt b/custom-words.txt index 736ef2052a35..37bfa2d2457a 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -519,6 +519,7 @@ connectionstrings conntrack consistencygroup consumergroups +containerd containerid containerinstance containerlogs diff --git a/specification/containerservice/Fleet.Management/.gitignore b/specification/containerservice/Fleet.Management/.gitignore new file mode 100644 index 000000000000..a8d238821718 --- /dev/null +++ b/specification/containerservice/Fleet.Management/.gitignore @@ -0,0 +1,4 @@ +node_modules +output +package.json +package-lock.json \ No newline at end of file diff --git a/specification/containerservice/Fleet.Management/README.md b/specification/containerservice/Fleet.Management/README.md new file mode 100644 index 000000000000..5b016419d7e3 --- /dev/null +++ b/specification/containerservice/Fleet.Management/README.md @@ -0,0 +1,24 @@ +# Fleet service cadl project + +## Getting started + +- environment setup: https://microsoft.github.io/typespec/introduction/installation + +## Generate fleet swagger + +## NPM registry authentication + +We have to use the Central Feed Service for NPM to fetch the typespec dependencies. +The `.npmrc` file configures the folder accordingly for CI. + +in development, you can tell npm to use the standard public registry by specifying it: + +`npm install --registry https://registry.npmjs.org` + +then: + +`tsp compile .` + +## Development + +Always edit `tsp` files, and generate swagger, never edit the swagger directly. diff --git a/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json index fa097d7b944c..82ef0dd65960 100644 --- a/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json +++ b/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json @@ -46,6 +46,12 @@ "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/2023-03-15-preview/FleetMembers_Update.json b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/FleetMembers_Update.json index d97d675a02af..f3e474283a0a 100644 --- a/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/FleetMembers_Update.json +++ b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/FleetMembers_Update.json @@ -37,6 +37,12 @@ "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/2023-03-15-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json index 455ebc78a602..ddb7e8f16dec 100644 --- a/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json +++ b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json @@ -46,6 +46,12 @@ "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/2023-06-15-preview/FleetMembers_Create.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Create.json new file mode 100644 index 000000000000..3d402f557ff7 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Create.json @@ -0,0 +1,68 @@ +{ + "operationId": "FleetMembers_Create", + "title": "Creates a FleetMember resource with a long running operation.", + "parameters": { + "api-version": "2023-06-15-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/2023-06-15-preview/FleetMembers_Delete.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Delete.json new file mode 100644 index 000000000000..b637d8a2ebb3 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-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": "2023-06-15-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/2023-06-15-preview/FleetMembers_Get.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Get.json new file mode 100644 index 000000000000..6fb8aebf4fd0 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Get.json @@ -0,0 +1,36 @@ +{ + "operationId": "FleetMembers_Get", + "title": "Gets a FleetMember resource.", + "parameters": { + "api-version": "2023-06-15-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/2023-06-15-preview/FleetMembers_ListByFleet.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_ListByFleet.json new file mode 100644 index 000000000000..cd4d9cfcc07f --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_ListByFleet.json @@ -0,0 +1,37 @@ +{ + "operationId": "FleetMembers_ListByFleet", + "title": "Lists the members of a Fleet.", + "parameters": { + "api-version": "2023-06-15-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/2023-06-15-preview/FleetMembers_Update.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Update.json new file mode 100644 index 000000000000..72b60cae9721 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Update.json @@ -0,0 +1,48 @@ +{ + "operationId": "FleetMembers_Update", + "title": "Updates a FleetMember resource synchronously.", + "parameters": { + "api-version": "2023-06-15-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/2023-06-15-preview/Fleets_CreateOrUpdate.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_CreateOrUpdate.json new file mode 100644 index 000000000000..618182482fe5 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_CreateOrUpdate.json @@ -0,0 +1,92 @@ +{ + "operationId": "Fleets_CreateOrUpdate", + "title": "Creates a Fleet resource with a long running operation.", + "parameters": { + "api-version": "2023-06-15-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "resource": { + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1" + } + } + } + }, + "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", + "kubernetesVersion": "1.22.4" + }, + "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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_Delete.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_Delete.json new file mode 100644 index 000000000000..a80642d64c39 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-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": "2023-06-15-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/2023-06-15-preview/Fleets_Get.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_Get.json new file mode 100644 index 000000000000..e90c55568ab8 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_Get.json @@ -0,0 +1,44 @@ +{ + "operationId": "Fleets_Get", + "title": "Gets a Fleet resource.", + "parameters": { + "api-version": "2023-06-15-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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListByResourceGroup.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListByResourceGroup.json new file mode 100644 index 000000000000..2afbc4403ea2 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "operationId": "Fleets_ListByResourceGroup", + "title": "Lists the Fleet resources in a resource group.", + "parameters": { + "api-version": "2023-06-15-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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListBySub.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListBySub.json new file mode 100644 index 000000000000..6886d6a6c245 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListBySub.json @@ -0,0 +1,44 @@ +{ + "operationId": "Fleets_ListBySubscription", + "title": "Lists the Fleet resources in a subscription.", + "parameters": { + "api-version": "2023-06-15-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", + "kubernetesVersion": "1.22.4" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListCredentialsResult.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListCredentialsResult.json new file mode 100644 index 000000000000..54e94ab65059 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_ListCredentialsResult.json @@ -0,0 +1,22 @@ +{ + "operationId": "Fleets_ListCredentials", + "title": "Lists the user credentials of a Fleet.", + "parameters": { + "api-version": "2023-06-15-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet" + }, + "responses": { + "200": { + "body": { + "kubeconfigs": [ + { + "name": "credentialName1", + "value": "Y3JlZGVudGlhbFZhbHVlMQ==" + } + ] + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_PatchTags.json new file mode 100644 index 000000000000..f7a6abfdc625 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_PatchTags.json @@ -0,0 +1,57 @@ +{ + "operationId": "Fleets_Update", + "title": "Update a Fleet.", + "parameters": { + "api-version": "2023-06-15-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", + "kubernetesVersion": "1.22.4" + }, + "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/2023-06-15-preview/Operations_List.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Operations_List.json new file mode 100644 index 000000000000..5441fc7f4d5b --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/Operations_List.json @@ -0,0 +1,25 @@ +{ + "operationId": "Operations_List", + "title": "List the operations for the provider.", + "parameters": { + "api-version": "2023-06-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/2023-06-15-preview/UpdateRuns_CreateOrUpdate.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_CreateOrUpdate.json new file mode 100644 index 000000000000..a4819a69426e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_CreateOrUpdate.json @@ -0,0 +1,193 @@ +{ + "operationId": "UpdateRuns_CreateOrUpdate", + "title": "Create an UpdateRun.", + "parameters": { + "api-version": "2023-06-15-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1", + "resource": { + "properties": { + "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", + "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", + "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/2023-06-15-preview/UpdateRuns_Delete.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Delete.json new file mode 100644 index 000000000000..811e5a6cef49 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "UpdateRuns_Delete", + "title": "Delete an updateRun resource.", + "parameters": { + "api-version": "2023-06-15-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/2023-06-15-preview/UpdateRuns_Get.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Get.json new file mode 100644 index 000000000000..7562e52deb43 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Get.json @@ -0,0 +1,90 @@ +{ + "operationId": "UpdateRuns_Get", + "title": "Gets an UpdateRun resource.", + "parameters": { + "api-version": "2023-06-15-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/2023-06-15-preview/UpdateRuns_ListByFleet.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_ListByFleet.json new file mode 100644 index 000000000000..5e299f1c430e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_ListByFleet.json @@ -0,0 +1,94 @@ +{ + "operationId": "UpdateRuns_ListByFleet", + "title": "Lists the UpdateRun resources by fleet.", + "parameters": { + "api-version": "2023-06-15-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/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Start.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Start.json new file mode 100644 index 000000000000..c069499d18db --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Start.json @@ -0,0 +1,99 @@ +{ + "operationId": "UpdateRuns_Start", + "title": "Starts an UpdateRun.", + "parameters": { + "api-version": "2023-06-15-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/2023-06-15-preview/UpdateRuns_Stop.json b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Stop.json new file mode 100644 index 000000000000..c222ff4da605 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2023-06-15-preview/UpdateRuns_Stop.json @@ -0,0 +1,99 @@ +{ + "operationId": "UpdateRuns_Stop", + "title": "Stops an UpdateRun.", + "parameters": { + "api-version": "2023-06-15-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/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index 1b9fb765e6a4..2006064cf47e 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -29,8 +29,12 @@ model Fleet is TrackedResource { @segment("fleets") @visibility("create", "read") name: string; - ...EntityTag; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "https://github.com/Azure/typespec-azure/issues/2840" + @added(Versions.v2023_06_15_preview) + @doc("Managed identity.") + identity?: Azure.ResourceManager.Foundations.ManagedIdentityProperties; } @doc("Fleet properties.") @@ -56,6 +60,16 @@ model FleetHubProfile { @maxLength(54) dnsPrefix?: string; + @added(Versions.v2023_06_15_preview) + @doc("The access profile for the Fleet hub API server.") + @visibility("read", "create") + apiServerAccessProfile?: APIServerAccessProfile; + + @added(Versions.v2023_06_15_preview) + @doc("The agent profile for the Fleet hub.") + @visibility("read", "create") + agentProfile?: AgentProfile; + @visibility("read") @doc("The FQDN of the Fleet hub.") fqdn?: string; @@ -65,13 +79,45 @@ model FleetHubProfile { kubernetesVersion?: string; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update" +scalar SubnetResourceId + extends Azure.ResourceManager.ResourceIdentifier<[ + { + type: "Microsoft.Network/virtualNetworks/subnets", + } + ]>; + +#suppress "@azure-tools/typespec-azure-core/casing-style" "match existing AKS APIServerAccessProfile" +@doc("Access profile for the Fleet hub API server.") +model APIServerAccessProfile { + @visibility("read", "create") + @doc("Whether to create the Fleet hub as a private cluster or not.") + enablePrivateCluster?: boolean; + + @visibility("read", "create") + @doc("Whether to enable apiserver vnet integration for the Fleet hub or not.") + enableVnetIntegration?: boolean; + + @visibility("read", "create") + @doc("The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet.") + subnetId?: SubnetResourceId; +} + +@doc("Agent profile for the Fleet hub.") +model AgentProfile { + @visibility("read", "create") + @doc("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.") + subnetId?: SubnetResourceId; +} + @lroStatus @doc("The provisioning state of the last accepted operation.") enum FleetProvisioningState { ...ResourceProvisioningState, + @doc("The provisioning state of a fleet being created.") Creating, + @doc("The provisioning state of a fleet being updated.") Updating, + @doc("The provisioning state of a fleet being deleted.") Deleting, } @@ -82,6 +128,11 @@ model FleetPatch { // adding a response header in the model currently impacts the model used in the List result model. // omitting it for now as response headers do not impact SDK generation. // ...EtagResponseEnvelope; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "https://github.com/Azure/typespec-azure/issues/2840" + @added(Versions.v2023_06_15_preview) + @doc("Managed identity.") + identity?: Azure.ResourceManager.Foundations.ManagedIdentityProperties; } @doc("One credential result item.") @@ -109,14 +160,15 @@ interface Fleets { get is ArmResourceRead; @doc("Creates or updates a Fleet.") - createOrUpdate is ArmResourceCreateOrUpdateAsync< + @operationId("Fleets_CreateOrUpdate") + create is ArmResourceCreateOrUpdateAsync< Fleet, BaseParameters & IfMatchParameters & IfNoneMatchParameters >; - update is ArmCustomPatchSync< + update is ArmCustomPatchAsync< Fleet, FleetPatch, BaseParameters & IfMatchParameters @@ -130,6 +182,7 @@ interface Fleets { @doc("Lists fleets in the specified subscription and resource group.") listByResourceGroup is ArmResourceListByParent; + @operationId("Fleets_ListBySubscription") @doc("Lists fleets in the specified subscription.") listBySubscription is ArmListBySubscription; diff --git a/specification/containerservice/Fleet.Management/fleetmember.tsp b/specification/containerservice/Fleet.Management/fleetmember.tsp index d741cda366b6..b44e860cadf1 100644 --- a/specification/containerservice/Fleet.Management/fleetmember.tsp +++ b/specification/containerservice/Fleet.Management/fleetmember.tsp @@ -24,7 +24,6 @@ model FleetMember is ProxyResource { @segment("members") @visibility("create", "read") name: string; - ...EntityTag; } @@ -57,13 +56,15 @@ model FleetMemberProperties { provisioningState?: FleetMemberProvisioningState; } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update" @lroStatus @doc("The provisioning state of the last accepted operation.") enum FleetMemberProvisioningState { ...ResourceProvisioningState, + @doc("The provisioning state of a member joining a fleet.") Joining, + @doc("The provisioning state of a member leaving a fleet.") Leaving, + @doc("The provisioning state of a member being updated.") Updating, } @@ -79,18 +80,9 @@ interface FleetMembers { >; @added(Versions.v2023_03_15_preview) - update is ArmResourcePatchSync< - FleetMember, - FleetMemberProperties, - BaseParameters & IfMatchParameters - >; + update is ArmResourcePatchAsync & + IfMatchParameters>; - @extension( - "x-ms-long-running-operation-options", - { - `final-state-via`: "location", - } - ) delete is ArmResourceDeleteAsync< FleetMember, BaseParameters & IfMatchParameters diff --git a/specification/containerservice/Fleet.Management/main.tsp b/specification/containerservice/Fleet.Management/main.tsp index 67948fac613b..c88db8ae9dc1 100644 --- a/specification/containerservice/Fleet.Management/main.tsp +++ b/specification/containerservice/Fleet.Management/main.tsp @@ -19,12 +19,19 @@ namespace Microsoft.ContainerService; interface Operations extends Azure.ResourceManager.Operations {} -#suppress "@azure-tools/typespec-azure-core/documentation-required" "https://github.com/Azure/typespec-azure/issues/3107" +@doc("Azure Kubernetes Fleet Manager api versions.") enum Versions { + @doc("Azure Kubernetes Fleet Manager api version 2022-09-02-preview.") @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) v2022_09_02_preview: "2022-09-02-preview", + @doc("Azure Kubernetes Fleet Manager api version 2023-03-15-preview.") @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) v2023_03_15_preview: "2023-03-15-preview", + + @doc("Azure Kubernetes Fleet Manager api version 2023-06-15-preview.") + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + v2023_06_15_preview: "2023-06-15-preview" } diff --git a/specification/containerservice/Fleet.Management/updaterun.tsp b/specification/containerservice/Fleet.Management/updaterun.tsp index ad2f63b4f497..d5dd04777c08 100644 --- a/specification/containerservice/Fleet.Management/updaterun.tsp +++ b/specification/containerservice/Fleet.Management/updaterun.tsp @@ -30,7 +30,6 @@ model UpdateRun is ProxyResource { @path @visibility("create", "read") name: string; - ...EntityTag; } @@ -109,6 +108,29 @@ A group can only appear once across all UpdateStages in the UpdateRun. model ManagedClusterUpdate { @doc("The upgrade to apply to the ManagedClusters.") upgrade: ManagedClusterUpgradeSpec; + + @visibility("create", "read") + @doc("The node image upgrade to be applied to the target nodes in update run.") + @added(Versions.v2023_06_15_preview) + nodeImageSelection?: NodeImageSelection; +} + +@doc("The node image upgrade to be applied to the target nodes in update run.") +@added(Versions.v2023_06_15_preview) +model NodeImageSelection { + @visibility("create", "read") + @doc("The node image upgrade type.") + type: NodeImageSelectionType; +} + +@doc("The node image upgrade type.") +@added(Versions.v2023_06_15_preview) +enum NodeImageSelectionType { + @doc("Use the latest image version when upgrading nodes. Clusters may use different image versions (e.g., 'AKSUbuntu-1804gen2containerd-2021.10.12' and 'AKSUbuntu-1804gen2containerd-2021.10.19') because, for example, the latest available version is different in different regions.") + Latest, + + @doc("The image versions to upgrade nodes to are selected as described below: for each node pool in managed clusters affected by the update run, the system selects the latest image version such that it is available across all other node pools (in all other clusters) of the same image type. As a result, all node pools of the same image type will be upgraded to the same image version. For example, if the latest image version for image type 'AKSUbuntu-1804gen2containerd' is 'AKSUbuntu-1804gen2containerd-2021.10.12' for a node pool in cluster A in region X, and is 'AKSUbuntu-1804gen2containerd-2021.10.17' for a node pool in cluster B in region Y, the system will upgrade both node pools to image version 'AKSUbuntu-1804gen2containerd-2021.10.12'.") + Consistent, } scalar KubernetesVersion extends string; @@ -135,14 +157,23 @@ enum ManagedClusterUpgradeType { NodeImageOnly, } -#suppress "@azure-tools/typespec-azure-core/documentation-required" "MUST fix in next update" @doc("The state of the UpdateRun, UpdateStage, UpdateGroup, or MemberUpdate.") enum UpdateState { + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has not been started.") NotStarted, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is running.") Running, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is being stopped.") Stopping, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has stopped.") Stopped, + + @added(Versions.v2023_06_15_preview) + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has been skipped.") + Skipped, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has failed.") Failed, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has completed.") Completed, } @@ -175,6 +206,28 @@ model UpdateRunStatus { @extension("x-ms-identifiers", ["name"]) @doc("The stages composing an update run. Stages are run sequentially withing an UpdateRun.") stages?: UpdateStageStatus[]; + + @visibility("read") + @doc("The node image upgrade specs for the update run. It is only set in update run when `NodeImageSelection.type` is `Consistent`.") + @added(Versions.v2023_06_15_preview) + nodeImageSelection?: NodeImageSelectionStatus; +} + +@doc("The node image upgrade specs for the update run.") +@added(Versions.v2023_06_15_preview) +model NodeImageSelectionStatus { + @extension("x-ms-identifiers", ["version"]) + @visibility("read") + @doc("The image versions to upgrade the nodes to.") + selectedNodeImageVersions?: NodeImageVersion[]; +} + +@doc("The node upgrade image version.") +@added(Versions.v2023_06_15_preview) +model NodeImageVersion { + @visibility("read") + @doc("The image version to upgrade the nodes to (e.g., 'AKSUbuntu-1804gen2containerd-2022.12.13').") + version?: string; } @doc("The status of a UpdateStage.") @@ -241,6 +294,11 @@ model MemberUpdateStatus { @visibility("read") @doc("The operation resource id of the latest attempt to perform the operation.") operationId?: string; + + @visibility("read") + @doc("The status message after processing the member update operation.") + @added(Versions.v2023_06_15_preview) + message?: string; } @added(Versions.v2023_03_15_preview) @@ -255,12 +313,6 @@ interface UpdateRuns { IfNoneMatchParameters >; - @extension( - "x-ms-long-running-operation-options", - { - `final-state-via`: "location", - } - ) delete is FleetArmResourceDeleteAsync< UpdateRun, BaseParameters & IfMatchParameters diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json index fa097d7b944c..82ef0dd65960 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json @@ -46,6 +46,12 @@ "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/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 0c8228d8dd2e..ead0675e555c 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 @@ -355,6 +355,20 @@ "$ref": "#/definitions/Fleet" } }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, "default": { "description": "An unexpected error response.", "schema": { @@ -366,7 +380,11 @@ "Update a Fleet.": { "$ref": "./examples/Fleets_PatchTags.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "delete": { "operationId": "Fleets_Delete", @@ -1005,15 +1023,18 @@ }, { "name": "Joining", - "value": "Joining" + "value": "Joining", + "description": "The provisioning state of a member joining a fleet." }, { "name": "Leaving", - "value": "Leaving" + "value": "Leaving", + "description": "The provisioning state of a member leaving a fleet." }, { "name": "Updating", - "value": "Updating" + "value": "Updating", + "description": "The provisioning state of a member being updated." } ] } @@ -1078,15 +1099,18 @@ }, { "name": "Creating", - "value": "Creating" + "value": "Creating", + "description": "The provisioning state of a fleet being created." }, { "name": "Updating", - "value": "Updating" + "value": "Updating", + "description": "The provisioning state of a fleet being updated." }, { "name": "Deleting", - "value": "Deleting" + "value": "Deleting", + "description": "The provisioning state of a fleet being deleted." } ] } diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json index d97d675a02af..f3e474283a0a 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json @@ -37,6 +37,12 @@ "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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json index 455ebc78a602..ddb7e8f16dec 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json @@ -46,6 +46,12 @@ "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/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 415fdbc2001e..1116a74960de 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 @@ -358,6 +358,20 @@ "$ref": "#/definitions/Fleet" } }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, "default": { "description": "An unexpected error response.", "schema": { @@ -369,7 +383,11 @@ "Update a Fleet.": { "$ref": "./examples/Fleets_PatchTags.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "delete": { "operationId": "Fleets_Delete", @@ -764,6 +782,20 @@ "$ref": "#/definitions/FleetMember" } }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, "default": { "description": "An unexpected error response.", "schema": { @@ -775,7 +807,11 @@ "Updates a FleetMember resource synchronously.": { "$ref": "./examples/FleetMembers_Update.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "delete": { "operationId": "FleetMembers_Delete", @@ -1149,7 +1185,7 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "azure-async-operation" }, "x-ms-long-running-operation": true } @@ -1552,15 +1588,18 @@ }, { "name": "Joining", - "value": "Joining" + "value": "Joining", + "description": "The provisioning state of a member joining a fleet." }, { "name": "Leaving", - "value": "Leaving" + "value": "Leaving", + "description": "The provisioning state of a member leaving a fleet." }, { "name": "Updating", - "value": "Updating" + "value": "Updating", + "description": "The provisioning state of a member being updated." } ] } @@ -1648,15 +1687,18 @@ }, { "name": "Creating", - "value": "Creating" + "value": "Creating", + "description": "The provisioning state of a fleet being created." }, { "name": "Updating", - "value": "Updating" + "value": "Updating", + "description": "The provisioning state of a fleet being updated." }, { "name": "Deleting", - "value": "Deleting" + "value": "Deleting", + "description": "The provisioning state of a fleet being deleted." } ] } @@ -2007,7 +2049,39 @@ ], "x-ms-enum": { "name": "UpdateState", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "NotStarted", + "value": "NotStarted", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has not been started." + }, + { + "name": "Running", + "value": "Running", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is running." + }, + { + "name": "Stopping", + "value": "Stopping", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is being stopped." + }, + { + "name": "Stopped", + "value": "Stopped", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has stopped." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has failed." + }, + { + "name": "Completed", + "value": "Completed", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has completed." + } + ] } }, "UpdateStatus": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json index 23ab31da4bfe..72b60cae9721 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/FleetMembers_Update.json @@ -37,6 +37,12 @@ "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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json index 61d4dee72a7f..f7a6abfdc625 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/Fleets_PatchTags.json @@ -46,6 +46,12 @@ "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/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json index 8b515cc85f7c..a4819a69426e 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_CreateOrUpdate.json @@ -26,6 +26,9 @@ "upgrade": { "type": "Full", "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" } } } @@ -64,6 +67,9 @@ "upgrade": { "type": "Full", "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" } }, "status": { @@ -138,6 +144,9 @@ "upgrade": { "type": "Full", "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" } }, "status": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json index 1e103869e60c..7562e52deb43 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Get.json @@ -41,6 +41,9 @@ "upgrade": { "type": "Full", "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" } }, "status": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json index 1bcc316ddb3e..5e299f1c430e 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_ListByFleet.json @@ -42,6 +42,9 @@ "upgrade": { "type": "Full", "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" } }, "status": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json index 4d01472cbc1f..c069499d18db 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Start.json @@ -41,6 +41,9 @@ "upgrade": { "type": "Full", "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" } }, "status": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json index 8881f0035f94..c222ff4da605 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-06-15-preview/examples/UpdateRuns_Stop.json @@ -41,6 +41,9 @@ "upgrade": { "type": "Full", "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" } }, "status": { 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 0a3bf65f4cf0..b4eaeb7db17d 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 @@ -358,6 +358,20 @@ "$ref": "#/definitions/Fleet" } }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, "default": { "description": "An unexpected error response.", "schema": { @@ -369,7 +383,11 @@ "Update a Fleet.": { "$ref": "./examples/Fleets_PatchTags.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "delete": { "operationId": "Fleets_Delete", @@ -764,6 +782,20 @@ "$ref": "#/definitions/FleetMember" } }, + "202": { + "description": "Resource update request accepted.", + "headers": { + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + }, + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + } + } + }, "default": { "description": "An unexpected error response.", "schema": { @@ -775,7 +807,11 @@ "Updates a FleetMember resource synchronously.": { "$ref": "./examples/FleetMembers_Update.json" } - } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true }, "delete": { "operationId": "FleetMembers_Delete", @@ -1149,7 +1185,7 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "location" + "final-state-via": "azure-async-operation" }, "x-ms-long-running-operation": true } @@ -1326,6 +1362,50 @@ } }, "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" + ] + } + } + }, "ClusterResourceId": { "type": "string", "format": "arm-id", @@ -1355,6 +1435,10 @@ "type": "string", "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.", "readOnly": true + }, + "identity": { + "$ref": "../../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity." } }, "allOf": [ @@ -1412,6 +1496,22 @@ "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.", @@ -1552,15 +1652,18 @@ }, { "name": "Joining", - "value": "Joining" + "value": "Joining", + "description": "The provisioning state of a member joining a fleet." }, { "name": "Leaving", - "value": "Leaving" + "value": "Leaving", + "description": "The provisioning state of a member leaving a fleet." }, { "name": "Updating", - "value": "Updating" + "value": "Updating", + "description": "The provisioning state of a member being updated." } ] } @@ -1598,6 +1701,10 @@ "additionalProperties": { "type": "string" } + }, + "identity": { + "$ref": "../../../../../../common-types/resource-management/v4/managedidentity.json#/definitions/ManagedServiceIdentity", + "description": "Managed identity." } } }, @@ -1648,15 +1755,18 @@ }, { "name": "Creating", - "value": "Creating" + "value": "Creating", + "description": "The provisioning state of a fleet being created." }, { "name": "Updating", - "value": "Updating" + "value": "Updating", + "description": "The provisioning state of a fleet being updated." }, { "name": "Deleting", - "value": "Deleting" + "value": "Deleting", + "description": "The provisioning state of a fleet being deleted." } ] } @@ -1671,6 +1781,14 @@ "upgrade": { "$ref": "#/definitions/ManagedClusterUpgradeSpec", "description": "The upgrade to apply to the ManagedClusters." + }, + "nodeImageSelection": { + "$ref": "#/definitions/NodeImageSelection", + "description": "The node image upgrade to be applied to the target nodes in update run.", + "x-ms-mutability": [ + "read", + "create" + ] } }, "required": [ @@ -1741,9 +1859,95 @@ "type": "string", "description": "The operation resource id of the latest attempt to perform the operation.", "readOnly": true + }, + "message": { + "type": "string", + "description": "The status message after processing the member update operation.", + "readOnly": true } } }, + "NodeImageSelection": { + "type": "object", + "description": "The node image upgrade to be applied to the target nodes in update run.", + "properties": { + "type": { + "$ref": "#/definitions/NodeImageSelectionType", + "description": "The node image upgrade type.", + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "required": [ + "type" + ] + }, + "NodeImageSelectionStatus": { + "type": "object", + "description": "The node image upgrade specs for the update run.", + "properties": { + "selectedNodeImageVersions": { + "type": "array", + "description": "The image versions to upgrade the nodes to.", + "items": { + "$ref": "#/definitions/NodeImageVersion" + }, + "readOnly": true, + "x-ms-identifiers": [ + "version" + ] + } + } + }, + "NodeImageSelectionType": { + "type": "string", + "description": "The node image upgrade type.", + "enum": [ + "Latest", + "Consistent" + ], + "x-ms-enum": { + "name": "NodeImageSelectionType", + "modelAsString": true, + "values": [ + { + "name": "Latest", + "value": "Latest", + "description": "Use the latest image version when upgrading nodes. Clusters may use different image versions (e.g., 'AKSUbuntu-1804gen2containerd-2021.10.12' and 'AKSUbuntu-1804gen2containerd-2021.10.19') because, for example, the latest available version is different in different regions." + }, + { + "name": "Consistent", + "value": "Consistent", + "description": "The image versions to upgrade nodes to are selected as described below: for each node pool in managed clusters affected by the update run, the system selects the latest image version such that it is available across all other node pools (in all other clusters) of the same image type. As a result, all node pools of the same image type will be upgraded to the same image version. For example, if the latest image version for image type 'AKSUbuntu-1804gen2containerd' is 'AKSUbuntu-1804gen2containerd-2021.10.12' for a node pool in cluster A in region X, and is 'AKSUbuntu-1804gen2containerd-2021.10.17' for a node pool in cluster B in region Y, the system will upgrade both node pools to image version 'AKSUbuntu-1804gen2containerd-2021.10.12'." + } + ] + } + }, + "NodeImageVersion": { + "type": "object", + "description": "The node upgrade image version.", + "properties": { + "version": { + "type": "string", + "description": "The image version to upgrade the nodes to (e.g., 'AKSUbuntu-1804gen2containerd-2022.12.13').", + "readOnly": true + } + } + }, + "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" + } + ] + } + }, "UpdateGroup": { "type": "object", "description": "A group to be updated.", @@ -1909,6 +2113,11 @@ "x-ms-identifiers": [ "name" ] + }, + "nodeImageSelection": { + "$ref": "#/definitions/NodeImageSelectionStatus", + "description": "The node image upgrade specs for the update run. It is only set in update run when `NodeImageSelection.type` is `Consistent`.", + "readOnly": true } } }, @@ -2002,12 +2211,50 @@ "Running", "Stopping", "Stopped", + "Skipped", "Failed", "Completed" ], "x-ms-enum": { "name": "UpdateState", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "NotStarted", + "value": "NotStarted", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has not been started." + }, + { + "name": "Running", + "value": "Running", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is running." + }, + { + "name": "Stopping", + "value": "Stopping", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is being stopped." + }, + { + "name": "Stopped", + "value": "Stopped", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has stopped." + }, + { + "name": "Skipped", + "value": "Skipped", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has been skipped." + }, + { + "name": "Failed", + "value": "Failed", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has failed." + }, + { + "name": "Completed", + "value": "Completed", + "description": "The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has completed." + } + ] } }, "UpdateStatus": { From 0799bd2ab2a9dbcf76d31b35349846f31fcca8f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Fri, 28 Jul 2023 14:30:27 +1000 Subject: [PATCH 05/12] fix tspconfig (#25031) --- specification/containerservice/Fleet.Management/tspconfig.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/containerservice/Fleet.Management/tspconfig.yaml b/specification/containerservice/Fleet.Management/tspconfig.yaml index cf3eb6cf2d59..9557c291df03 100644 --- a/specification/containerservice/Fleet.Management/tspconfig.yaml +++ b/specification/containerservice/Fleet.Management/tspconfig.yaml @@ -4,6 +4,7 @@ options: '@azure-tools/typespec-autorest': azure-resource-provider-folder: "resource-manager" emitter-output-dir: "{project-root}/.." + arm-types-dir: "{project-root}/../../common-types/resource-management" examples-directory: "examples" output-file: "{azure-resource-provider-folder}/{service-name}/fleet/{version-status}/{version}/fleets.json" omit-unreachable-types: true From a8a3fcef602486b27c2657ed4e8d8c02e0e33f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Fri, 28 Jul 2023 16:41:38 +1000 Subject: [PATCH 06/12] [Fleet][readmes] Dev aks fleet 2023 06 15 preview readmes (#25033) * update readmes * fix readme mistake --- .../Microsoft.ContainerService/fleet/readme.go.md | 1 + .../fleet/readme.java.md | 14 ++++++++++++++ .../Microsoft.ContainerService/fleet/readme.md | 8 ++++---- .../fleet/readme.python.md | 13 ++++++++++++- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.go.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.go.md index 7646da75dd7c..bb96855bbaf6 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.go.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.go.md @@ -20,6 +20,7 @@ azure-arm: true ``` yaml $(go) && $(multiapi) batch: + - tag: package-2023-06-preview - tag: package-2023-03-preview - tag: package-2022-09-preview - tag: package-2022-07-preview diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.java.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.java.md index 3c355faa8ffd..bc2a1c9cb752 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.java.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.java.md @@ -18,12 +18,26 @@ description: "Azure Kubernetes Fleet Manager Client" ``` yaml $(java) && $(multiapi) batch: + - tag: package-2023-06-preview - tag: package-2023-03-preview - tag: package-2022-09-preview - tag: package-2022-07-preview - tag: package-2022-06-preview ``` +### Tag: package-2023-06-preview and java + +These settings apply only when `--tag=package-2023-06-preview` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2023-06-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.containerservicefleet.v2023_06_15_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/containerservice/mgmt-v2023_06_15_preview +regenerate-manager: true +generate-interface: true +``` + ### Tag: package-2023-03-preview and java These settings apply only when `--tag=package-2023-03-preview` is specified on the command line. diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md index 04284416faba..c2377fb9f05e 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.md @@ -26,15 +26,15 @@ These are the global settings for the ContainerServices API. ``` yaml openapi-type: arm -tag: package-preview-2023-06 +tag: package-2023-06-preview ``` -### Tag: package-preview-2023-06 +### Tag: package-2023-06-preview -These settings apply only when `--tag=package-preview-2023-06` is specified on the command line. +These settings apply only when `--tag=package-2023-06-preview` is specified on the command line. -```yaml $(tag) == 'package-preview-2023-06' +```yaml $(tag) == 'package-2023-06-preview' input-file: - preview/2023-06-15-preview/fleets.json ``` diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.python.md b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.python.md index e0737665b261..98a6c7773d1f 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.python.md +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/readme.python.md @@ -17,9 +17,10 @@ no-namespace-folders: true Generate all API versions currently shipped for this package ```yaml $(python) -default-api-version: "2023-03-15-preview" +default-api-version: "2023-06-15-preview" multiapi: true batch: + - tag: package-2023-06-preview - tag: package-2023-03-preview - tag: package-2022-09-preview - tag: package-2022-07-preview @@ -32,6 +33,16 @@ output-folder: $(python-sdks-folder)/containerservice/azure-mgmt-containerservic perform-load: false ``` +### Tag: package-2023-06-preview and python + +These settings apply only when `--tag=package-2023-06-preview --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-2023-06-preview' && $(python) +namespace: azure.mgmt.containerservicefleet.v2023_06_15_preview +output-folder: $(python-sdks-folder)/containerservice/azure-mgmt-containerservicefleet/azure/mgmt/containerservicefleet/v2023_06_15_preview +``` + ### Tag: package-2023-03-preview and python These settings apply only when `--tag=package-2023-03-preview --python` is specified on the command line. From cf7c8819da8c44e615e173b78311a0b86c7d18c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Wed, 2 Aug 2023 16:36:25 +1000 Subject: [PATCH 07/12] fix operationid warnings (#25109) --- specification/containerservice/Fleet.Management/fleet.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerservice/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index 2006064cf47e..ebfe43774106 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -160,6 +160,7 @@ interface Fleets { get is ArmResourceRead; @doc("Creates or updates a Fleet.") + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "changing the operation-id on an existing operation is an SDK breaking change" @operationId("Fleets_CreateOrUpdate") create is ArmResourceCreateOrUpdateAsync< Fleet, @@ -182,7 +183,6 @@ interface Fleets { @doc("Lists fleets in the specified subscription and resource group.") listByResourceGroup is ArmResourceListByParent; - @operationId("Fleets_ListBySubscription") @doc("Lists fleets in the specified subscription.") listBySubscription is ArmListBySubscription; From ffc2a737521f494b3e45960af120a8c73fdb29bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Wed, 2 Aug 2023 18:07:44 +1000 Subject: [PATCH 08/12] tsp format (#25111) --- .../containerservice/Fleet.Management/fleet.tsp | 11 ++++++++--- .../containerservice/Fleet.Management/fleetmember.tsp | 11 +++++++++-- .../containerservice/Fleet.Management/main.tsp | 2 +- .../containerservice/Fleet.Management/updaterun.tsp | 6 ++++++ 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/specification/containerservice/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index ebfe43774106..01ebf35a401a 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -29,6 +29,7 @@ model Fleet is TrackedResource { @segment("fleets") @visibility("create", "read") name: string; + ...EntityTag; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "https://github.com/Azure/typespec-azure/issues/2840" @@ -95,11 +96,11 @@ model APIServerAccessProfile { @visibility("read", "create") @doc("Whether to enable apiserver vnet integration for the Fleet hub or not.") - enableVnetIntegration?: boolean; + enableVnetIntegration?: boolean; @visibility("read", "create") @doc("The subnet to be used when apiserver vnet integration is enabled. It is required when creating a new Fleet with BYO vnet.") - subnetId?: SubnetResourceId; + subnetId?: SubnetResourceId; } @doc("Agent profile for the Fleet hub.") @@ -113,10 +114,13 @@ model AgentProfile { @doc("The provisioning state of the last accepted operation.") enum FleetProvisioningState { ...ResourceProvisioningState, + @doc("The provisioning state of a fleet being created.") Creating, + @doc("The provisioning state of a fleet being updated.") Updating, + @doc("The provisioning state of a fleet being deleted.") Deleting, } @@ -125,6 +129,7 @@ enum FleetProvisioningState { model FleetPatch { @doc("Resource tags.") tags?: Record; + // adding a response header in the model currently impacts the model used in the List result model. // omitting it for now as response headers do not impact SDK generation. // ...EtagResponseEnvelope; @@ -159,8 +164,8 @@ interface Fleets { @doc("Gets a Fleet.") get is ArmResourceRead; - @doc("Creates or updates a Fleet.") #suppress "@azure-tools/typespec-azure-core/no-operation-id" "changing the operation-id on an existing operation is an SDK breaking change" + @doc("Creates or updates a Fleet.") @operationId("Fleets_CreateOrUpdate") create is ArmResourceCreateOrUpdateAsync< Fleet, diff --git a/specification/containerservice/Fleet.Management/fleetmember.tsp b/specification/containerservice/Fleet.Management/fleetmember.tsp index b44e860cadf1..3fe041e7bea0 100644 --- a/specification/containerservice/Fleet.Management/fleetmember.tsp +++ b/specification/containerservice/Fleet.Management/fleetmember.tsp @@ -24,6 +24,7 @@ model FleetMember is ProxyResource { @segment("members") @visibility("create", "read") name: string; + ...EntityTag; } @@ -60,10 +61,13 @@ model FleetMemberProperties { @doc("The provisioning state of the last accepted operation.") enum FleetMemberProvisioningState { ...ResourceProvisioningState, + @doc("The provisioning state of a member joining a fleet.") Joining, + @doc("The provisioning state of a member leaving a fleet.") Leaving, + @doc("The provisioning state of a member being updated.") Updating, } @@ -80,8 +84,11 @@ interface FleetMembers { >; @added(Versions.v2023_03_15_preview) - update is ArmResourcePatchAsync & - IfMatchParameters>; + update is ArmResourcePatchAsync< + FleetMember, + FleetMemberProperties, + BaseParameters & IfMatchParameters + >; delete is ArmResourceDeleteAsync< FleetMember, diff --git a/specification/containerservice/Fleet.Management/main.tsp b/specification/containerservice/Fleet.Management/main.tsp index c88db8ae9dc1..af8b1dc02f5f 100644 --- a/specification/containerservice/Fleet.Management/main.tsp +++ b/specification/containerservice/Fleet.Management/main.tsp @@ -33,5 +33,5 @@ enum Versions { @doc("Azure Kubernetes Fleet Manager api version 2023-06-15-preview.") @useDependency(Azure.Core.Versions.v1_0_Preview_2) @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) - v2023_06_15_preview: "2023-06-15-preview" + v2023_06_15_preview: "2023-06-15-preview", } diff --git a/specification/containerservice/Fleet.Management/updaterun.tsp b/specification/containerservice/Fleet.Management/updaterun.tsp index d5dd04777c08..0414f277365f 100644 --- a/specification/containerservice/Fleet.Management/updaterun.tsp +++ b/specification/containerservice/Fleet.Management/updaterun.tsp @@ -30,6 +30,7 @@ model UpdateRun is ProxyResource { @path @visibility("create", "read") name: string; + ...EntityTag; } @@ -161,18 +162,23 @@ enum ManagedClusterUpgradeType { enum UpdateState { @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has not been started.") NotStarted, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is running.") Running, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that is being stopped.") Stopping, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has stopped.") Stopped, @added(Versions.v2023_06_15_preview) @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has been skipped.") Skipped, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has failed.") Failed, + @doc("The state of an UpdateRun/UpdateStage/UpdateGroup/MemberUpdate that has completed.") Completed, } From 628448fa1c4b96643c4dfe38ae3d72ea98ca0b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Erbrech?= Date: Thu, 3 Aug 2023 09:30:49 +1000 Subject: [PATCH 09/12] Fix aks fleet 2023 06 15 preview patchasync from 0615 (#25131) * do the breaking change only from 0615 * fix patch * compile to get examples * remove sample --- .../2022-09-02-preview/Fleets_PatchTags.json | 6 ------ .../2023-03-15-preview/Fleets_PatchTags.json | 6 ------ .../Fleet.Management/fleet.tsp | 17 +++++++++++++++- .../examples/Fleets_PatchTags.json | 6 ------ .../preview/2022-09-02-preview/fleets.json | 20 +------------------ .../examples/Fleets_PatchTags.json | 6 ------ .../preview/2023-03-15-preview/fleets.json | 20 +------------------ 7 files changed, 18 insertions(+), 63 deletions(-) diff --git a/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json index 82ef0dd65960..fa097d7b944c 100644 --- a/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json +++ b/specification/containerservice/Fleet.Management/examples/2022-09-02-preview/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "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/2023-03-15-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json index ddb7e8f16dec..455ebc78a602 100644 --- a/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json +++ b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "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/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index 01ebf35a401a..bd588fdd1147 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -174,12 +174,27 @@ interface Fleets { IfNoneMatchParameters >; - update is ArmCustomPatchAsync< + #suppress "@azure-tools/typespec-providerhub/non-breaking-versioning" "Actual breaking change" + @sharedRoute + @removed(Versions.v2023_06_15_preview) + update is ArmCustomPatchSync< Fleet, FleetPatch, BaseParameters & IfMatchParameters >; + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "Use operationId to keep same name as deprecated sync operation" + @added(Versions.v2023_06_15_preview) + @operationId("Fleets_Update") + @sharedRoute + updateAsync is ArmCustomPatchAsync< + Fleet, + FleetPatch, + BaseParameters & IfMatchParameters + >; + + @sharedRoute // why do we need to set shared route on delete? compiler complains with an error + // All shared routes must agree on the value of the shared parameter.TypeSpec(@typespec/http/shared-inconsistency) delete is ArmResourceDeleteAsync< Fleet, BaseParameters & IfMatchParameters diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json index 82ef0dd65960..fa097d7b944c 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2022-09-02-preview/examples/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "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/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 ead0675e555c..35c7a88998e7 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 @@ -355,20 +355,6 @@ "$ref": "#/definitions/Fleet" } }, - "202": { - "description": "Resource update request accepted.", - "headers": { - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - } - } - }, "default": { "description": "An unexpected error response.", "schema": { @@ -380,11 +366,7 @@ "Update a Fleet.": { "$ref": "./examples/Fleets_PatchTags.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "delete": { "operationId": "Fleets_Delete", diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json index ddb7e8f16dec..455ebc78a602 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/Fleets_PatchTags.json @@ -46,12 +46,6 @@ "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/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 1116a74960de..86b76a4d9966 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 @@ -358,20 +358,6 @@ "$ref": "#/definitions/Fleet" } }, - "202": { - "description": "Resource update request accepted.", - "headers": { - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - } - } - }, "default": { "description": "An unexpected error response.", "schema": { @@ -383,11 +369,7 @@ "Update a Fleet.": { "$ref": "./examples/Fleets_PatchTags.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "delete": { "operationId": "Fleets_Delete", From 20bbd22a79112e016961c4fd5048af555f4dacdc Mon Sep 17 00:00:00 2001 From: zman-ms <99997769+zman-ms@users.noreply.github.com> Date: Wed, 2 Aug 2023 18:30:38 -0700 Subject: [PATCH 10/12] fix member upate operation (#25134) --- .../FleetMembers_Update.json | 6 ------ .../Fleet.Management/fleetmember.tsp | 17 +++++++++++++++- .../examples/FleetMembers_Update.json | 6 ------ .../preview/2023-03-15-preview/fleets.json | 20 +------------------ 4 files changed, 17 insertions(+), 32 deletions(-) diff --git a/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/FleetMembers_Update.json b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/FleetMembers_Update.json index f3e474283a0a..d97d675a02af 100644 --- a/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/FleetMembers_Update.json +++ b/specification/containerservice/Fleet.Management/examples/2023-03-15-preview/FleetMembers_Update.json @@ -37,12 +37,6 @@ "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/fleetmember.tsp b/specification/containerservice/Fleet.Management/fleetmember.tsp index 3fe041e7bea0..c9e85b9c8eae 100644 --- a/specification/containerservice/Fleet.Management/fleetmember.tsp +++ b/specification/containerservice/Fleet.Management/fleetmember.tsp @@ -83,13 +83,28 @@ interface FleetMembers { IfNoneMatchParameters >; + #suppress "@azure-tools/typespec-providerhub/non-breaking-versioning" "Actual breaking change" + @sharedRoute @added(Versions.v2023_03_15_preview) - update is ArmResourcePatchAsync< + @removed(Versions.v2023_06_15_preview) + update is ArmResourcePatchSync< FleetMember, FleetMemberProperties, BaseParameters & IfMatchParameters >; + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "Use operationId to keep same name as deprecated sync operation" + @sharedRoute + @added(Versions.v2023_06_15_preview) + @operationId("FleetMembers_Update") + updateAsync is ArmResourcePatchAsync< + FleetMember, + FleetMemberProperties, + BaseParameters & IfMatchParameters + >; + + @sharedRoute // why do we need to set shared route on delete? compiler complains with an error + // All shared routes must agree on the value of the shared parameter.TypeSpec(@typespec/http/shared-inconsistency) delete is ArmResourceDeleteAsync< FleetMember, BaseParameters & IfMatchParameters diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json index f3e474283a0a..d97d675a02af 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2023-03-15-preview/examples/FleetMembers_Update.json @@ -37,12 +37,6 @@ "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/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 86b76a4d9966..3582a1740628 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 @@ -764,20 +764,6 @@ "$ref": "#/definitions/FleetMember" } }, - "202": { - "description": "Resource update request accepted.", - "headers": { - "Retry-After": { - "type": "integer", - "format": "int32", - "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." - } - } - }, "default": { "description": "An unexpected error response.", "schema": { @@ -789,11 +775,7 @@ "Updates a FleetMember resource synchronously.": { "$ref": "./examples/FleetMembers_Update.json" } - }, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - }, - "x-ms-long-running-operation": true + } }, "delete": { "operationId": "FleetMembers_Delete", From 9f1d104ce873cdb82612f51e261ebaa0730967ce Mon Sep 17 00:00:00 2001 From: zman-ms <99997769+zman-ms@users.noreply.github.com> Date: Fri, 4 Aug 2023 16:35:35 -0700 Subject: [PATCH 11/12] revert extension removal (#25189) --- .../containerservice/Fleet.Management/updaterun.tsp | 6 ++++++ .../fleet/preview/2023-03-15-preview/fleets.json | 2 +- .../fleet/preview/2023-06-15-preview/fleets.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/specification/containerservice/Fleet.Management/updaterun.tsp b/specification/containerservice/Fleet.Management/updaterun.tsp index 0414f277365f..9d2dcbdb3046 100644 --- a/specification/containerservice/Fleet.Management/updaterun.tsp +++ b/specification/containerservice/Fleet.Management/updaterun.tsp @@ -319,6 +319,12 @@ interface UpdateRuns { IfNoneMatchParameters >; + @extension( + "x-ms-long-running-operation-options", + { + `final-state-via`: "location", + } + ) delete is FleetArmResourceDeleteAsync< UpdateRun, BaseParameters & IfMatchParameters 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 3582a1740628..cb25ff1e74b5 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 @@ -1149,7 +1149,7 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-long-running-operation": true } 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 b4eaeb7db17d..b3bdb518b919 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 @@ -1185,7 +1185,7 @@ } }, "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" + "final-state-via": "location" }, "x-ms-long-running-operation": true } From 44f2bc23761bb8b57a2413e471c19f6e6bb2cff4 Mon Sep 17 00:00:00 2001 From: zman-ms <99997769+zman-ms@users.noreply.github.com> Date: Thu, 24 Aug 2023 18:54:14 -0700 Subject: [PATCH 12/12] generate with type spec v0.47.0 (#25484) --- .../fleet/preview/2022-09-02-preview/fleets.json | 8 ++++---- .../fleet/preview/2023-03-15-preview/fleets.json | 12 ++++++------ .../fleet/preview/2023-06-15-preview/fleets.json | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) 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 35c7a88998e7..e810d09689bb 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 @@ -269,13 +269,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'Fleet' update operation succeeded", "schema": { "$ref": "#/definitions/Fleet" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'Fleet' create operation succeeded", "schema": { "$ref": "#/definitions/Fleet" }, @@ -665,13 +665,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'FleetMember' update operation succeeded", "schema": { "$ref": "#/definitions/FleetMember" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'FleetMember' create operation succeeded", "schema": { "$ref": "#/definitions/FleetMember" }, 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 cb25ff1e74b5..bdb4739d0cc6 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 @@ -272,13 +272,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'Fleet' update operation succeeded", "schema": { "$ref": "#/definitions/Fleet" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'Fleet' create operation succeeded", "schema": { "$ref": "#/definitions/Fleet" }, @@ -668,13 +668,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'FleetMember' update operation succeeded", "schema": { "$ref": "#/definitions/FleetMember" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'FleetMember' create operation succeeded", "schema": { "$ref": "#/definitions/FleetMember" }, @@ -1035,13 +1035,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'UpdateRun' update operation succeeded", "schema": { "$ref": "#/definitions/UpdateRun" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'UpdateRun' create operation succeeded", "schema": { "$ref": "#/definitions/UpdateRun" }, 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 b3bdb518b919..4398968a0fca 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 @@ -272,13 +272,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'Fleet' update operation succeeded", "schema": { "$ref": "#/definitions/Fleet" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'Fleet' create operation succeeded", "schema": { "$ref": "#/definitions/Fleet" }, @@ -686,13 +686,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'FleetMember' update operation succeeded", "schema": { "$ref": "#/definitions/FleetMember" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'FleetMember' create operation succeeded", "schema": { "$ref": "#/definitions/FleetMember" }, @@ -1071,13 +1071,13 @@ ], "responses": { "200": { - "description": "ARM operation completed successfully.", + "description": "Resource 'UpdateRun' update operation succeeded", "schema": { "$ref": "#/definitions/UpdateRun" } }, "201": { - "description": "ARM create operation completed successfully.", + "description": "Resource 'UpdateRun' create operation succeeded", "schema": { "$ref": "#/definitions/UpdateRun" },