Class: Google::Apis::CloudbuildV1::RunBuildTriggerRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::RunBuildTriggerRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb
Overview
Specifies a build trigger to run and the source to use.
Instance Attribute Summary collapse
-
#project_id ⇒ String
Required.
-
#source ⇒ Google::Apis::CloudbuildV1::RepoSource
Location of the source in a Google Cloud Source Repository.
-
#trigger_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RunBuildTriggerRequest
constructor
A new instance of RunBuildTriggerRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RunBuildTriggerRequest
Returns a new instance of RunBuildTriggerRequest.
2466 2467 2468 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2466 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project_id ⇒ String
Required. ID of the project.
Corresponds to the JSON property projectId
2454 2455 2456 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2454 def project_id @project_id end |
#source ⇒ Google::Apis::CloudbuildV1::RepoSource
Location of the source in a Google Cloud Source Repository.
Corresponds to the JSON property source
2459 2460 2461 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2459 def source @source end |
#trigger_id ⇒ String
Required. ID of the trigger.
Corresponds to the JSON property triggerId
2464 2465 2466 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2464 def trigger_id @trigger_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2471 2472 2473 2474 2475 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2471 def update!(**args) @project_id = args[:project_id] if args.key?(:project_id) @source = args[:source] if args.key?(:source) @trigger_id = args[:trigger_id] if args.key?(:trigger_id) end |