Class: Google::Apis::RunV1::ListRevisionsResponse

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

Overview

ListRevisionsResponse is a list of Revision resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListRevisionsResponse

Returns a new instance of ListRevisionsResponse.



1846
1847
1848
# File 'lib/google/apis/run_v1/classes.rb', line 1846

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

Instance Attribute Details

#api_versionString

The API version for this call such as "serving.knative.dev/v1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


1823
1824
1825
# File 'lib/google/apis/run_v1/classes.rb', line 1823

def api_version
  @api_version
end

#itemsArray<Google::Apis::RunV1::Revision>

List of Revisions. Corresponds to the JSON property items

Returns:



1828
1829
1830
# File 'lib/google/apis/run_v1/classes.rb', line 1828

def items
  @items
end

#kindString

The kind of this resource, in this case "RevisionList". Corresponds to the JSON property kind

Returns:

  • (String)


1833
1834
1835
# File 'lib/google/apis/run_v1/classes.rb', line 1833

def kind
  @kind
end

#metadataGoogle::Apis::RunV1::ListMeta

Metadata for synthetic resources like List. In Cloud Run, all List Resources Responses will have a ListMeta instead of ObjectMeta. Corresponds to the JSON property metadata



1839
1840
1841
# File 'lib/google/apis/run_v1/classes.rb', line 1839

def 
  @metadata
end

#unreachableArray<String>

Locations that could not be reached. Corresponds to the JSON property unreachable

Returns:

  • (Array<String>)


1844
1845
1846
# File 'lib/google/apis/run_v1/classes.rb', line 1844

def unreachable
  @unreachable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1851
1852
1853
1854
1855
1856
1857
# File 'lib/google/apis/run_v1/classes.rb', line 1851

def update!(**args)
  @api_version = args[:api_version] if args.key?(:api_version)
  @items = args[:items] if args.key?(:items)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @unreachable = args[:unreachable] if args.key?(:unreachable)
end