Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.ContainerRegistry to add…
Browse files Browse the repository at this point in the history
… version preview/2023-06-01-preview (#24426)

* Adds base for updating Microsoft.ContainerRegistry from version preview/2023-01-01-preview to version 2023-06-01-preview

* Updates readme

* Updates API version in new specs and examples

* Added new api version 2023-06-01-preview

* Fixed examples

* Fixed Prettier check.

* Fix lint error.

* fix pretty print

* Try fix avacodo error

* Fix the default tag

* add directive in readme.go.md

---------

Co-authored-by: Alancere <[email protected]>
  • Loading branch information
jikuma and Alancere authored Jul 28, 2023
1 parent 2a4fc9d commit 9025f68
Show file tree
Hide file tree
Showing 88 changed files with 11,903 additions and 35 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "rpm",
"archiveName": "myArchiveName",
"archiveCreateParameters": {
"properties": {
"packageSource": {
"type": "remote",
"url": "string"
},
"publishedVersion": "string",
"repositoryEndpointPrefix": "string"
}
}
},
"responses": {
"200": {
"body": {
"type": "Microsoft.ContainerRegistry/registries/archives",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/rpm/archives/myArchiveName",
"name": "myArchiveName",
"properties": {
"packageSource": {
"type": "remote",
"url": "string"
},
"publishedVersion": "string",
"repositoryEndpointPrefix": "string",
"repositoryEndpoint": "string",
"provisioningState": "Succeeded"
}
}
},
"201": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/rpm/archives/myArchiveName/operationStatuses/archive-00000000-0000-0000-0000-000000000000?api-version=2023-01-01-preview"
},
"body": {
"type": "Microsoft.ContainerRegistry/registries/archives",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/archives/myArchiveName",
"name": "myArchiveName",
"properties": {
"packageSource": {
"type": "remote",
"url": "string"
},
"publishedVersion": "string",
"repositoryEndpointPrefix": "string",
"repositoryEndpoint": "string",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "myPackageType",
"archiveName": "myArchiveName"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/myPackageType/archives/myArchiveName/operationStatuses/archive-00000000-0000-0000-0000-000000000000?api-version=2023-01-01-preview"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "myPackageType",
"archiveName": "myArchiveName"
},
"responses": {
"200": {
"body": {
"type": "Microsoft.ContainerRegistry/registries/packages/archives",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/myPackageType/archives/myArchiveName",
"name": "myArchiveName",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-02-24T00:13:46.836Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-02-24T00:13:46.836Z"
},
"properties": {
"packageSource": {
"type": "string",
"url": "string"
},
"publishedVersion": "string",
"provisioningState": "Creating"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "myPackageType"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "string",
"name": "string",
"type": "string",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-02-24T00:22:47.311Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-02-24T00:22:47.311Z"
},
"properties": {
"packageSource": {
"type": "string",
"url": "string"
},
"publishedVersion": "string",
"provisioningState": "Creating"
}
}
],
"nextLink": "string"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "myPackageType",
"archiveName": "myArchiveName",
"archiveUpdateParameters": {
"properties": {
"publishedVersion": "string"
}
}
},
"responses": {
"200": {
"body": {
"type": "Microsoft.ContainerRegistry/registries/packages/archives",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/myPackageType/archives/myArchiveName",
"name": "myArchiveName",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-06-09T23:41:38.720Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-06-09T23:41:38.720Z"
},
"properties": {
"packageSource": {
"type": "remote",
"url": "string"
},
"publishedVersion": "string",
"repositoryEndpointPrefix": "string",
"repositoryEndpoint": "string",
"provisioningState": "Creating"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "rpm",
"archiveName": "myArchiveName",
"archiveVersionName": "myArchiveVersionName"
},
"responses": {
"200": {
"body": {
"type": "Microsoft.ContainerRegistry/registries/packages/archives/versions",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/rpm/archives/myArchiveName/versions/myArchiveVersionName",
"name": "myArchiveVersionName",
"properties": {
"provisioningState": "Succeeded"
}
}
},
"201": {
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/rpm/archives/myArchiveName/versions/myArchiveVersionName/operationStatuses/archoveversion-00000000-0000-0000-0000-000000000000?api-version=2023-01-01-preview"
},
"body": {
"type": "Microsoft.ContainerRegistry/registries/packages/archives/versions",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/rpm/archives/myArchiveName/versions/myArchiveVersionName",
"name": "myCacheRule",
"properties": {
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "myPackageType",
"archiveName": "myArchiveName",
"archiveVersionName": "myArchiveVersionName"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/myPackageType/archives/myArchiveName/versions/myArchiveVersionName/operationStatuses/archive-00000000-0000-0000-0000-000000000000?api-version=2023-01-01-preview"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "rpm",
"archiveName": "myArchiveName",
"archiveVersionName": "myArchiveVersionName"
},
"responses": {
"200": {
"body": {
"type": "Microsoft.ContainerRegistry/registries/packages/archives",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/packages/rpm/archives/myArchiveName/versions/myArchiveVersionName",
"name": "myArchiveName",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-02-24T00:13:46.836Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-02-24T00:13:46.836Z"
},
"properties": {
"provisioningState": "Creating",
"archiveVersionErrorMessage": "string"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"packageType": "myPackageType",
"archiveName": "myArchiveName"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "string",
"name": "string",
"type": "string",
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2023-02-24T00:22:47.311Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2023-02-24T00:22:47.311Z"
},
"properties": {
"provisioningState": "Creating",
"archiveVersionErrorMessage": "string"
}
}
],
"nextLink": "string"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"cacheRuleName": "myCacheRule",
"cacheRuleCreateParameters": {
"properties": {
"sourceRepository": "docker.io/library/hello-world",
"targetRepository": "cached-docker-hub/hello-world",
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"
}
}
},
"responses": {
"200": {
"body": {
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
"name": "myCacheRule",
"properties": {
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
"sourceRepository": "docker.io/library/hello-world",
"targetRepository": "cached-docker-hub/hello-world",
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
"provisioningState": "Succeeded"
}
}
},
"201": {
"headers": {
"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-06-01-preview"
},
"body": {
"type": "Microsoft.ContainerRegistry/registries/cacheRules",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule",
"name": "myCacheRule",
"properties": {
"credentialSetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet",
"sourceRepository": "docker.io/library/hello-world",
"targetRepository": "cached-docker-hub/hello-world",
"creationDate": "2022-11-07T18:20:33.8374968+00:00",
"provisioningState": "Creating"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2023-06-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"cacheRuleName": "myCacheRule"
},
"responses": {
"200": {},
"202": {
"headers": {
"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-06-01-preview"
}
},
"204": {}
}
}
Loading

0 comments on commit 9025f68

Please sign in to comment.