Class: Google::Apis::CloudbuildV1::RunBuildTriggerRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunBuildTriggerRequest

Returns a new instance of RunBuildTriggerRequest.



3842
3843
3844
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3842

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

Instance Attribute Details

#project_idString

Required. ID of the project. Corresponds to the JSON property projectId

Returns:

  • (String)


3830
3831
3832
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3830

def project_id
  @project_id
end

#sourceGoogle::Apis::CloudbuildV1::RepoSource

Location of the source in a Google Cloud Source Repository. Corresponds to the JSON property source



3835
3836
3837
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3835

def source
  @source
end

#trigger_idString

Required. ID of the trigger. Corresponds to the JSON property triggerId

Returns:

  • (String)


3840
3841
3842
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3840

def trigger_id
  @trigger_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3847
3848
3849
3850
3851
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 3847

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