Skip to content

Commit d5631d7

Browse files
AntonioVTAlancere
andauthored
[Hub Generated] Review request for Microsoft.ContainerRegistry to add version stable/2023-07-01 (#24771)
* Adds base for updating Microsoft.ContainerRegistry from version stable/2022-12-01 to version 2023-07-01 * Updates readme * Updates API version in new specs and examples * Add 2023-07-01 GA changes * Fix readme files * Referece common-types error response definition. Use v5 definitions * readme.go.md add directive * Remove 200 from LRO-Delete in CacheRules/CredentialSets --------- Co-authored-by: Alancere <[email protected]>
1 parent 54a3ae4 commit d5631d7

File tree

64 files changed

+7779
-12
lines changed

Some content is hidden

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

64 files changed

+7779
-12
lines changed

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2023-07-01/containerregistry.json

Lines changed: 5249 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry",
7+
"cacheRuleName": "myCacheRule",
8+
"cacheRuleCreateParameters": {
9+
"properties": {
10+
"sourceRepository": "docker.io/library/hello-world",
11+
"targetRepository": "cached-docker-hub/hello-world",
12+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
20+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
21+
"name": "myCacheRule",
22+
"properties": {
23+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
24+
"sourceRepository": "docker.io/library/hello-world",
25+
"targetRepository": "cached-docker-hub/hello-world",
26+
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
27+
"provisioningState": "Succeeded"
28+
}
29+
}
30+
},
31+
"201": {
32+
"headers": {
33+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule/operationStatuses/cacherules-00000000-0000-0000-0000-000000000000?api-version=2023-07-01"
34+
},
35+
"body": {
36+
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
37+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
38+
"name": "myCacheRule",
39+
"properties": {
40+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
41+
"sourceRepository": "docker.io/library/hello-world",
42+
"targetRepository": "cached-docker-hub/hello-world",
43+
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
44+
"provisioningState": "Creating"
45+
}
46+
}
47+
}
48+
}
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry",
7+
"cacheRuleName": "myCacheRule"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule/operationStatuses/cacherules-00000000-0000-0000-0000-000000000000?api-version=2023-07-01"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry",
7+
"cacheRuleName": "myCacheRule"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
14+
"name": "myCacheRule",
15+
"properties": {
16+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
17+
"sourceRepository": "docker.io/library/hello-world",
18+
"targetRepository": "cached-docker-hub/hello-world",
19+
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
20+
"provisioningState": "Succeeded"
21+
}
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
14+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
15+
"name": "myCacheRule",
16+
"properties": {
17+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
18+
"sourceRepository": "docker.io/library/hello-world",
19+
"targetRepository": "cached-docker-hub/hello-world",
20+
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
21+
"provisioningState": "Succeeded"
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry",
7+
"cacheRuleName": "myCacheRule",
8+
"cacheRuleUpdateParameters": {
9+
"properties": {
10+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
18+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
19+
"name": "myCacheRule",
20+
"properties": {
21+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2",
22+
"sourceRepository": "docker.io/library/hello-world",
23+
"targetRepository": "cached-docker-hub/hello-world",
24+
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
25+
"provisioningState": "Succeeded"
26+
}
27+
}
28+
},
29+
"201": {
30+
"headers": {
31+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule/operationStatuses/cacherules-00000000-0000-0000-0000-000000000000?api-version=2023-07-01"
32+
},
33+
"body": {
34+
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
35+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
36+
"name": "myCacheRule",
37+
"properties": {
38+
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2",
39+
"sourceRepository": "docker.io/library/hello-world",
40+
"targetRepository": "cached-docker-hub/hello-world",
41+
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
42+
"provisioningState": "Updating"
43+
}
44+
}
45+
}
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry",
7+
"credentialSetName": "myCredentialSet",
8+
"credentialSetCreateParameters": {
9+
"properties": {
10+
"loginServer": "docker.io",
11+
"authCredentials": [
12+
{
13+
"name": "Credential1",
14+
"usernameSecretIdentifier": "https://myvault.vault.azure.net/secrets/username",
15+
"passwordSecretIdentifier": "https://myvault.vault.azure.net/secrets/password"
16+
}
17+
]
18+
},
19+
"identity": {
20+
"type": "SystemAssigned"
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"type": "Microsoft.ContainerRegistry/registries/credentialSets",
28+
"identity": {
29+
"principalId": "00000000-0000-0000-0000-000000000000",
30+
"tenantId": "00000000-0000-0000-0000-000000000000",
31+
"type": "SystemAssigned"
32+
},
33+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
34+
"name": "myCredentialSet",
35+
"properties": {
36+
"loginServer": "docker.io",
37+
"authCredentials": [
38+
{
39+
"name": "Credential1",
40+
"usernameSecretIdentifier": "https://myvault.vault.azure.net/secrets/username",
41+
"passwordSecretIdentifier": "https://myvault.vault.azure.net/secrets/password",
42+
"credentialHealth": {
43+
"status": "Healthy"
44+
}
45+
}
46+
],
47+
"creationDate": "2022-11-07T18:20:08.012276+00:00",
48+
"provisioningState": "Succeeded"
49+
}
50+
}
51+
},
52+
"201": {
53+
"headers": {
54+
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet/operationStatuses/credentialsets-00000000-0000-0000-0000-000000000000?api-version=2023-07-01"
55+
},
56+
"body": {
57+
"type": "Microsoft.ContainerRegistry/registries/credentialSets",
58+
"identity": {
59+
"principalId": "00000000-0000-0000-0000-000000000000",
60+
"tenantId": "00000000-0000-0000-0000-000000000000",
61+
"type": "SystemAssigned"
62+
},
63+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
64+
"name": "myCredentialSet",
65+
"properties": {
66+
"loginServer": "docker.io",
67+
"authCredentials": [
68+
{
69+
"name": "Credential1",
70+
"usernameSecretIdentifier": "https://myvault.vault.azure.net/secrets/username",
71+
"passwordSecretIdentifier": "https://myvault.vault.azure.net/secrets/password",
72+
"credentialHealth": {
73+
"status": "Healthy"
74+
}
75+
}
76+
],
77+
"creationDate": "2022-11-07T18:20:08.012276+00:00",
78+
"provisioningState": "Creating"
79+
}
80+
}
81+
}
82+
}
83+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry",
7+
"credentialSetName": "myCredentialSet"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet/operationStatuses/credentialsets-00000000-0000-0000-0000-000000000000?api-version=2023-07-01"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry",
7+
"credentialSetName": "myCredentialSet"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"type": "Microsoft.ContainerRegistry/registries/credentialSets",
13+
"identity": {
14+
"principalId": "00000000-0000-0000-0000-000000000000",
15+
"tenantId": "00000000-0000-0000-0000-000000000000",
16+
"type": "SystemAssigned"
17+
},
18+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
19+
"name": "myCredentialSet",
20+
"properties": {
21+
"loginServer": "docker.io",
22+
"authCredentials": [
23+
{
24+
"name": "Credential1",
25+
"usernameSecretIdentifier": "https://myvault.vault.azure.net/secrets/username",
26+
"passwordSecretIdentifier": "https://myvault.vault.azure.net/secrets/password",
27+
"credentialHealth": {
28+
"status": "Healthy"
29+
}
30+
}
31+
],
32+
"creationDate": "2022-11-07T18:20:08.012276+00:00",
33+
"provisioningState": "Succeeded"
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"resourceGroupName": "myResourceGroup",
6+
"registryName": "myRegistry"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"type": "Microsoft.ContainerRegistry/registries/credentialSets",
14+
"identity": {
15+
"principalId": "00000000-0000-0000-0000-000000000000",
16+
"tenantId": "00000000-0000-0000-0000-000000000000",
17+
"type": "SystemAssigned"
18+
},
19+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
20+
"name": "myCredentialSet",
21+
"properties": {
22+
"loginServer": "docker.io",
23+
"authCredentials": [
24+
{
25+
"name": "Credential1",
26+
"usernameSecretIdentifier": "https://myvault.vault.azure.net/secrets/username",
27+
"passwordSecretIdentifier": "https://myvault.vault.azure.net/secrets/password",
28+
"credentialHealth": {
29+
"status": "Healthy"
30+
}
31+
}
32+
],
33+
"creationDate": "2022-11-07T18:20:08.012276+00:00",
34+
"provisioningState": "Succeeded"
35+
}
36+
}
37+
]
38+
}
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)