async function createJob(projectId, locationId, serviceId) {
    // Construct the fully qualified location path.
    const parent = client.locationPath(projectId, locationId);
    // Construct the request body.
    const job = {
        appEngineHttpTarget: {
            appEngineRouting: {
                service: serviceId,
            },
            relativeUri: '/log_payload',
            httpMethod: 'POST',
            body: Buffer.from('Hello World'),
        },
        schedule: '* * * * *',
        timeZone: 'America/Los_Angeles',
    };
    const request = {
        parent: parent,
        job: job,
    };
    // Use the client to send the job creation request.
    const [response] = await client.createJob(request);
    console.log(`Created job: ${response.name}`);
}
Create a job with an App Engine target via the Cloud Scheduler API