Class: Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb

Overview

Request message to create a new Execution of a Job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2RunJobRequest

Returns a new instance of GoogleCloudRunV2RunJobRequest.



1271
1272
1273
# File 'lib/google/apis/run_v2/classes.rb', line 1271

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#etagString

A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates. Corresponds to the JSON property etag

Returns:

  • (String)


1262
1263
1264
# File 'lib/google/apis/run_v2/classes.rb', line 1262

def etag
  @etag
end

#validate_onlyBoolean Also known as: validate_only?

Indicates that the request should be validated without actually deleting any resources. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


1268
1269
1270
# File 'lib/google/apis/run_v2/classes.rb', line 1268

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1276
1277
1278
1279
# File 'lib/google/apis/run_v2/classes.rb', line 1276

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
end