Skip to content

Commit bb45524

Browse files
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]>
1 parent 9b0351b commit bb45524

20 files changed

+2165
-0
lines changed

specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json

Lines changed: 1201 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-31-preview",
4+
"subscriptionId": "11111111-2222-3333-4444-555555555555",
5+
"resourceGroupName": "testresourcegroup",
6+
"resourceName": "customLocation01",
7+
"parameters": {
8+
"location": "West US",
9+
"properties": {
10+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
11+
"namespace": "namespace01",
12+
"displayName": "customLocationLocation01",
13+
"clusterExtensionIds": [
14+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kubernetes/connectedCluster/someCluster/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
15+
],
16+
"authentication": {
17+
"type": "KubeConfig",
18+
"value": "<base64 KubeConfig>"
19+
}
20+
},
21+
"identity": {
22+
"type": "SystemAssigned"
23+
}
24+
}
25+
},
26+
"responses": {
27+
"200": {
28+
"body": {
29+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01",
30+
"name": "customLocation01",
31+
"type": "Microsoft.ExtendedLocation/customLocations",
32+
"location": "West US",
33+
"properties": {
34+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
35+
"namespace": "namespace01",
36+
"displayName": "customLocationLocation01",
37+
"provisioningState": "Succeeded",
38+
"clusterExtensionIds": [
39+
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
40+
],
41+
"authentication": {
42+
"type": "KubeConfig"
43+
}
44+
},
45+
"identity": {
46+
"type": "SystemAssigned",
47+
"principalId": "11111111-1111-1111-1111-111111111111",
48+
"tenantId": "111111-1111-1111-1111-111111111111"
49+
},
50+
"systemData": {
51+
"createdBy": "string",
52+
"createdByType": "Application",
53+
"createdAt": "2020-04-24T18:53:29.0928001Z",
54+
"lastModifiedBy": "string",
55+
"lastModifiedByType": "Application",
56+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
57+
}
58+
}
59+
},
60+
"201": {
61+
"body": {
62+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01",
63+
"name": "customLocation01",
64+
"type": "Microsoft.ExtendedLocation/customLocations",
65+
"location": "West US",
66+
"properties": {
67+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
68+
"namespace": "namespace01",
69+
"displayName": "customLocationLocation01",
70+
"provisioningState": "Succeeded",
71+
"clusterExtensionIds": [
72+
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
73+
],
74+
"authentication": {
75+
"type": "KubeConfig"
76+
}
77+
},
78+
"systemData": {
79+
"createdBy": "string",
80+
"createdByType": "Application",
81+
"createdAt": "2020-04-24T18:53:29.0928001Z",
82+
"lastModifiedBy": "string",
83+
"lastModifiedByType": "Application",
84+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
85+
}
86+
}
87+
}
88+
}
89+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-31-preview",
4+
"subscriptionId": "11111111-2222-3333-4444-555555555555",
5+
"resourceGroupName": "testresourcegroup",
6+
"resourceName": "customLocation01"
7+
},
8+
"responses": {
9+
"202": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-31-preview",
4+
"subscriptionId": "11111111-2222-3333-4444-555555555555",
5+
"resourceGroupName": "testresourcegroup",
6+
"resourceName": "customLocation01",
7+
"labels": {
8+
"key1": "value1",
9+
"key2": "value2"
10+
}
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"targetResourceGroup": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/target-resource-group/"
16+
}
17+
},
18+
"204": {}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-31-preview",
4+
"subscriptionId": "11111111-2222-3333-4444-555555555555",
5+
"resourceGroupName": "testresourcegroup",
6+
"resourceName": "customLocation01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01",
12+
"name": "customLocation01",
13+
"type": "Microsoft.ExtendedLocation/customLocations",
14+
"location": "West US",
15+
"properties": {
16+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
17+
"namespace": "namespace01",
18+
"displayName": "customLocationLocation01",
19+
"provisioningState": "Succeeded",
20+
"clusterExtensionIds": [
21+
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
22+
],
23+
"authentication": {
24+
"type": "KubeConfig"
25+
}
26+
},
27+
"identity": {
28+
"type": "SystemAssigned",
29+
"principalId": "11111111-1111-1111-1111-111111111111",
30+
"tenantId": "111111-1111-1111-1111-111111111111"
31+
},
32+
"systemData": {
33+
"createdBy": "string",
34+
"createdByType": "Application",
35+
"createdAt": "2020-04-24T18:53:29.0928001Z",
36+
"lastModifiedBy": "string",
37+
"lastModifiedByType": "Application",
38+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
39+
}
40+
}
41+
}
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-31-preview",
4+
"subscriptionId": "11111111-2222-3333-4444-555555555555",
5+
"resourceGroupName": "testresourcegroup"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/",
13+
"name": "customLocation01",
14+
"type": "Microsoft.ExtendedLocation/customLocations",
15+
"location": "West US",
16+
"properties": {
17+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
18+
"namespace": "namespace01",
19+
"displayName": "customLocationLocation01",
20+
"provisioningState": "Succeeded",
21+
"clusterExtensionIds": [
22+
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
23+
],
24+
"authentication": {
25+
"type": "KubeConfig"
26+
}
27+
},
28+
"identity": {
29+
"type": "SystemAssigned",
30+
"principalId": "11111111-1111-1111-1111-111111111111",
31+
"tenantId": "111111-1111-1111-1111-111111111111"
32+
},
33+
"systemData": {
34+
"createdBy": "string",
35+
"createdByType": "Application",
36+
"createdAt": "2020-04-24T18:53:29.0928001Z",
37+
"lastModifiedBy": "string",
38+
"lastModifiedByType": "Application",
39+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
40+
}
41+
},
42+
{
43+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/",
44+
"name": "customLocation02",
45+
"type": "Microsoft.ExtendedLocation/customLocations",
46+
"location": "West US",
47+
"properties": {
48+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02",
49+
"namespace": "namespace02",
50+
"displayName": "customLocationLocation02",
51+
"provisioningState": "Succeeded",
52+
"clusterExtensionIds": [
53+
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
54+
],
55+
"authentication": {
56+
"type": "KubeConfig"
57+
}
58+
},
59+
"identity": {
60+
"type": "SystemAssigned",
61+
"principalId": "11111111-1111-1111-1111-111111111111",
62+
"tenantId": "111111-1111-1111-1111-111111111111"
63+
},
64+
"systemData": {
65+
"createdBy": "string",
66+
"createdByType": "Application",
67+
"createdAt": "2020-04-24T18:53:29.0928001Z",
68+
"lastModifiedBy": "string",
69+
"lastModifiedByType": "Application",
70+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
71+
}
72+
}
73+
]
74+
}
75+
}
76+
}
77+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-31-preview",
4+
"subscriptionId": "11111111-2222-3333-4444-555555555555"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/",
12+
"name": "customLocation01",
13+
"type": "Microsoft.ExtendedLocation/customLocations",
14+
"location": "West US",
15+
"properties": {
16+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01",
17+
"namespace": "namespace01",
18+
"displayName": "customLocationLocation01",
19+
"provisioningState": "Succeeded",
20+
"clusterExtensionIds": [
21+
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster01/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
22+
],
23+
"authentication": {
24+
"type": "KubeConfig"
25+
}
26+
},
27+
"identity": {
28+
"type": "SystemAssigned",
29+
"principalId": "11111111-1111-1111-1111-111111111111",
30+
"tenantId": "111111-1111-1111-1111-111111111111"
31+
},
32+
"systemData": {
33+
"createdBy": "string",
34+
"createdByType": "Application",
35+
"createdAt": "2020-04-24T18:53:29.0928001Z",
36+
"lastModifiedBy": "string",
37+
"lastModifiedByType": "Application",
38+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
39+
}
40+
},
41+
{
42+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ExtendedLocation/",
43+
"name": "customLocation02",
44+
"type": "Microsoft.ExtendedLocation/customLocations",
45+
"location": "West US",
46+
"properties": {
47+
"hostResourceId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02",
48+
"namespace": "namespace02",
49+
"displayName": "customLocationLocation02",
50+
"provisioningState": "Succeeded",
51+
"clusterExtensionIds": [
52+
"/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testresourcegroup/providers/Microsoft.ContainerService/managedClusters/cluster02/Microsoft.KubernetesConfiguration/clusterExtensions/fooExtension"
53+
],
54+
"authentication": {
55+
"type": "KubeConfig"
56+
}
57+
},
58+
"identity": {
59+
"type": "SystemAssigned",
60+
"principalId": "11111111-1111-1111-1111-111111111111",
61+
"tenantId": "111111-1111-1111-1111-111111111111"
62+
},
63+
"systemData": {
64+
"createdBy": "string",
65+
"createdByType": "Application",
66+
"createdAt": "2020-04-24T18:53:29.0928001Z",
67+
"lastModifiedBy": "string",
68+
"lastModifiedByType": "Application",
69+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
70+
}
71+
}
72+
]
73+
}
74+
}
75+
}
76+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-08-31-preview",
4+
"subscriptionId": "11111111-2222-3333-4444-555555555555",
5+
"resourceGroupName": "testresourcegroup",
6+
"resourceName": "customLocation01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01/enabledResourceTypes/d016ecf26dae90594806aca3c1a6326c668357037f68103587edf2e657824737",
14+
"name": "d016ecf26dae90594806aca3c1a6326c668357037f68103587edf2e657824737",
15+
"type": "Microsoft.ExtendedLocation/customLocations/enabledResourceTypes",
16+
"properties": {
17+
"clusterExtensionId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/cldfe2econnectedcluster/providers/Microsoft.KubernetesConfiguration/extensions/vmware-extension",
18+
"extensionType": "arc-vmware",
19+
"typesMetadata": [
20+
{
21+
"apiVersion": "2020-01-01-preview",
22+
"resourceType": "virtualMachines",
23+
"resourceProviderNamespace": "Microsoft.VMware"
24+
},
25+
{
26+
"apiVersion": "2020-01-22-preview",
27+
"resourceType": "virtualmachines",
28+
"resourceProviderNamespace": "Microsoft.VMware"
29+
}
30+
]
31+
},
32+
"systemData": {
33+
"createdBy": "string",
34+
"createdByType": "Application",
35+
"createdAt": "2020-04-24T18:53:29.0928001Z",
36+
"lastModifiedBy": "string",
37+
"lastModifiedByType": "Application",
38+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
39+
}
40+
},
41+
{
42+
"id": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.ExtendedLocation/customLocations/customLocation01/enabledResourceTypes/266e9d31e5be6be1e919574e25780d5783586d502f0b2cc422e0a228a34e00a6",
43+
"name": "266e9d31e5be6be1e919574e25780d5783586d502f0b2cc422e0a228a34e00a6",
44+
"type": "Microsoft.ExtendedLocation/customLocations/enabledResourceTypes",
45+
"properties": {
46+
"clusterExtensionId": "/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/cldfe2econnectedcluster/providers/Microsoft.KubernetesConfiguration/extensions/cassandra-extension",
47+
"extensionType": "cassandradatacentersoperator",
48+
"typesMetadata": [
49+
{
50+
"apiVersion": "2020-01-01-preview",
51+
"resourceType": "cassandraDataCenters",
52+
"resourceProviderNamespace": "Microsoft.Cassandra"
53+
},
54+
{
55+
"apiVersion": "2020-01-22-preview",
56+
"resourceType": "cassandrabackups",
57+
"resourceProviderNamespace": "Microsoft.Cassandra"
58+
}
59+
]
60+
},
61+
"systemData": {
62+
"createdBy": "string",
63+
"createdByType": "Application",
64+
"createdAt": "2020-04-24T18:53:29.0928001Z",
65+
"lastModifiedBy": "string",
66+
"lastModifiedByType": "Application",
67+
"lastModifiedAt": "2020-04-24T18:53:29.0928001Z"
68+
}
69+
}
70+
]
71+
}
72+
}
73+
}
74+
}

0 commit comments

Comments
 (0)