diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Create.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Create.json new file mode 100644 index 000000000000..e3f2759e9ef9 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Create.json @@ -0,0 +1,68 @@ +{ + "operationId": "FleetMembers_Create", + "title": "Creates a FleetMember resource with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1", + "resource": { + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1" + } + } + }, + "responses": { + "201": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "23ujdflewrj3=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + }, + "200": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "23ujdflewrj3=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Delete.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Delete.json new file mode 100644 index 000000000000..96ea318bfb1c --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "FleetMembers_Delete", + "title": "Deletes a FleetMember resource asynchronously with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Get.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Get.json new file mode 100644 index 000000000000..e1bbe2da8cb6 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Get.json @@ -0,0 +1,36 @@ +{ + "operationId": "FleetMembers_Get", + "title": "Gets a FleetMember resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1" + }, + "responses": { + "200": { + "headers": { + "ETag": "kd30rkdfo49=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "kd30rkdfo49=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_ListByFleet.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_ListByFleet.json new file mode 100644 index 000000000000..b82dbb7b76a0 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_ListByFleet.json @@ -0,0 +1,37 @@ +{ + "operationId": "FleetMembers_ListByFleet", + "title": "Lists the members of a Fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "kd30rkdfo49=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Update.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Update.json new file mode 100644 index 000000000000..ba8d1f69123a --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/FleetMembers_Update.json @@ -0,0 +1,48 @@ +{ + "operationId": "FleetMembers_Update", + "title": "Updates a FleetMember resource synchronously.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "fleetMemberName": "member-1", + "properties": { + "properties": { + "group": "staging" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1", + "name": "member-1", + "type": "Microsoft.ContainerService/fleets/members", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "eTag": "23ujdflewrj3=", + "properties": { + "clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1", + "group": "staging", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Retry-After": "20", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_CreateOrUpdate.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_CreateOrUpdate.json new file mode 100644 index 000000000000..2a0e618cb213 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_CreateOrUpdate.json @@ -0,0 +1,103 @@ +{ + "operationId": "Fleets_CreateOrUpdate", + "title": "Creates a Fleet resource with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "resource": { + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "agentProfile": { + "vmSize": "Standard_DS1" + } + } + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Updating" + } + } + }, + "201": { + "headers": { + "ETag": "23ujdflewrj3=", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet1", + "name": "fleet1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Delete.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Delete.json new file mode 100644 index 000000000000..c77c8535ffb8 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Delete.json @@ -0,0 +1,20 @@ +{ + "operationId": "Fleets_Delete", + "title": "Deletes a Fleet resource asynchronously with a long running operation.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Get.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Get.json new file mode 100644 index 000000000000..4c6ff8a5610e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_Get.json @@ -0,0 +1,48 @@ +{ + "operationId": "Fleets_Get", + "title": "Gets a Fleet resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListByResourceGroup.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListByResourceGroup.json new file mode 100644 index 000000000000..0ea97f40c667 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListByResourceGroup.json @@ -0,0 +1,49 @@ +{ + "operationId": "Fleets_ListByResourceGroup", + "title": "Lists the Fleet resources in a resource group.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListBySub.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListBySub.json new file mode 100644 index 000000000000..93c05450e1ab --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListBySub.json @@ -0,0 +1,48 @@ +{ + "operationId": "Fleets_ListBySubscription", + "title": "Lists the Fleet resources in a subscription.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "production", + "archv2": "" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListCredentialsResult.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListCredentialsResult.json new file mode 100644 index 000000000000..f07524926a1b --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_ListCredentialsResult.json @@ -0,0 +1,22 @@ +{ + "operationId": "Fleets_ListCredentials", + "title": "Lists the user credentials of a Fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet" + }, + "responses": { + "200": { + "body": { + "kubeconfigs": [ + { + "name": "credentialName1", + "value": "Y3JlZGVudGlhbFZhbHVlMQ==" + } + ] + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_PatchTags.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_PatchTags.json new file mode 100644 index 000000000000..7d6ac5ac3bd8 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Fleets_PatchTags.json @@ -0,0 +1,61 @@ +{ + "operationId": "Fleets_Update", + "title": "Update a Fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "If-Match": "dfjkwelr7384", + "properties": { + "tags": { + "tier": "secure", + "env": "prod" + } + } + }, + "responses": { + "200": { + "headers": { + "ETag": "23ujdflewrj3=" + }, + "body": { + "id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1", + "name": "fleet-1", + "type": "Microsoft.ContainerService/fleets", + "systemData": { + "createdBy": "someUser", + "createdByType": "User", + "createdAt": "2022-03-23T05:40:40.657Z", + "lastModifiedBy": "someOtherUser", + "lastModifiedByType": "User", + "lastModifiedAt": "2022-03-23T05:40:40.657Z" + }, + "tags": { + "tier": "secure", + "env": "prod" + }, + "location": "East US", + "eTag": "23ujdflewrj3=", + "properties": { + "hubProfile": { + "dnsPrefix": "dnsprefix1", + "fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "portalFqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io", + "kubernetesVersion": "1.22.4", + "agentProfile": { + "vmSize": "Standard_DS1" + } + }, + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Retry-After": "20", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-02-01" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json new file mode 100644 index 000000000000..cdc0a85b3463 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/Operations_List.json @@ -0,0 +1,25 @@ +{ + "operationId": "Operations_List", + "title": "List the operations for the provider.", + "parameters": { + "api-version": "2023-08-15-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "display": { + "description": "Gets the status of an asynchronous operation", + "operation": "Get Operation", + "provider": "Microsoft Container Service", + "resource": "Operation" + }, + "name": "Microsoft.ContainerService/locations/operations/read", + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_CreateOrUpdate.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_CreateOrUpdate.json new file mode 100644 index 000000000000..d53cf937fc4e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_CreateOrUpdate.json @@ -0,0 +1,196 @@ +{ + "operationId": "UpdateRuns_CreateOrUpdate", + "title": "Create an UpdateRun.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1", + "resource": { + "properties": { + "updateStrategyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "updateStrategyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "updateStrategyId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateStrategies/strategy1", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Delete.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Delete.json new file mode 100644 index 000000000000..4943c4c2100b --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Delete.json @@ -0,0 +1,21 @@ +{ + "operationId": "UpdateRuns_Delete", + "title": "Delete an updateRun resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "subid1", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1" + }, + "responses": { + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-09-02-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-09-02-preview" + } + }, + "200": {}, + "204": {} + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Get.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Get.json new file mode 100644 index 000000000000..4b96e44e784e --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_Get.json @@ -0,0 +1,90 @@ +{ + "operationId": "UpdateRuns_Get", + "title": "Gets an UpdateRun resource.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1", + "updateRunName": "run1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + } + } +} diff --git a/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_ListByFleet.json b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_ListByFleet.json new file mode 100644 index 000000000000..d5d987b71552 --- /dev/null +++ b/specification/containerservice/Fleet.Management/examples/2024-02-02-preview/UpdateRuns_ListByFleet.json @@ -0,0 +1,94 @@ +{ + "operationId": "UpdateRuns_ListByFleet", + "title": "Lists the UpdateRun resources by fleet.", + "parameters": { + "api-version": "2024-02-02-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg1", + "fleetName": "fleet1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/fleets/myFleet/updateRuns/run1", + "name": "run1", + "type": "Microsoft.ContainerService/fleets/updateRuns", + "systemData": { + "createdBy": "@contoso.com", + "createdByType": "User", + "createdAt": "2023-03-01T01:10:08.395Z", + "lastModifiedBy": "@contoso.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2023-03-01T01:10:08.395Z" + }, + "properties": { + "provisioningState": "Succeeded", + "strategy": { + "stages": [ + { + "name": "stage1", + "groups": [ + { + "name": "group-a" + } + ], + "afterStageWaitInSeconds": 3600 + } + ] + }, + "managedClusterUpdate": { + "upgrade": { + "type": "Full", + "kubernetesVersion": "1.26.1" + }, + "nodeImageSelection": { + "type": "Latest" + } + }, + "status": { + "status": { + "state": "NotStarted" + }, + "stages": [ + { + "status": { + "state": "NotStarted" + }, + "name": "stage1", + "groups": [ + { + "status": { + "state": "NotStarted" + }, + "name": "group-a", + "members": [ + { + "status": { + "state": "NotStarted" + }, + "name": "member-one", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myClusters/providers/Microsoft.ContainerService/managedClusters/myCluster" + } + ] + } + ], + "afterStageWaitStatus": { + "status": { + "state": "NotStarted" + }, + "waitDurationInSeconds": 3600 + } + } + ] + } + }, + "eTag": "\"EtagValue\"" + } + ], + "nextLink": "http://nextlink.contoso.com" + } + } + } +} diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json index aa8f9f0ceb96..cdc0a85b3463 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/examples/Operations_List.json @@ -2,7 +2,7 @@ "operationId": "Operations_List", "title": "List the operations for the provider.", "parameters": { - "api-version": "2024-02-02-preview" + "api-version": "2023-08-15-preview" }, "responses": { "200": { diff --git a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json index 6bbb51d33866..ffb3435eed15 100644 --- a/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json +++ b/specification/containerservice/resource-manager/Microsoft.ContainerService/fleet/preview/2024-02-02-preview/fleets.json @@ -82,6 +82,11 @@ } } }, + "x-ms-examples": { + "List the operations for the provider.": { + "$ref": "./examples/Operations_List.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -116,6 +121,11 @@ } } }, + "x-ms-examples": { + "Lists the Fleet resources in a subscription.": { + "$ref": "./examples/Fleets_ListBySub.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -153,6 +163,11 @@ } } }, + "x-ms-examples": { + "Lists the Fleet resources in a resource group.": { + "$ref": "./examples/Fleets_ListByResourceGroup.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -199,6 +214,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets a Fleet resource.": { + "$ref": "./examples/Fleets_Get.json" + } } }, "put": { @@ -280,6 +300,11 @@ } } }, + "x-ms-examples": { + "Creates a Fleet resource with a long running operation.": { + "$ref": "./examples/Fleets_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -357,6 +382,11 @@ } } }, + "x-ms-examples": { + "Update a Fleet.": { + "$ref": "./examples/Fleets_PatchTags.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -425,6 +455,11 @@ } } }, + "x-ms-examples": { + "Deletes a Fleet resource asynchronously with a long running operation.": { + "$ref": "./examples/Fleets_Delete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -472,6 +507,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Lists the user credentials of a Fleet.": { + "$ref": "./examples/Fleets_ListCredentialsResult.json" + } } } }, @@ -517,6 +557,11 @@ } } }, + "x-ms-examples": { + "Lists the members of a Fleet.": { + "$ref": "./examples/FleetMembers_ListByFleet.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -573,6 +618,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets a FleetMember resource.": { + "$ref": "./examples/FleetMembers_Get.json" + } } }, "put": { @@ -664,6 +714,11 @@ } } }, + "x-ms-examples": { + "Creates a FleetMember resource with a long running operation.": { + "$ref": "./examples/FleetMembers_Create.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -751,6 +806,11 @@ } } }, + "x-ms-examples": { + "Updates a FleetMember resource synchronously.": { + "$ref": "./examples/FleetMembers_Update.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -829,6 +889,11 @@ } } }, + "x-ms-examples": { + "Deletes a FleetMember resource asynchronously with a long running operation.": { + "$ref": "./examples/FleetMembers_Delete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, @@ -877,6 +942,11 @@ } } }, + "x-ms-examples": { + "Lists the UpdateRun resources by fleet.": { + "$ref": "./examples/UpdateRuns_ListByFleet.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } @@ -933,6 +1003,11 @@ "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets an UpdateRun resource.": { + "$ref": "./examples/UpdateRuns_Get.json" + } } }, "put": { @@ -1024,6 +1099,11 @@ } } }, + "x-ms-examples": { + "Create an UpdateRun.": { + "$ref": "./examples/UpdateRuns_CreateOrUpdate.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, @@ -1102,6 +1182,11 @@ } } }, + "x-ms-examples": { + "Delete an updateRun resource.": { + "$ref": "./examples/UpdateRuns_Delete.json" + } + }, "x-ms-long-running-operation-options": { "final-state-via": "location" },