forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit for new version and new child resource type extended l… (
Azure#17681) * Initial commit for new version and new child resource type extended location New version: 2021-08-31-preview New child resource type: resource sync rule * Fix lint check errors and cross version breaking changes validation issues * Try to fix Cross-Version Breaking Changes * Revert changes to previous stable version * Remove "x-ms-identifiers" definition which will cause golang sdk generation error * Address review comments, revert unnecessary changes * Try fix breaking error * Revert changes which fix lint error but will cause cross version breaking changes * Fix lintdiff validation issue and also add back two updates for this version only * Update descriptions of properties of resource sync rules. * Update description of the resource sync rules API * Update description of resource sync rules selector property * Update description of matchExpressions * Update description of targetResourceGroup * Fix a required LintDiff check Adding "x-ms-identifiers": [] to matchExpressionsList * Add title to readme.typescript.md * Update specification/extendedlocation/resource-manager/readme.typescript.md * Revert cross version breacking changes Co-authored-by: Wei Dong <[email protected]>
- Loading branch information
1 parent
7d6925a
commit 87c139d
Showing
20 changed files
with
2,165 additions
and
0 deletions.
There are no files selected for viewing
1,201 changes: 1,201 additions & 0 deletions
1,201
...source-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json
Large diffs are not rendered by default.
Oops, something went wrong.
89 changes: 89 additions & 0 deletions
89
...ft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsCreate_Update.json
This file contains 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,89 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-31-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "testresourcegroup", | ||
"resourceName": "customLocation01", | ||
"parameters": { | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01", | ||
"namespace": "namespace01", | ||
"displayName": "customLocationLocation01", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig", | ||
"value": "<base64 KubeConfig>" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01", | ||
"name": "customLocation01", | ||
"type": "Microsoft.ExtendedLocation/customLocations", | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01", | ||
"namespace": "namespace01", | ||
"displayName": "customLocationLocation01", | ||
"provisioningState": "Succeeded", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"principalId": "11111111-1111-1111-1111-111111111111", | ||
"tenantId": "111111-1111-1111-1111-111111111111" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01", | ||
"name": "customLocation01", | ||
"type": "Microsoft.ExtendedLocation/customLocations", | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01", | ||
"namespace": "namespace01", | ||
"displayName": "customLocationLocation01", | ||
"provisioningState": "Succeeded", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig" | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...Microsoft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsDelete.json
This file contains 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,12 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-31-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "testresourcegroup", | ||
"resourceName": "customLocation01" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...dLocation/preview/2021-08-31-preview/examples/CustomLocationsFindTargetResourceGroup.json
This file contains 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 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-31-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "testresourcegroup", | ||
"resourceName": "customLocation01", | ||
"labels": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"targetResourceGroup": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/target-resource-group/" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
...er/Microsoft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsGet.json
This file contains 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,43 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-31-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "testresourcegroup", | ||
"resourceName": "customLocation01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01", | ||
"name": "customLocation01", | ||
"type": "Microsoft.ExtendedLocation/customLocations", | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01", | ||
"namespace": "namespace01", | ||
"displayName": "customLocationLocation01", | ||
"provisioningState": "Succeeded", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"principalId": "11111111-1111-1111-1111-111111111111", | ||
"tenantId": "111111-1111-1111-1111-111111111111" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
...endedLocation/preview/2021-08-31-preview/examples/CustomLocationsListByResourceGroup.json
This file contains 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,77 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-31-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "testresourcegroup" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/", | ||
"name": "customLocation01", | ||
"type": "Microsoft.ExtendedLocation/customLocations", | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01", | ||
"namespace": "namespace01", | ||
"displayName": "customLocationLocation01", | ||
"provisioningState": "Succeeded", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"principalId": "11111111-1111-1111-1111-111111111111", | ||
"tenantId": "111111-1111-1111-1111-111111111111" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/", | ||
"name": "customLocation02", | ||
"type": "Microsoft.ExtendedLocation/customLocations", | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02", | ||
"namespace": "namespace02", | ||
"displayName": "customLocationLocation02", | ||
"provisioningState": "Succeeded", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"principalId": "11111111-1111-1111-1111-111111111111", | ||
"tenantId": "111111-1111-1111-1111-111111111111" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
76 changes: 76 additions & 0 deletions
76
...tendedLocation/preview/2021-08-31-preview/examples/CustomLocationsListBySubscription.json
This file contains 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,76 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-31-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/", | ||
"name": "customLocation01", | ||
"type": "Microsoft.ExtendedLocation/customLocations", | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01", | ||
"namespace": "namespace01", | ||
"displayName": "customLocationLocation01", | ||
"provisioningState": "Succeeded", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"principalId": "11111111-1111-1111-1111-111111111111", | ||
"tenantId": "111111-1111-1111-1111-111111111111" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/", | ||
"name": "customLocation02", | ||
"type": "Microsoft.ExtendedLocation/customLocations", | ||
"location": "West US", | ||
"properties": { | ||
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02", | ||
"namespace": "namespace02", | ||
"displayName": "customLocationLocation02", | ||
"provisioningState": "Succeeded", | ||
"clusterExtensionIds": [ | ||
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension" | ||
], | ||
"authentication": { | ||
"type": "KubeConfig" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned", | ||
"principalId": "11111111-1111-1111-1111-111111111111", | ||
"tenantId": "111111-1111-1111-1111-111111111111" | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
...Location/preview/2021-08-31-preview/examples/CustomLocationsListEnabledResourceTypes.json
This file contains 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,74 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-08-31-preview", | ||
"subscriptionId": "11111111-2222-3333-4444-555555555555", | ||
"resourceGroupName": "testresourcegroup", | ||
"resourceName": "customLocation01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01/enabledResourceTypes/d016ecf26dae90594806aca3c1a6326c668357037f68103587edf2e657824737", | ||
"name": "d016ecf26dae90594806aca3c1a6326c668357037f68103587edf2e657824737", | ||
"type": "Microsoft.ExtendedLocation/customLocations/enabledResourceTypes", | ||
"properties": { | ||
"clusterExtensionId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/cldfe2econnectedcluster/providers/Microsoft.KubernetesConfiguration/extensions/vmware-extension", | ||
"extensionType": "arc-vmware", | ||
"typesMetadata": [ | ||
{ | ||
"apiVersion": "2020-01-01-preview", | ||
"resourceType": "virtualMachines", | ||
"resourceProviderNamespace": "Microsoft.VMware" | ||
}, | ||
{ | ||
"apiVersion": "2020-01-22-preview", | ||
"resourceType": "virtualmachines", | ||
"resourceProviderNamespace": "Microsoft.VMware" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01/enabledResourceTypes/266e9d31e5be6be1e919574e25780d5783586d502f0b2cc422e0a228a34e00a6", | ||
"name": "266e9d31e5be6be1e919574e25780d5783586d502f0b2cc422e0a228a34e00a6", | ||
"type": "Microsoft.ExtendedLocation/customLocations/enabledResourceTypes", | ||
"properties": { | ||
"clusterExtensionId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/cldfe2econnectedcluster/providers/Microsoft.KubernetesConfiguration/extensions/cassandra-extension", | ||
"extensionType": "cassandradatacentersoperator", | ||
"typesMetadata": [ | ||
{ | ||
"apiVersion": "2020-01-01-preview", | ||
"resourceType": "cassandraDataCenters", | ||
"resourceProviderNamespace": "Microsoft.Cassandra" | ||
}, | ||
{ | ||
"apiVersion": "2020-01-22-preview", | ||
"resourceType": "cassandrabackups", | ||
"resourceProviderNamespace": "Microsoft.Cassandra" | ||
} | ||
] | ||
}, | ||
"systemData": { | ||
"createdBy": "string", | ||
"createdByType": "Application", | ||
"createdAt": "2020-04-24T18:53:29.0928001Z", | ||
"lastModifiedBy": "string", | ||
"lastModifiedByType": "Application", | ||
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.