Skip to content

Commit 802fc0a

Browse files
zman-msserbrech
andauthored
[Fleet] API 2023-06-15-preview (#25027)
* 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 * [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 * fix tspconfig (#25031) * [Fleet][readmes] Dev aks fleet 2023 06 15 preview readmes (#25033) * update readmes * fix readme mistake * fix operationid warnings (#25109) * tsp format (#25111) * 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 * fix member upate operation (#25134) * revert extension removal (#25189) * generate with type spec v0.47.0 (#25484) --------- Co-authored-by: Stéphane Erbrech <[email protected]>
1 parent 5d2f32d commit 802fc0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4911
-29
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ connectionstrings
524524
conntrack
525525
consistencygroup
526526
consumergroups
527+
containerd
527528
containerid
528529
containerinstance
529530
containerlogs
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
output
3+
package.json
4+
package-lock.json
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Fleet service cadl project
2+
3+
## Getting started
4+
5+
- environment setup: https://microsoft.github.io/typespec/introduction/installation
6+
7+
## Generate fleet swagger
8+
9+
## NPM registry authentication
10+
11+
We have to use the Central Feed Service for NPM to fetch the typespec dependencies.
12+
The `.npmrc` file configures the folder accordingly for CI.
13+
14+
in development, you can tell npm to use the standard public registry by specifying it:
15+
16+
`npm install --registry https://registry.npmjs.org`
17+
18+
then:
19+
20+
`tsp compile .`
21+
22+
## Development
23+
24+
Always edit `tsp` files, and generate swagger, never edit the swagger directly.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"operationId": "FleetMembers_Create",
3+
"title": "Creates a FleetMember resource with a long running operation.",
4+
"parameters": {
5+
"api-version": "2023-06-15-preview",
6+
"subscriptionId": "subid1",
7+
"resourceGroupName": "rg1",
8+
"fleetName": "fleet1",
9+
"fleetMemberName": "member-1",
10+
"resource": {
11+
"properties": {
12+
"clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"201": {
18+
"headers": {
19+
"ETag": "23ujdflewrj3=",
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",
21+
"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"
22+
},
23+
"body": {
24+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1",
25+
"name": "member-1",
26+
"type": "Microsoft.ContainerService/fleets/members",
27+
"systemData": {
28+
"createdBy": "someUser",
29+
"createdByType": "User",
30+
"createdAt": "2022-03-23T05:40:40.657Z",
31+
"lastModifiedBy": "someOtherUser",
32+
"lastModifiedByType": "User",
33+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
34+
},
35+
"eTag": "23ujdflewrj3=",
36+
"properties": {
37+
"clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1",
38+
"provisioningState": "Succeeded"
39+
}
40+
}
41+
},
42+
"200": {
43+
"headers": {
44+
"ETag": "23ujdflewrj3=",
45+
"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",
46+
"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"
47+
},
48+
"body": {
49+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1",
50+
"name": "member-1",
51+
"type": "Microsoft.ContainerService/fleets/members",
52+
"systemData": {
53+
"createdBy": "someUser",
54+
"createdByType": "User",
55+
"createdAt": "2022-03-23T05:40:40.657Z",
56+
"lastModifiedBy": "someOtherUser",
57+
"lastModifiedByType": "User",
58+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
59+
},
60+
"eTag": "23ujdflewrj3=",
61+
"properties": {
62+
"clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1",
63+
"provisioningState": "Succeeded"
64+
}
65+
}
66+
}
67+
}
68+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"operationId": "FleetMembers_Delete",
3+
"title": "Deletes a FleetMember resource asynchronously with a long running operation.",
4+
"parameters": {
5+
"api-version": "2023-06-15-preview",
6+
"subscriptionId": "subid1",
7+
"resourceGroupName": "rg1",
8+
"fleetName": "fleet1",
9+
"fleetMemberName": "member-1"
10+
},
11+
"responses": {
12+
"202": {
13+
"headers": {
14+
"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",
15+
"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"
16+
}
17+
},
18+
"200": {},
19+
"204": {}
20+
}
21+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"operationId": "FleetMembers_Get",
3+
"title": "Gets a FleetMember resource.",
4+
"parameters": {
5+
"api-version": "2023-06-15-preview",
6+
"subscriptionId": "subid1",
7+
"resourceGroupName": "rg1",
8+
"fleetName": "fleet1",
9+
"fleetMemberName": "member-1"
10+
},
11+
"responses": {
12+
"200": {
13+
"headers": {
14+
"ETag": "kd30rkdfo49="
15+
},
16+
"body": {
17+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1",
18+
"name": "member-1",
19+
"type": "Microsoft.ContainerService/fleets/members",
20+
"systemData": {
21+
"createdBy": "someUser",
22+
"createdByType": "User",
23+
"createdAt": "2022-03-23T05:40:40.657Z",
24+
"lastModifiedBy": "someOtherUser",
25+
"lastModifiedByType": "User",
26+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
27+
},
28+
"eTag": "kd30rkdfo49=",
29+
"properties": {
30+
"clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1",
31+
"provisioningState": "Succeeded"
32+
}
33+
}
34+
}
35+
}
36+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"operationId": "FleetMembers_ListByFleet",
3+
"title": "Lists the members of a Fleet.",
4+
"parameters": {
5+
"api-version": "2023-06-15-preview",
6+
"subscriptionId": "subid1",
7+
"resourceGroupName": "rg1",
8+
"fleetName": "fleet1"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1",
16+
"name": "member-1",
17+
"type": "Microsoft.ContainerService/fleets/members",
18+
"systemData": {
19+
"createdBy": "someUser",
20+
"createdByType": "User",
21+
"createdAt": "2022-03-23T05:40:40.657Z",
22+
"lastModifiedBy": "someOtherUser",
23+
"lastModifiedByType": "User",
24+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
25+
},
26+
"eTag": "kd30rkdfo49=",
27+
"properties": {
28+
"clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1",
29+
"provisioningState": "Succeeded"
30+
}
31+
}
32+
],
33+
"nextLink": null
34+
}
35+
}
36+
}
37+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"operationId": "FleetMembers_Update",
3+
"title": "Updates a FleetMember resource synchronously.",
4+
"parameters": {
5+
"api-version": "2023-06-15-preview",
6+
"subscriptionId": "subid1",
7+
"resourceGroupName": "rg1",
8+
"fleetName": "fleet1",
9+
"fleetMemberName": "member-1",
10+
"properties": {
11+
"properties": {
12+
"group": "staging"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"headers": {
19+
"ETag": "23ujdflewrj3="
20+
},
21+
"body": {
22+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1/members/member-1",
23+
"name": "member-1",
24+
"type": "Microsoft.ContainerService/fleets/members",
25+
"systemData": {
26+
"createdBy": "someUser",
27+
"createdByType": "User",
28+
"createdAt": "2022-03-23T05:40:40.657Z",
29+
"lastModifiedBy": "someOtherUser",
30+
"lastModifiedByType": "User",
31+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
32+
},
33+
"eTag": "23ujdflewrj3=",
34+
"properties": {
35+
"clusterResourceId": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster-1",
36+
"group": "staging",
37+
"provisioningState": "Succeeded"
38+
}
39+
}
40+
},
41+
"202": {
42+
"headers": {
43+
"Retry-After": "20",
44+
"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"
45+
}
46+
}
47+
}
48+
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"operationId": "Fleets_CreateOrUpdate",
3+
"title": "Creates a Fleet resource with a long running operation.",
4+
"parameters": {
5+
"api-version": "2023-06-15-preview",
6+
"subscriptionId": "subid1",
7+
"resourceGroupName": "rg1",
8+
"fleetName": "fleet1",
9+
"resource": {
10+
"tags": {
11+
"tier": "production",
12+
"archv2": ""
13+
},
14+
"location": "East US",
15+
"properties": {
16+
"hubProfile": {
17+
"dnsPrefix": "dnsprefix1"
18+
}
19+
}
20+
}
21+
},
22+
"responses": {
23+
"200": {
24+
"headers": {
25+
"ETag": "23ujdflewrj3=",
26+
"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",
27+
"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"
28+
},
29+
"body": {
30+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet-1",
31+
"name": "fleet-1",
32+
"type": "Microsoft.ContainerService/fleets",
33+
"systemData": {
34+
"createdBy": "someUser",
35+
"createdByType": "User",
36+
"createdAt": "2022-03-23T05:40:40.657Z",
37+
"lastModifiedBy": "someOtherUser",
38+
"lastModifiedByType": "User",
39+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
40+
},
41+
"tags": {
42+
"tier": "production",
43+
"archv2": ""
44+
},
45+
"location": "East US",
46+
"eTag": "23ujdflewrj3=",
47+
"properties": {
48+
"hubProfile": {
49+
"dnsPrefix": "dnsprefix1",
50+
"fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io",
51+
"kubernetesVersion": "1.22.4"
52+
},
53+
"provisioningState": "Updating"
54+
}
55+
}
56+
},
57+
"201": {
58+
"headers": {
59+
"ETag": "23ujdflewrj3=",
60+
"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",
61+
"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"
62+
},
63+
"body": {
64+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/fleets/fleet1",
65+
"name": "fleet1",
66+
"type": "Microsoft.ContainerService/fleets",
67+
"systemData": {
68+
"createdBy": "someUser",
69+
"createdByType": "User",
70+
"createdAt": "2022-03-23T05:40:40.657Z",
71+
"lastModifiedBy": "someOtherUser",
72+
"lastModifiedByType": "User",
73+
"lastModifiedAt": "2022-03-23T05:40:40.657Z"
74+
},
75+
"tags": {
76+
"tier": "production",
77+
"archv2": ""
78+
},
79+
"location": "East US",
80+
"eTag": "23ujdflewrj3=",
81+
"properties": {
82+
"hubProfile": {
83+
"dnsPrefix": "dnsprefix1",
84+
"fqdn": "dnsprefix1-abcd1234.flt.eastus.azmk8s.io",
85+
"kubernetesVersion": "1.22.4"
86+
},
87+
"provisioningState": "Creating"
88+
}
89+
}
90+
}
91+
}
92+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"operationId": "Fleets_Delete",
3+
"title": "Deletes a Fleet resource asynchronously with a long running operation.",
4+
"parameters": {
5+
"api-version": "2023-06-15-preview",
6+
"subscriptionId": "subid1",
7+
"resourceGroupName": "rg1",
8+
"fleetName": "fleet1"
9+
},
10+
"responses": {
11+
"202": {
12+
"headers": {
13+
"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",
14+
"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"
15+
}
16+
},
17+
"200": {},
18+
"204": {}
19+
}
20+
}

0 commit comments

Comments
 (0)