Skip to content

Commit 1eeb2fa

Browse files
adewaleoOluwatosin Adewale
authored andcommitted
[acr] update default package tag and PrivateEndpointConnection resource for containerregistry (Azure#8646)
* update default package tag * Update typescript autorest config file. * PrivateEndpointConnection should inherit proxyresource Update spec Co-authored-by: Oluwatosin Adewale <[email protected]>
1 parent 6870b9c commit 1eeb2fa

File tree

3 files changed

+28
-15
lines changed

3 files changed

+28
-15
lines changed

specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,20 +1520,12 @@
15201520
"PrivateEndpointConnection": {
15211521
"description": "An object that represents a private endpoint connection for a container registry.",
15221522
"type": "object",
1523+
"allOf": [
1524+
{
1525+
"$ref": "#/definitions/ProxyResource"
1526+
}
1527+
],
15231528
"properties": {
1524-
"type": {
1525-
"description": "The resource type is private endpoint connection.",
1526-
"type": "string",
1527-
"readOnly": true
1528-
},
1529-
"id": {
1530-
"description": "The resource ID.",
1531-
"type": "string"
1532-
},
1533-
"name": {
1534-
"description": "The name of the resource.",
1535-
"type": "string"
1536-
},
15371529
"properties": {
15381530
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
15391531
"description": "The properties of a private endpoint connection.",
@@ -2897,6 +2889,27 @@
28972889
}
28982890
}
28992891
},
2892+
"ProxyResource": {
2893+
"description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.",
2894+
"properties": {
2895+
"id": {
2896+
"description": "The resource ID.",
2897+
"type": "string",
2898+
"readOnly": true
2899+
},
2900+
"name": {
2901+
"description": "The name of the resource.",
2902+
"type": "string",
2903+
"readOnly": true
2904+
},
2905+
"type": {
2906+
"description": "The type of the resource.",
2907+
"type": "string",
2908+
"readOnly": true
2909+
}
2910+
},
2911+
"x-ms-azure-resource": true
2912+
},
29002913
"Resource": {
29012914
"description": "An Azure resource.",
29022915
"required": [

specification/containerregistry/resource-manager/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ These are the global settings for the ContainerRegistry API.
2626

2727
``` yaml
2828
openapi-type: arm
29-
tag: package-2019-06-preview
29+
tag: package-2019-12-preview
3030
```
3131
3232

specification/containerregistry/resource-manager/readme.typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Please also specify `--typescript-sdks-folder=<path to root folder of your azure
55

66
``` yaml $(typescript)
77
input-file:
8-
- Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json
8+
- Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json
99
- Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json
1010
- Microsoft.ContainerRegistry/preview/2019-05-01-preview/containerregistry_scopemap.json
1111
typescript:

0 commit comments

Comments
 (0)