Class: Google::Apis::CloudbuildV1::ListBuildTriggersResponse

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

Response containing existing BuildTriggers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListBuildTriggersResponse

Returns a new instance of ListBuildTriggersResponse.



1038
1039
1040
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1038

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

Instance Attribute Details

#next_page_tokenString

Token to receive the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1031

def next_page_token
  @next_page_token
end

#triggersArray<Google::Apis::CloudbuildV1::BuildTrigger>

BuildTriggers for the project, sorted by create_time descending. Corresponds to the JSON property triggers



1036
1037
1038
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1036

def triggers
  @triggers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1043
1044
1045
1046
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1043

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