bland-lamp-16797
10/27/2020, 11:17 AMpulumi_gcp.cloudscheduler.Job("what ever",
description="whatever",
schedule="5 4 * * *",
http_target={
'uri': '<https://cloudbuild.googleapis.com/v1/projects/PROJECT_ID/triggers/TRIGGER_ID:run>',
'body': '{}',
'oauth_token': {
'service_account_email': '<mailto:PROJECT_ID@appspot.gserviceaccount.com|PROJECT_ID@appspot.gserviceaccount.com>',
'scope': '<https://www.googleapis.com/auth/cloud-platform>'
}
}
)
whatever I put in 'body': '{}',
I get
Error creating Job: googleapi: Error 400: Invalid value at 'job.http_target.body' (TYPE_BYTES), Base64 decoding failed for "{}".Should I open the bug for this or I'm totally missing what should be in body ? The body Regex should be
[a-zA-Z\d_-]{1,500}
'body': base64.b64encode('{"branchName": "master"}'.encode('ascii')).decode('ascii'),
echoing-dawn-86996
01/04/2021, 9:13 PMbland-lamp-16797
01/11/2021, 12:46 PM