-
Notifications
You must be signed in to change notification settings - Fork 5.6k
[Fleet] API 2023-06-15-preview #25027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d6f2d79
Adds base for updating Microsoft.ContainerService/fleet from version …
zman-ms dc22537
Updates readme
zman-ms 48ca510
Updates API version in new specs and examples
zman-ms 36e9ac6
[Fleet][Dev] API 0615 changes (#25020)
zman-ms 0799bd2
fix tspconfig (#25031)
serbrech a8a3fce
[Fleet][readmes] Dev aks fleet 2023 06 15 preview readmes (#25033)
serbrech cf7c881
fix operationid warnings (#25109)
serbrech ffc2a73
tsp format (#25111)
serbrech 628448f
Fix aks fleet 2023 06 15 preview patchasync from 0615 (#25131)
serbrech 20bbd22
fix member upate operation (#25134)
zman-ms 9f1d104
revert extension removal (#25189)
zman-ms 44f2bc2
generate with type spec v0.47.0 (#25484)
zman-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| node_modules | ||
| output | ||
| package.json | ||
| package-lock.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. |
68 changes: 68 additions & 0 deletions
68
...on/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Create.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
21 changes: 21 additions & 0 deletions
21
...on/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Delete.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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": {} | ||
| } | ||
| } |
36 changes: 36 additions & 0 deletions
36
...ation/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Get.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
37 changes: 37 additions & 0 deletions
37
...ntainerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_ListByFleet.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
| } | ||
| } | ||
| } | ||
| } |
48 changes: 48 additions & 0 deletions
48
...on/containerservice/Fleet.Management/examples/2023-06-15-preview/FleetMembers_Update.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } | ||
| } |
92 changes: 92 additions & 0 deletions
92
.../containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_CreateOrUpdate.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
...fication/containerservice/Fleet.Management/examples/2023-06-15-preview/Fleets_Delete.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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": {} | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.