Skip to content

Commit

Permalink
[ACR] Support MSI in Task [NEW API VERSION] (#5561)
Browse files Browse the repository at this point in the history
* examples for new sdk

* update examples

* update examples

* add identity to core examples

* Add opaque example

* add references to examples

* spelling fix

* update tag in all readmes

* update jave readme

* fix RunRequest examples

* Delete extra file.

* Delete extra file.

* Fix examples from previous API version

* fix example errors

* FileTaskRunRequest fix

* Add RunErrorMessage from previous version

* update api-version in examples

* old version: 2018-09-01

* add new API version: 2019-04-01

* Support Scheduler Trigger

* fix build errors

* rename to TimerTrigger

* nit rename comment
  • Loading branch information
jaysterp authored and sergey-shandar committed Apr 26, 2019
1 parent 0a26f9f commit a35a6dc
Show file tree
Hide file tree
Showing 34 changed files with 5,573 additions and 262 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@
"x-ms-examples": {
"Registries_ScheduleRun": {
"$ref": "./examples/RegistriesScheduleRun.json"
},
"Registries_ScheduleRun_EncodedTaskRun": {
"$ref": "./examples/RegistriesScheduleRun_EncodedTaskRun.json"
},
"Registries_ScheduleRun_FileTaskRun": {
"$ref": "./examples/RegistriesScheduleRun_FileTaskRun.json"
},
"Registries_ScheduleRun_Task": {
"$ref": "./examples/RegistriesScheduleRun_Task.json"
},
"Registries_ScheduleRun_Task_WithCustomCredentials": {
"$ref": "./examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json"
},
"Registries_ScheduleRun_WithCustomCredentials": {
"$ref": "./examples/RegistriesScheduleRun_WithCustomCredentials.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"cpu": 2
},
"encodedTaskContent": "c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ==",
"encodedValuesContent":"ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ=="
"encodedValuesContent": "ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ=="
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"registryName": "myRegistry",
"api-version": "2018-09-01",
"runRequest": {
"type": "TaskRunRequest",
"type": "FileTaskRunRequest",
"values": [
{
"name": "mytestargument",
Expand All @@ -18,24 +18,27 @@
"isSecret": true
}
],
"taskName": "myTask",
"platform": {
"os": "Linux"
},
"taskFilePath": "acb.yaml",
"credentials": {
"sourceRegistry": {
"loginMode": "Default"
"loginMode": "Default"
},
"customRegistries": {
"myregistry.azurecr.io": {
"userName": {
"type": "Opaque",
"value": "reg1"
},
"password": {
"type": "Opaque",
"value": "***"
}
"myregistry.azurecr.io": {
"userName": {
"type": "Opaque",
"value": "reg1"
},
"password": {
"type": "Opaque",
"value": "***"
}
}
}
}
}
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@
"customRegistries": {
"myregistry.azurecr.io": {
"userName": {
"Type": "Opaque",
"Value": "reg1"
"type": "Opaque",
"value": "reg1"
},
"password": {
"Type": "Opaque",
"Value": "***"
"type": "Opaque",
"value": "***"
}
},
"myregistry2.azurecr.io": {
"userName": {
"Type": "Opaque",
"Value": "reg2"
"type": "Opaque",
"value": "reg2"
},
"password": {
"Type": "Opaque",
"Value": "***"
"type": "Opaque",
"value": "***"
}
}
}
Expand Down
Loading

0 comments on commit a35a6dc

Please sign in to comment.