Skip to content

Commit

Permalink
[acr] update default package tag and PrivateEndpointConnection resour…
Browse files Browse the repository at this point in the history
…ce for containerregistry (Azure#8646)

* update default package tag

* Update typescript autorest config file.

* PrivateEndpointConnection should inherit proxyresource

Update spec

Co-authored-by: Oluwatosin Adewale <oluwatosin.adewale@microsoft.com>
  • Loading branch information
2 people authored and 00Kai0 committed Oct 12, 2020
1 parent 6870b9c commit 1eeb2fa
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1520,20 +1520,12 @@
"PrivateEndpointConnection": {
"description": "An object that represents a private endpoint connection for a container registry.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
"type": {
"description": "The resource type is private endpoint connection.",
"type": "string",
"readOnly": true
},
"id": {
"description": "The resource ID.",
"type": "string"
},
"name": {
"description": "The name of the resource.",
"type": "string"
},
"properties": {
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
"description": "The properties of a private endpoint connection.",
Expand Down Expand Up @@ -2897,6 +2889,27 @@
}
}
},
"ProxyResource": {
"description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags.",
"properties": {
"id": {
"description": "The resource ID.",
"type": "string",
"readOnly": true
},
"name": {
"description": "The name of the resource.",
"type": "string",
"readOnly": true
},
"type": {
"description": "The type of the resource.",
"type": "string",
"readOnly": true
}
},
"x-ms-azure-resource": true
},
"Resource": {
"description": "An Azure resource.",
"required": [
Expand Down
2 changes: 1 addition & 1 deletion specification/containerregistry/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ These are the global settings for the ContainerRegistry API.

``` yaml
openapi-type: arm
tag: package-2019-06-preview
tag: package-2019-12-preview
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Please also specify `--typescript-sdks-folder=<path to root folder of your azure

``` yaml $(typescript)
input-file:
- Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json
- Microsoft.ContainerRegistry/preview/2019-12-01-preview/containerregistry.json
- Microsoft.ContainerRegistry/preview/2019-06-01-preview/containerregistry_build.json
- Microsoft.ContainerRegistry/preview/2019-05-01-preview/containerregistry_scopemap.json
typescript:
Expand Down

0 comments on commit 1eeb2fa

Please sign in to comment.