Cloud Scheduler V1 Client - Class CreateJobRequest (2.0.5)

Reference documentation and code samples for the Cloud Scheduler V1 Client class CreateJobRequest.

Request message for CreateJob .

Generated from protobuf message google.cloud.scheduler.v1.CreateJobRequest

Namespace

Google \ Cloud \ Scheduler \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ parent
string

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID .

↳ job
Job

Required. The job to add. The user can optionally specify a name for the job in name . name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned ( name ) in the response.

getParent

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID .

Returns
Type
Description
string

setParent

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getJob

Required. The job to add. The user can optionally specify a name for the job in name .

name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned ( name ) in the response.

Returns
Type
Description
Job |null

hasJob

clearJob

setJob

Required. The job to add. The user can optionally specify a name for the job in name .

name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned ( name ) in the response.

Parameter
Name
Description
var
Job
Returns
Type
Description
$this

static::build

Parameters
Name
Description
parent
string

Required. The location name. For example: projects/PROJECT_ID/locations/LOCATION_ID . Please see CloudSchedulerClient::locationName() for help formatting this field.

job
Job

Required. The job to add. The user can optionally specify a name for the job in name . name cannot be the same as an existing job. If a name is not specified then the system will generate a random unique name that will be returned ( name ) in the response.

Returns
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: