Reference documentation and code samples for the Google Cloud Run V2 Client class CreateJobRequest.
Request message for creating a Job.
Generated from protobuf message google.cloud.run.v2.CreateJobRequest
Namespace
Google \ Cloud \ Run \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number.
↳ job
↳ job_id
string
Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}.
↳ validate_only
bool
Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
getParent
Required. The location and project in which this Job should be created.
Format: projects/{project}/locations/{location}, where {project} can be project id or number.
string
setParent
Required. The location and project in which this Job should be created.
Format: projects/{project}/locations/{location}, where {project} can be project id or number.
var
string
$this
getJob
Required. The Job instance to create.
hasJob
clearJob
setJob
Required. The Job instance to create.
$this
getJobId
Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}.
string
setJobId
Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}.
var
string
$this
getValidateOnly
Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
bool
setValidateOnly
Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
var
bool
$this
static::build
parent
string
Required. The location and project in which this Job should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Please see JobsClient::locationName() for help formatting this field.
job
jobId
string
Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}.