Class: Google::Apis::RunV1alpha1::ListJobsResponse

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

Overview

ListJobsResponse is a list of Jobs resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListJobsResponse

Returns a new instance of ListJobsResponse.



1220
1221
1222
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1220

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

Instance Attribute Details

#api_versionString

The API version for this call such as "run.googleapis.com/v1alpha1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


1185
1186
1187
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1185

def api_version
  @api_version
end

#itemsArray<Google::Apis::RunV1alpha1::Job>

List of Jobs. Corresponds to the JSON property items

Returns:



1190
1191
1192
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1190

def items
  @items
end

#kindString

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

Returns:

  • (String)


1195
1196
1197
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1195

def kind
  @kind
end

#metadataGoogle::Apis::RunV1alpha1::ListMeta

ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of ObjectMeta, ListMeta. Corresponds to the JSON property metadata



1202
1203
1204
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1202

def 
  @metadata
end

#next_page_tokenString

This field is equivalent to the metadata.continue field and is provided as a convenience for compatibility with https://google.aip.dev/158. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a list may not be possible if the server configuration has changed or more than a few minutes have passed. The metadata.resourceVersion field returned when using this field will be identical to the value in the first response. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1213
1214
1215
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1213

def next_page_token
  @next_page_token
end

#unreachableArray<String>

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

Returns:

  • (Array<String>)


1218
1219
1220
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1218

def unreachable
  @unreachable
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1225
1226
1227
1228
1229
1230
1231
1232
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 1225

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)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @unreachable = args[:unreachable] if args.key?(:unreachable)
end