Skip to content

Commit

Permalink
Resolved merge conflicts, updated the model for the token to take cer…
Browse files Browse the repository at this point in the history
…tificates
  • Loading branch information
mnltejaswini committed May 6, 2019
1 parent dfd0249 commit 3256b5c
Show file tree
Hide file tree
Showing 15 changed files with 386 additions and 198 deletions.

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"passwords": [
{
"expiry": "2020-12-31T15:59:59.0707808Z",
"name": "password",
"name": "password1",
"value": "00000000000000000000000000000000"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"properties": {
"description": "Developer Scopes",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/contentWrite",
"repositories/myrepository/delete"
]
}
Expand All @@ -25,7 +25,7 @@
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/contentWrite",
"repositories/myrepository/delete"
],
"provisioningState": "Succeeded"
Expand All @@ -41,7 +41,7 @@
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/contentWrite",
"repositories/myrepository/delete"
],
"provisioningState": "Succeeded"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/contentWrite",
"repositories/myrepository/delete"
],
"provisioningState": "Succeeded"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/contentWrite",
"repositories/myrepository/delete"
],
"provisioningState": "Succeeded"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"properties": {
"description": "Developer Scopes",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/pull"
"repositories/myrepository/contentWrite",
"repositories/myrepository/contentRead"
]
}
}
Expand All @@ -25,8 +25,8 @@
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/pull"
"repositories/myrepository/contentWrite",
"repositories/myrepository/contentRead"
],
"provisioningState": "Succeeded"
}
Expand All @@ -41,8 +41,8 @@
"creationDate": "2017-03-01T23:14:37.0707808Z",
"type": "IsUserDefined",
"actions": [
"repositories/myrepository/push",
"repositories/myrepository/pull"
"repositories/myrepository/contentWrite",
"repositories/myrepository/contentRead"
],
"provisioningState": "Succeeded"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"tokenName": "myToken",
"tokenCreateParameters": {
"properties": {
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"status": "disabled"
}
}
},
Expand All @@ -20,7 +21,8 @@
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": "disabled"
}
}
},
Expand All @@ -32,7 +34,8 @@
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": "disabled"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2019-05-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"registryName": "myRegistry",
"tokenName": "myToken",
"tokenCreateParameters": {
"properties": {
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"credentials": {
"certificates": [
{
"name": "certificate1",
"encodedPEMCertificate": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1WTI5dE1JSUJJakFOCkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTBSYjdJcHpxMmR4emhhbVpyS1ZDakMzeTQyYlYKUnNIY2pCUTFuSDBHZ1puUDhXeDZDSE1mWThybkVJQzRLeVRRYkJXVzhnNXlmc3NSQ0ZXbFpxYjR6SkRXS0pmTgpGSmNMUm9LNnhwTktZYVZVTkVlT25IdUxHYTM0ZlA0VjBFRjZybzdvbkRLME5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NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
}
]
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
"name": "myToken",
"type": "Microsoft.ContainerRegistry/registries/tokens",
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded",
"status": "enabled",
"credentials": {
"certificates": [
{
"name": "certificate1",
"thumbprint":"feeb79a888bf1415f8e17c4965a2a5bb5c8a2ff7",
"expiry":"2020-12-04T15:32:48.0707808Z"
}
]
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken",
"name": "myToken",
"type": "Microsoft.ContainerRegistry/registries/tokens",
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded",
"status": "enabled",
"credentials": {
"certificates": [
{
"name": "certificate1",
"thumbprint":"feeb79a888bf1415f8e17c4965a2a5bb5c8a2ff7",
"expiry":"2020-12-04T15:32:48.0707808Z"
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": "enabled"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": "enabled"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": "enabled"
}
}
},
Expand All @@ -32,7 +33,8 @@
"properties": {
"creationDate": "2017-03-01T23:14:37.0707808Z",
"scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap",
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"status": "enabled"
}
}
}
Expand Down
Loading

0 comments on commit 3256b5c

Please sign in to comment.