Class: Google::Apis::CloudbuildV1::ListBuildsResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb

Overview

Response including listed builds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListBuildsResponse

Returns a new instance of ListBuildsResponse.


910
911
912
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 910

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

Instance Attribute Details

#buildsArray<Google::Apis::CloudbuildV1::Build>

Builds will be sorted by create_time, descending. Corresponds to the JSON property builds


903
904
905
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 903

def builds
  @builds
end

#next_page_tokenString

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

Returns:

  • (String)

908
909
910
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 908

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


915
916
917
918
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 915

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