google-apis-run_v1alpha1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee2cf5c869dd9d61a136c10915e5d478b4d779b13b91cd8010c8f8b92761f77b
|
4
|
+
data.tar.gz: 87445bd9c3d44ca4ef3cd1c937b997285756250109a090dec7c8ec2dd7bb4afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b39c72495c8c21c9bbe2e731accc54f6d65fc401d9fc34862d581ccb38b7142b99f0ba59df162b4a2c3b75998b1809d7783bcd1522f84a3bd2a3185784aac60
|
7
|
+
data.tar.gz: '0191349076e597d636d447cd69b5dec65abab9fcf479244b01824ee1cab00ba1a1f3b2848c8e6d41aa1ff430f97ffe4a8aea6bf9e4bb0ea50ba61cba4ed35d48'
|
data/CHANGELOG.md
CHANGED
@@ -1998,6 +1998,154 @@ module Google
|
|
1998
1998
|
end
|
1999
1999
|
end
|
2000
2000
|
|
2001
|
+
# InstanceSpec is a description of an instance.
|
2002
|
+
class InstanceSpec
|
2003
|
+
include Google::Apis::Core::Hashable
|
2004
|
+
|
2005
|
+
# Optional. Optional duration in seconds the instance may be active relative to
|
2006
|
+
# StartTime before the system will actively try to mark it failed and kill
|
2007
|
+
# associated containers. If set to zero, the system will never attempt to kill
|
2008
|
+
# an instance based on time. Otherwise, value must be a positive integer. +
|
2009
|
+
# optional
|
2010
|
+
# Corresponds to the JSON property `activeDeadlineSeconds`
|
2011
|
+
# @return [Fixnum]
|
2012
|
+
attr_accessor :active_deadline_seconds
|
2013
|
+
|
2014
|
+
# Optional. List of containers belonging to the instance. We disallow a number
|
2015
|
+
# of fields on this Container. Only a single container may be provided.
|
2016
|
+
# Corresponds to the JSON property `containers`
|
2017
|
+
# @return [Array<Google::Apis::RunV1alpha1::Container>]
|
2018
|
+
attr_accessor :containers
|
2019
|
+
|
2020
|
+
# Optional. Restart policy for all containers within the instance. Allowed
|
2021
|
+
# values are: - OnFailure: Instances will always be restarted on failure if the
|
2022
|
+
# backoffLimit has not been reached. - Never: Instances are never restarted and
|
2023
|
+
# all failures are permanent. Cannot be used if backoffLimit is set. +optional
|
2024
|
+
# Corresponds to the JSON property `restartPolicy`
|
2025
|
+
# @return [String]
|
2026
|
+
attr_accessor :restart_policy
|
2027
|
+
|
2028
|
+
# Optional. Email address of the IAM service account associated with the
|
2029
|
+
# instance of a Job. The service account represents the identity of the running
|
2030
|
+
# instance, and determines what permissions the instance has. If not provided,
|
2031
|
+
# the instance will use the project's default service account. +optional
|
2032
|
+
# Corresponds to the JSON property `serviceAccountName`
|
2033
|
+
# @return [String]
|
2034
|
+
attr_accessor :service_account_name
|
2035
|
+
|
2036
|
+
# Optional. Optional duration in seconds the instance needs to terminate
|
2037
|
+
# gracefully. Value must be non-negative integer. The value zero indicates
|
2038
|
+
# delete immediately. The grace period is the duration in seconds after the
|
2039
|
+
# processes running in the instance are sent a termination signal and the time
|
2040
|
+
# when the processes are forcibly halted with a kill signal. Set this value
|
2041
|
+
# longer than the expected cleanup time for your process. +optional
|
2042
|
+
# Corresponds to the JSON property `terminationGracePeriodSeconds`
|
2043
|
+
# @return [Fixnum]
|
2044
|
+
attr_accessor :termination_grace_period_seconds
|
2045
|
+
|
2046
|
+
# Optional. List of volumes that can be mounted by containers belonging to the
|
2047
|
+
# instance. More info: https://kubernetes.io/docs/concepts/storage/volumes +
|
2048
|
+
# optional
|
2049
|
+
# Corresponds to the JSON property `volumes`
|
2050
|
+
# @return [Array<Google::Apis::RunV1alpha1::Volume>]
|
2051
|
+
attr_accessor :volumes
|
2052
|
+
|
2053
|
+
def initialize(**args)
|
2054
|
+
update!(**args)
|
2055
|
+
end
|
2056
|
+
|
2057
|
+
# Update properties of this object
|
2058
|
+
def update!(**args)
|
2059
|
+
@active_deadline_seconds = args[:active_deadline_seconds] if args.key?(:active_deadline_seconds)
|
2060
|
+
@containers = args[:containers] if args.key?(:containers)
|
2061
|
+
@restart_policy = args[:restart_policy] if args.key?(:restart_policy)
|
2062
|
+
@service_account_name = args[:service_account_name] if args.key?(:service_account_name)
|
2063
|
+
@termination_grace_period_seconds = args[:termination_grace_period_seconds] if args.key?(:termination_grace_period_seconds)
|
2064
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
2065
|
+
end
|
2066
|
+
end
|
2067
|
+
|
2068
|
+
# Instance represents the status of an instance of a Job.
|
2069
|
+
class InstanceStatus
|
2070
|
+
include Google::Apis::Core::Hashable
|
2071
|
+
|
2072
|
+
# Optional. Represents time when the instance was completed. It is not
|
2073
|
+
# guaranteed to be set in happens-before order across separate operations. It is
|
2074
|
+
# represented in RFC3339 form and is in UTC. +optional
|
2075
|
+
# Corresponds to the JSON property `completionTime`
|
2076
|
+
# @return [String]
|
2077
|
+
attr_accessor :completion_time
|
2078
|
+
|
2079
|
+
# Optional. The number of times this instance exited with code > 0; +optional
|
2080
|
+
# Corresponds to the JSON property `failed`
|
2081
|
+
# @return [Fixnum]
|
2082
|
+
attr_accessor :failed
|
2083
|
+
|
2084
|
+
# Required. Index of the instance, unique per Job, and beginning at 0.
|
2085
|
+
# Corresponds to the JSON property `index`
|
2086
|
+
# @return [Fixnum]
|
2087
|
+
attr_accessor :index
|
2088
|
+
|
2089
|
+
# Optional. Last exit code seen for this instance. +optional
|
2090
|
+
# Corresponds to the JSON property `lastExitCode`
|
2091
|
+
# @return [Fixnum]
|
2092
|
+
attr_accessor :last_exit_code
|
2093
|
+
|
2094
|
+
# Optional. The number of times this instance was restarted. Instances are
|
2095
|
+
# restarted according the restartPolicy configured in the Job template. +
|
2096
|
+
# optional
|
2097
|
+
# Corresponds to the JSON property `restarted`
|
2098
|
+
# @return [Fixnum]
|
2099
|
+
attr_accessor :restarted
|
2100
|
+
|
2101
|
+
# Optional. Represents time when the instance was created by the job controller.
|
2102
|
+
# It is not guaranteed to be set in happens-before order across separate
|
2103
|
+
# operations. It is represented in RFC3339 form and is in UTC. +optional
|
2104
|
+
# Corresponds to the JSON property `startTime`
|
2105
|
+
# @return [String]
|
2106
|
+
attr_accessor :start_time
|
2107
|
+
|
2108
|
+
# Optional. The number of times this instance exited with code == 0. +optional
|
2109
|
+
# Corresponds to the JSON property `succeeded`
|
2110
|
+
# @return [Fixnum]
|
2111
|
+
attr_accessor :succeeded
|
2112
|
+
|
2113
|
+
def initialize(**args)
|
2114
|
+
update!(**args)
|
2115
|
+
end
|
2116
|
+
|
2117
|
+
# Update properties of this object
|
2118
|
+
def update!(**args)
|
2119
|
+
@completion_time = args[:completion_time] if args.key?(:completion_time)
|
2120
|
+
@failed = args[:failed] if args.key?(:failed)
|
2121
|
+
@index = args[:index] if args.key?(:index)
|
2122
|
+
@last_exit_code = args[:last_exit_code] if args.key?(:last_exit_code)
|
2123
|
+
@restarted = args[:restarted] if args.key?(:restarted)
|
2124
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
2125
|
+
@succeeded = args[:succeeded] if args.key?(:succeeded)
|
2126
|
+
end
|
2127
|
+
end
|
2128
|
+
|
2129
|
+
# InstanceTemplateSpec describes the data an instance should have when created
|
2130
|
+
# from a template.
|
2131
|
+
class InstanceTemplateSpec
|
2132
|
+
include Google::Apis::Core::Hashable
|
2133
|
+
|
2134
|
+
# InstanceSpec is a description of an instance.
|
2135
|
+
# Corresponds to the JSON property `spec`
|
2136
|
+
# @return [Google::Apis::RunV1alpha1::InstanceSpec]
|
2137
|
+
attr_accessor :spec
|
2138
|
+
|
2139
|
+
def initialize(**args)
|
2140
|
+
update!(**args)
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
# Update properties of this object
|
2144
|
+
def update!(**args)
|
2145
|
+
@spec = args[:spec] if args.key?(:spec)
|
2146
|
+
end
|
2147
|
+
end
|
2148
|
+
|
2001
2149
|
# IntOrString is a type that can hold an int32 or a string. When used in JSON or
|
2002
2150
|
# YAML marshalling and unmarshalling, it produces or consumes the inner type.
|
2003
2151
|
# This allows you to have, for example, a JSON field that can accept a name or
|
@@ -2032,6 +2180,258 @@ module Google
|
|
2032
2180
|
end
|
2033
2181
|
end
|
2034
2182
|
|
2183
|
+
# Job represents the configuration of a single job. A job an immutable resource
|
2184
|
+
# that references a container image which is run to completion.
|
2185
|
+
class Job
|
2186
|
+
include Google::Apis::Core::Hashable
|
2187
|
+
|
2188
|
+
# Optional. APIVersion defines the versioned schema of this representation of an
|
2189
|
+
# object. Servers should convert recognized schemas to the latest internal value,
|
2190
|
+
# and may reject unrecognized values. More info: https://git.k8s.io/community/
|
2191
|
+
# contributors/devel/sig-architecture/api-conventions.md#resources +optional
|
2192
|
+
# Corresponds to the JSON property `apiVersion`
|
2193
|
+
# @return [String]
|
2194
|
+
attr_accessor :api_version
|
2195
|
+
|
2196
|
+
# Optional. Kind is a string value representing the REST resource this object
|
2197
|
+
# represents. Servers may infer this from the endpoint the client submits
|
2198
|
+
# requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/
|
2199
|
+
# community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +
|
2200
|
+
# optional
|
2201
|
+
# Corresponds to the JSON property `kind`
|
2202
|
+
# @return [String]
|
2203
|
+
attr_accessor :kind
|
2204
|
+
|
2205
|
+
# ObjectMeta is metadata that all persisted resources must have, which includes
|
2206
|
+
# all objects users must create.
|
2207
|
+
# Corresponds to the JSON property `metadata`
|
2208
|
+
# @return [Google::Apis::RunV1alpha1::ObjectMeta]
|
2209
|
+
attr_accessor :metadata
|
2210
|
+
|
2211
|
+
# JobSpec describes how the job execution will look like.
|
2212
|
+
# Corresponds to the JSON property `spec`
|
2213
|
+
# @return [Google::Apis::RunV1alpha1::JobSpec]
|
2214
|
+
attr_accessor :spec
|
2215
|
+
|
2216
|
+
# JobStatus represents the current state of a Job.
|
2217
|
+
# Corresponds to the JSON property `status`
|
2218
|
+
# @return [Google::Apis::RunV1alpha1::JobStatus]
|
2219
|
+
attr_accessor :status
|
2220
|
+
|
2221
|
+
def initialize(**args)
|
2222
|
+
update!(**args)
|
2223
|
+
end
|
2224
|
+
|
2225
|
+
# Update properties of this object
|
2226
|
+
def update!(**args)
|
2227
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
2228
|
+
@kind = args[:kind] if args.key?(:kind)
|
2229
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
2230
|
+
@spec = args[:spec] if args.key?(:spec)
|
2231
|
+
@status = args[:status] if args.key?(:status)
|
2232
|
+
end
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
# JobCondition defines a readiness condition for a Revision.
|
2236
|
+
class JobCondition
|
2237
|
+
include Google::Apis::Core::Hashable
|
2238
|
+
|
2239
|
+
# Optional. Last time the condition transitioned from one status to another.
|
2240
|
+
# Corresponds to the JSON property `lastTransitionTime`
|
2241
|
+
# @return [String]
|
2242
|
+
attr_accessor :last_transition_time
|
2243
|
+
|
2244
|
+
# Optional. Human readable message indicating details about the current status.
|
2245
|
+
# Corresponds to the JSON property `message`
|
2246
|
+
# @return [String]
|
2247
|
+
attr_accessor :message
|
2248
|
+
|
2249
|
+
# Optional. One-word CamelCase reason for the condition's last transition.
|
2250
|
+
# Corresponds to the JSON property `reason`
|
2251
|
+
# @return [String]
|
2252
|
+
attr_accessor :reason
|
2253
|
+
|
2254
|
+
# Optional. How to interpret failures of this condition, one of Error, Warning,
|
2255
|
+
# Info
|
2256
|
+
# Corresponds to the JSON property `severity`
|
2257
|
+
# @return [String]
|
2258
|
+
attr_accessor :severity
|
2259
|
+
|
2260
|
+
# Required. Status of the condition, one of True, False, Unknown.
|
2261
|
+
# Corresponds to the JSON property `status`
|
2262
|
+
# @return [String]
|
2263
|
+
attr_accessor :status
|
2264
|
+
|
2265
|
+
# Required. Type is used to communicate the status of the reconciliation process.
|
2266
|
+
# See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#
|
2267
|
+
# error-conditions-and-reporting Types include: * "Completed": True when the Job
|
2268
|
+
# has successfully completed. * "Started": True when the Job has successfully
|
2269
|
+
# started running. * "ResourcesAvailable": True when underlying resources have
|
2270
|
+
# been provisioned.
|
2271
|
+
# Corresponds to the JSON property `type`
|
2272
|
+
# @return [String]
|
2273
|
+
attr_accessor :type
|
2274
|
+
|
2275
|
+
def initialize(**args)
|
2276
|
+
update!(**args)
|
2277
|
+
end
|
2278
|
+
|
2279
|
+
# Update properties of this object
|
2280
|
+
def update!(**args)
|
2281
|
+
@last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
|
2282
|
+
@message = args[:message] if args.key?(:message)
|
2283
|
+
@reason = args[:reason] if args.key?(:reason)
|
2284
|
+
@severity = args[:severity] if args.key?(:severity)
|
2285
|
+
@status = args[:status] if args.key?(:status)
|
2286
|
+
@type = args[:type] if args.key?(:type)
|
2287
|
+
end
|
2288
|
+
end
|
2289
|
+
|
2290
|
+
# JobSpec describes how the job execution will look like.
|
2291
|
+
class JobSpec
|
2292
|
+
include Google::Apis::Core::Hashable
|
2293
|
+
|
2294
|
+
# Optional. Specifies the duration in seconds relative to the startTime that the
|
2295
|
+
# job may be active before the system tries to terminate it. If set to zero, the
|
2296
|
+
# system will never attempt to terminate the job based on time. Otherwise, the
|
2297
|
+
# value must be positive integer. +optional
|
2298
|
+
# Corresponds to the JSON property `activeDeadlineSeconds`
|
2299
|
+
# @return [Fixnum]
|
2300
|
+
attr_accessor :active_deadline_seconds
|
2301
|
+
|
2302
|
+
# Optional. Specifies the number of retries per instance, before marking this
|
2303
|
+
# job failed. If set to zero, instances will never retry on failure. +optional
|
2304
|
+
# Corresponds to the JSON property `backoffLimit`
|
2305
|
+
# @return [Fixnum]
|
2306
|
+
attr_accessor :backoff_limit
|
2307
|
+
|
2308
|
+
# Optional. Specifies the desired number of successfully finished instances the
|
2309
|
+
# job should be run with. Setting to 1 means that parallelism is limited to 1
|
2310
|
+
# and the success of that instance signals the success of the job. More info:
|
2311
|
+
# https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-
|
2312
|
+
# completion/ +optional
|
2313
|
+
# Corresponds to the JSON property `completions`
|
2314
|
+
# @return [Fixnum]
|
2315
|
+
attr_accessor :completions
|
2316
|
+
|
2317
|
+
# Optional. Specifies the maximum desired number of instances the job should run
|
2318
|
+
# at any given time. Must be <= completions. The actual number of instances
|
2319
|
+
# running in steady state will be less than this number when ((.spec.completions
|
2320
|
+
# - .status.successful) < .spec.parallelism), i.e. when the work left to do is
|
2321
|
+
# less than max parallelism. More info: https://kubernetes.io/docs/concepts/
|
2322
|
+
# workloads/controllers/jobs-run-to-completion/ +optional
|
2323
|
+
# Corresponds to the JSON property `parallelism`
|
2324
|
+
# @return [Fixnum]
|
2325
|
+
attr_accessor :parallelism
|
2326
|
+
|
2327
|
+
# InstanceTemplateSpec describes the data an instance should have when created
|
2328
|
+
# from a template.
|
2329
|
+
# Corresponds to the JSON property `template`
|
2330
|
+
# @return [Google::Apis::RunV1alpha1::InstanceTemplateSpec]
|
2331
|
+
attr_accessor :template
|
2332
|
+
|
2333
|
+
# Optional. ttlSecondsAfterFinished limits the lifetime of a Job that has
|
2334
|
+
# finished execution (either Complete or Failed). If this field is set,
|
2335
|
+
# ttlSecondsAfterFinished after the Job finishes, it is eligible to be
|
2336
|
+
# automatically deleted. When the Job is being deleted, its lifecycle guarantees
|
2337
|
+
# (e.g. finalizers) will be honored. If this field is set to zero, the Job won't
|
2338
|
+
# be automatically deleted. +optional
|
2339
|
+
# Corresponds to the JSON property `ttlSecondsAfterFinished`
|
2340
|
+
# @return [Fixnum]
|
2341
|
+
attr_accessor :ttl_seconds_after_finished
|
2342
|
+
|
2343
|
+
def initialize(**args)
|
2344
|
+
update!(**args)
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
# Update properties of this object
|
2348
|
+
def update!(**args)
|
2349
|
+
@active_deadline_seconds = args[:active_deadline_seconds] if args.key?(:active_deadline_seconds)
|
2350
|
+
@backoff_limit = args[:backoff_limit] if args.key?(:backoff_limit)
|
2351
|
+
@completions = args[:completions] if args.key?(:completions)
|
2352
|
+
@parallelism = args[:parallelism] if args.key?(:parallelism)
|
2353
|
+
@template = args[:template] if args.key?(:template)
|
2354
|
+
@ttl_seconds_after_finished = args[:ttl_seconds_after_finished] if args.key?(:ttl_seconds_after_finished)
|
2355
|
+
end
|
2356
|
+
end
|
2357
|
+
|
2358
|
+
# JobStatus represents the current state of a Job.
|
2359
|
+
class JobStatus
|
2360
|
+
include Google::Apis::Core::Hashable
|
2361
|
+
|
2362
|
+
# Optional. The number of actively running instances. +optional
|
2363
|
+
# Corresponds to the JSON property `active`
|
2364
|
+
# @return [Fixnum]
|
2365
|
+
attr_accessor :active
|
2366
|
+
|
2367
|
+
# Optional. Represents time when the job was completed. It is not guaranteed to
|
2368
|
+
# be set in happens-before order across separate operations. It is represented
|
2369
|
+
# in RFC3339 form and is in UTC. +optional
|
2370
|
+
# Corresponds to the JSON property `completionTime`
|
2371
|
+
# @return [String]
|
2372
|
+
attr_accessor :completion_time
|
2373
|
+
|
2374
|
+
# Optional. The latest available observations of a job's current state. More
|
2375
|
+
# info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-
|
2376
|
+
# completion/ +optional
|
2377
|
+
# Corresponds to the JSON property `conditions`
|
2378
|
+
# @return [Array<Google::Apis::RunV1alpha1::JobCondition>]
|
2379
|
+
attr_accessor :conditions
|
2380
|
+
|
2381
|
+
# Optional. The number of instances which reached phase Failed. +optional
|
2382
|
+
# Corresponds to the JSON property `failed`
|
2383
|
+
# @return [Fixnum]
|
2384
|
+
attr_accessor :failed
|
2385
|
+
|
2386
|
+
# Optional. ImageDigest holds the resolved digest for the image specified within
|
2387
|
+
# .Spec.Template.Spec.Container.Image. The digest is resolved during the
|
2388
|
+
# creation of the Job. This field holds the digest value regardless of whether a
|
2389
|
+
# tag or digest was originally specified in the Container object.
|
2390
|
+
# Corresponds to the JSON property `imageDigest`
|
2391
|
+
# @return [String]
|
2392
|
+
attr_accessor :image_digest
|
2393
|
+
|
2394
|
+
# Optional. Status of completed, failed, and running instances. +optional
|
2395
|
+
# Corresponds to the JSON property `instances`
|
2396
|
+
# @return [Array<Google::Apis::RunV1alpha1::InstanceStatus>]
|
2397
|
+
attr_accessor :instances
|
2398
|
+
|
2399
|
+
# Optional. The 'generation' of the job that was last processed by the
|
2400
|
+
# controller.
|
2401
|
+
# Corresponds to the JSON property `observedGeneration`
|
2402
|
+
# @return [Fixnum]
|
2403
|
+
attr_accessor :observed_generation
|
2404
|
+
|
2405
|
+
# Optional. Represents time when the job was acknowledged by the job controller.
|
2406
|
+
# It is not guaranteed to be set in happens-before order across separate
|
2407
|
+
# operations. It is represented in RFC3339 form and is in UTC. +optional
|
2408
|
+
# Corresponds to the JSON property `startTime`
|
2409
|
+
# @return [String]
|
2410
|
+
attr_accessor :start_time
|
2411
|
+
|
2412
|
+
# Optional. The number of instances which reached phase Succeeded. +optional
|
2413
|
+
# Corresponds to the JSON property `succeeded`
|
2414
|
+
# @return [Fixnum]
|
2415
|
+
attr_accessor :succeeded
|
2416
|
+
|
2417
|
+
def initialize(**args)
|
2418
|
+
update!(**args)
|
2419
|
+
end
|
2420
|
+
|
2421
|
+
# Update properties of this object
|
2422
|
+
def update!(**args)
|
2423
|
+
@active = args[:active] if args.key?(:active)
|
2424
|
+
@completion_time = args[:completion_time] if args.key?(:completion_time)
|
2425
|
+
@conditions = args[:conditions] if args.key?(:conditions)
|
2426
|
+
@failed = args[:failed] if args.key?(:failed)
|
2427
|
+
@image_digest = args[:image_digest] if args.key?(:image_digest)
|
2428
|
+
@instances = args[:instances] if args.key?(:instances)
|
2429
|
+
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
2430
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
2431
|
+
@succeeded = args[:succeeded] if args.key?(:succeeded)
|
2432
|
+
end
|
2433
|
+
end
|
2434
|
+
|
2035
2435
|
# Maps a string key to a path within a volume.
|
2036
2436
|
class KeyToPath
|
2037
2437
|
include Google::Apis::Core::Hashable
|
@@ -2390,6 +2790,63 @@ module Google
|
|
2390
2790
|
end
|
2391
2791
|
end
|
2392
2792
|
|
2793
|
+
# ListJobsResponse is a list of Jobs resources.
|
2794
|
+
class ListJobsResponse
|
2795
|
+
include Google::Apis::Core::Hashable
|
2796
|
+
|
2797
|
+
# The API version for this call such as "run.googleapis.com/v1alpha1".
|
2798
|
+
# Corresponds to the JSON property `apiVersion`
|
2799
|
+
# @return [String]
|
2800
|
+
attr_accessor :api_version
|
2801
|
+
|
2802
|
+
# List of Jobs.
|
2803
|
+
# Corresponds to the JSON property `items`
|
2804
|
+
# @return [Array<Google::Apis::RunV1alpha1::Job>]
|
2805
|
+
attr_accessor :items
|
2806
|
+
|
2807
|
+
# The kind of this resource, in this case "JobsList".
|
2808
|
+
# Corresponds to the JSON property `kind`
|
2809
|
+
# @return [String]
|
2810
|
+
attr_accessor :kind
|
2811
|
+
|
2812
|
+
# ListMeta describes metadata that synthetic resources must have, including
|
2813
|
+
# lists and various status objects. A resource may have only one of `ObjectMeta,
|
2814
|
+
# ListMeta`.
|
2815
|
+
# Corresponds to the JSON property `metadata`
|
2816
|
+
# @return [Google::Apis::RunV1alpha1::ListMeta]
|
2817
|
+
attr_accessor :metadata
|
2818
|
+
|
2819
|
+
# This field is equivalent to the metadata.continue field and is provided as a
|
2820
|
+
# convenience for compatibility with https://google.aip.dev/158. The value is
|
2821
|
+
# opaque and may be used to issue another request to the endpoint that served
|
2822
|
+
# this list to retrieve the next set of available objects. Continuing a list may
|
2823
|
+
# not be possible if the server configuration has changed or more than a few
|
2824
|
+
# minutes have passed. The metadata.resourceVersion field returned when using
|
2825
|
+
# this field will be identical to the value in the first response.
|
2826
|
+
# Corresponds to the JSON property `nextPageToken`
|
2827
|
+
# @return [String]
|
2828
|
+
attr_accessor :next_page_token
|
2829
|
+
|
2830
|
+
# Locations that could not be reached.
|
2831
|
+
# Corresponds to the JSON property `unreachable`
|
2832
|
+
# @return [Array<String>]
|
2833
|
+
attr_accessor :unreachable
|
2834
|
+
|
2835
|
+
def initialize(**args)
|
2836
|
+
update!(**args)
|
2837
|
+
end
|
2838
|
+
|
2839
|
+
# Update properties of this object
|
2840
|
+
def update!(**args)
|
2841
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
2842
|
+
@items = args[:items] if args.key?(:items)
|
2843
|
+
@kind = args[:kind] if args.key?(:kind)
|
2844
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
2845
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2846
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
2847
|
+
end
|
2848
|
+
end
|
2849
|
+
|
2393
2850
|
# The response message for Locations.ListLocations.
|
2394
2851
|
class ListLocationsResponse
|
2395
2852
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RunV1alpha1
|
18
18
|
# Version of the google-apis-run_v1alpha1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210122"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -280,12 +280,54 @@ module Google
|
|
280
280
|
include Google::Apis::Core::JsonObjectSupport
|
281
281
|
end
|
282
282
|
|
283
|
+
class InstanceSpec
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
289
|
+
class InstanceStatus
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
295
|
+
class InstanceTemplateSpec
|
296
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
+
|
298
|
+
include Google::Apis::Core::JsonObjectSupport
|
299
|
+
end
|
300
|
+
|
283
301
|
class IntOrString
|
284
302
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
303
|
|
286
304
|
include Google::Apis::Core::JsonObjectSupport
|
287
305
|
end
|
288
306
|
|
307
|
+
class Job
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
313
|
+
class JobCondition
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
319
|
+
class JobSpec
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
325
|
+
class JobStatus
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
289
331
|
class KeyToPath
|
290
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
333
|
|
@@ -340,6 +382,12 @@ module Google
|
|
340
382
|
include Google::Apis::Core::JsonObjectSupport
|
341
383
|
end
|
342
384
|
|
385
|
+
class ListJobsResponse
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
343
391
|
class ListLocationsResponse
|
344
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
393
|
|
@@ -1155,6 +1203,41 @@ module Google
|
|
1155
1203
|
end
|
1156
1204
|
end
|
1157
1205
|
|
1206
|
+
class InstanceSpec
|
1207
|
+
# @private
|
1208
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1209
|
+
property :active_deadline_seconds, :numeric_string => true, as: 'activeDeadlineSeconds'
|
1210
|
+
collection :containers, as: 'containers', class: Google::Apis::RunV1alpha1::Container, decorator: Google::Apis::RunV1alpha1::Container::Representation
|
1211
|
+
|
1212
|
+
property :restart_policy, as: 'restartPolicy'
|
1213
|
+
property :service_account_name, as: 'serviceAccountName'
|
1214
|
+
property :termination_grace_period_seconds, :numeric_string => true, as: 'terminationGracePeriodSeconds'
|
1215
|
+
collection :volumes, as: 'volumes', class: Google::Apis::RunV1alpha1::Volume, decorator: Google::Apis::RunV1alpha1::Volume::Representation
|
1216
|
+
|
1217
|
+
end
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
class InstanceStatus
|
1221
|
+
# @private
|
1222
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1223
|
+
property :completion_time, as: 'completionTime'
|
1224
|
+
property :failed, as: 'failed'
|
1225
|
+
property :index, as: 'index'
|
1226
|
+
property :last_exit_code, as: 'lastExitCode'
|
1227
|
+
property :restarted, as: 'restarted'
|
1228
|
+
property :start_time, as: 'startTime'
|
1229
|
+
property :succeeded, as: 'succeeded'
|
1230
|
+
end
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
class InstanceTemplateSpec
|
1234
|
+
# @private
|
1235
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1236
|
+
property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::InstanceSpec, decorator: Google::Apis::RunV1alpha1::InstanceSpec::Representation
|
1237
|
+
|
1238
|
+
end
|
1239
|
+
end
|
1240
|
+
|
1158
1241
|
class IntOrString
|
1159
1242
|
# @private
|
1160
1243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1164,6 +1247,62 @@ module Google
|
|
1164
1247
|
end
|
1165
1248
|
end
|
1166
1249
|
|
1250
|
+
class Job
|
1251
|
+
# @private
|
1252
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1253
|
+
property :api_version, as: 'apiVersion'
|
1254
|
+
property :kind, as: 'kind'
|
1255
|
+
property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation
|
1256
|
+
|
1257
|
+
property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::JobSpec, decorator: Google::Apis::RunV1alpha1::JobSpec::Representation
|
1258
|
+
|
1259
|
+
property :status, as: 'status', class: Google::Apis::RunV1alpha1::JobStatus, decorator: Google::Apis::RunV1alpha1::JobStatus::Representation
|
1260
|
+
|
1261
|
+
end
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
class JobCondition
|
1265
|
+
# @private
|
1266
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1267
|
+
property :last_transition_time, as: 'lastTransitionTime'
|
1268
|
+
property :message, as: 'message'
|
1269
|
+
property :reason, as: 'reason'
|
1270
|
+
property :severity, as: 'severity'
|
1271
|
+
property :status, as: 'status'
|
1272
|
+
property :type, as: 'type'
|
1273
|
+
end
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
class JobSpec
|
1277
|
+
# @private
|
1278
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1279
|
+
property :active_deadline_seconds, :numeric_string => true, as: 'activeDeadlineSeconds'
|
1280
|
+
property :backoff_limit, as: 'backoffLimit'
|
1281
|
+
property :completions, as: 'completions'
|
1282
|
+
property :parallelism, as: 'parallelism'
|
1283
|
+
property :template, as: 'template', class: Google::Apis::RunV1alpha1::InstanceTemplateSpec, decorator: Google::Apis::RunV1alpha1::InstanceTemplateSpec::Representation
|
1284
|
+
|
1285
|
+
property :ttl_seconds_after_finished, as: 'ttlSecondsAfterFinished'
|
1286
|
+
end
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
class JobStatus
|
1290
|
+
# @private
|
1291
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1292
|
+
property :active, as: 'active'
|
1293
|
+
property :completion_time, as: 'completionTime'
|
1294
|
+
collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::JobCondition, decorator: Google::Apis::RunV1alpha1::JobCondition::Representation
|
1295
|
+
|
1296
|
+
property :failed, as: 'failed'
|
1297
|
+
property :image_digest, as: 'imageDigest'
|
1298
|
+
collection :instances, as: 'instances', class: Google::Apis::RunV1alpha1::InstanceStatus, decorator: Google::Apis::RunV1alpha1::InstanceStatus::Representation
|
1299
|
+
|
1300
|
+
property :observed_generation, as: 'observedGeneration'
|
1301
|
+
property :start_time, as: 'startTime'
|
1302
|
+
property :succeeded, as: 'succeeded'
|
1303
|
+
end
|
1304
|
+
end
|
1305
|
+
|
1167
1306
|
class KeyToPath
|
1168
1307
|
# @private
|
1169
1308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1270,6 +1409,20 @@ module Google
|
|
1270
1409
|
end
|
1271
1410
|
end
|
1272
1411
|
|
1412
|
+
class ListJobsResponse
|
1413
|
+
# @private
|
1414
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1415
|
+
property :api_version, as: 'apiVersion'
|
1416
|
+
collection :items, as: 'items', class: Google::Apis::RunV1alpha1::Job, decorator: Google::Apis::RunV1alpha1::Job::Representation
|
1417
|
+
|
1418
|
+
property :kind, as: 'kind'
|
1419
|
+
property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation
|
1420
|
+
|
1421
|
+
property :next_page_token, as: 'nextPageToken'
|
1422
|
+
collection :unreachable, as: 'unreachable'
|
1423
|
+
end
|
1424
|
+
end
|
1425
|
+
|
1273
1426
|
class ListLocationsResponse
|
1274
1427
|
# @private
|
1275
1428
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1076,6 +1076,170 @@ module Google
|
|
1076
1076
|
execute_or_queue_command(command, &block)
|
1077
1077
|
end
|
1078
1078
|
|
1079
|
+
# Create a job.
|
1080
|
+
# @param [String] parent
|
1081
|
+
# Required. The namespace in which the job should be created. Replace `
|
1082
|
+
# namespace_id` with the project ID or number.
|
1083
|
+
# @param [Google::Apis::RunV1alpha1::Job] job_object
|
1084
|
+
# @param [String] fields
|
1085
|
+
# Selector specifying which fields to include in a partial response.
|
1086
|
+
# @param [String] quota_user
|
1087
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1088
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1089
|
+
# @param [Google::Apis::RequestOptions] options
|
1090
|
+
# Request-specific options
|
1091
|
+
#
|
1092
|
+
# @yield [result, err] Result & error if block supplied
|
1093
|
+
# @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
|
1094
|
+
# @yieldparam err [StandardError] error object if request failed
|
1095
|
+
#
|
1096
|
+
# @return [Google::Apis::RunV1alpha1::Job]
|
1097
|
+
#
|
1098
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1099
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1100
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1101
|
+
def create_namespace_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1102
|
+
command = make_simple_command(:post, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
|
1103
|
+
command.request_representation = Google::Apis::RunV1alpha1::Job::Representation
|
1104
|
+
command.request_object = job_object
|
1105
|
+
command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
|
1106
|
+
command.response_class = Google::Apis::RunV1alpha1::Job
|
1107
|
+
command.params['parent'] = parent unless parent.nil?
|
1108
|
+
command.query['fields'] = fields unless fields.nil?
|
1109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1110
|
+
execute_or_queue_command(command, &block)
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# Delete a job.
|
1114
|
+
# @param [String] name
|
1115
|
+
# Required. The name of the job to delete. For Cloud Run (fully managed),
|
1116
|
+
# replace `namespace_id` with the project ID or number.
|
1117
|
+
# @param [String] api_version
|
1118
|
+
# Optional. Cloud Run currently ignores this parameter.
|
1119
|
+
# @param [String] kind
|
1120
|
+
# Optional. Cloud Run currently ignores this parameter.
|
1121
|
+
# @param [String] propagation_policy
|
1122
|
+
# Optional. Specifies the propagation policy of delete. Cloud Run currently
|
1123
|
+
# ignores this setting, and deletes in the background. Please see kubernetes.io/
|
1124
|
+
# docs/concepts/workloads/controllers/garbage-collection/ for more information.
|
1125
|
+
# @param [String] fields
|
1126
|
+
# Selector specifying which fields to include in a partial response.
|
1127
|
+
# @param [String] quota_user
|
1128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1130
|
+
# @param [Google::Apis::RequestOptions] options
|
1131
|
+
# Request-specific options
|
1132
|
+
#
|
1133
|
+
# @yield [result, err] Result & error if block supplied
|
1134
|
+
# @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
|
1135
|
+
# @yieldparam err [StandardError] error object if request failed
|
1136
|
+
#
|
1137
|
+
# @return [Google::Apis::RunV1alpha1::Empty]
|
1138
|
+
#
|
1139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1142
|
+
def delete_namespace_job(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1143
|
+
command = make_simple_command(:delete, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
|
1144
|
+
command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
|
1145
|
+
command.response_class = Google::Apis::RunV1alpha1::Empty
|
1146
|
+
command.params['name'] = name unless name.nil?
|
1147
|
+
command.query['apiVersion'] = api_version unless api_version.nil?
|
1148
|
+
command.query['kind'] = kind unless kind.nil?
|
1149
|
+
command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
|
1150
|
+
command.query['fields'] = fields unless fields.nil?
|
1151
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1152
|
+
execute_or_queue_command(command, &block)
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# Get information about a job.
|
1156
|
+
# @param [String] name
|
1157
|
+
# Required. The name of the job to retrieve. For Cloud Run (fully managed),
|
1158
|
+
# replace `namespace_id` with the project ID or number.
|
1159
|
+
# @param [String] fields
|
1160
|
+
# Selector specifying which fields to include in a partial response.
|
1161
|
+
# @param [String] quota_user
|
1162
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1163
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1164
|
+
# @param [Google::Apis::RequestOptions] options
|
1165
|
+
# Request-specific options
|
1166
|
+
#
|
1167
|
+
# @yield [result, err] Result & error if block supplied
|
1168
|
+
# @yieldparam result [Google::Apis::RunV1alpha1::Job] parsed result object
|
1169
|
+
# @yieldparam err [StandardError] error object if request failed
|
1170
|
+
#
|
1171
|
+
# @return [Google::Apis::RunV1alpha1::Job]
|
1172
|
+
#
|
1173
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1174
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1175
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1176
|
+
def get_namespace_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
1177
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+name}', options)
|
1178
|
+
command.response_representation = Google::Apis::RunV1alpha1::Job::Representation
|
1179
|
+
command.response_class = Google::Apis::RunV1alpha1::Job
|
1180
|
+
command.params['name'] = name unless name.nil?
|
1181
|
+
command.query['fields'] = fields unless fields.nil?
|
1182
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1183
|
+
execute_or_queue_command(command, &block)
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
# List jobs.
|
1187
|
+
# @param [String] parent
|
1188
|
+
# Required. The namespace from which the jobs should be listed. Replace `
|
1189
|
+
# namespace_id` with the project ID or number.
|
1190
|
+
# @param [String] continue
|
1191
|
+
# Optional. Optional encoded string to continue paging.
|
1192
|
+
# @param [String] field_selector
|
1193
|
+
# Optional. Allows to filter resources based on a specific value for a field
|
1194
|
+
# name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not
|
1195
|
+
# currently used by Cloud Run.
|
1196
|
+
# @param [Boolean] include_uninitialized
|
1197
|
+
# Optional. Not currently used by Cloud Run.
|
1198
|
+
# @param [String] label_selector
|
1199
|
+
# Optional. Allows to filter resources based on a label. Supported operations
|
1200
|
+
# are =, !=, exists, in, and notIn.
|
1201
|
+
# @param [Fixnum] limit
|
1202
|
+
# Optional. The maximum number of records that should be returned.
|
1203
|
+
# @param [String] resource_version
|
1204
|
+
# Optional. The baseline resource version from which the list or watch operation
|
1205
|
+
# should start. Not currently used by Cloud Run.
|
1206
|
+
# @param [Boolean] watch
|
1207
|
+
# Optional. Flag that indicates that the client expects to watch this resource
|
1208
|
+
# as well. Not currently used by Cloud Run.
|
1209
|
+
# @param [String] fields
|
1210
|
+
# Selector specifying which fields to include in a partial response.
|
1211
|
+
# @param [String] quota_user
|
1212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1214
|
+
# @param [Google::Apis::RequestOptions] options
|
1215
|
+
# Request-specific options
|
1216
|
+
#
|
1217
|
+
# @yield [result, err] Result & error if block supplied
|
1218
|
+
# @yieldparam result [Google::Apis::RunV1alpha1::ListJobsResponse] parsed result object
|
1219
|
+
# @yieldparam err [StandardError] error object if request failed
|
1220
|
+
#
|
1221
|
+
# @return [Google::Apis::RunV1alpha1::ListJobsResponse]
|
1222
|
+
#
|
1223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1226
|
+
def list_namespace_jobs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1227
|
+
command = make_simple_command(:get, 'apis/run.googleapis.com/v1alpha1/{+parent}/jobs', options)
|
1228
|
+
command.response_representation = Google::Apis::RunV1alpha1::ListJobsResponse::Representation
|
1229
|
+
command.response_class = Google::Apis::RunV1alpha1::ListJobsResponse
|
1230
|
+
command.params['parent'] = parent unless parent.nil?
|
1231
|
+
command.query['continue'] = continue unless continue.nil?
|
1232
|
+
command.query['fieldSelector'] = field_selector unless field_selector.nil?
|
1233
|
+
command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
|
1234
|
+
command.query['labelSelector'] = label_selector unless label_selector.nil?
|
1235
|
+
command.query['limit'] = limit unless limit.nil?
|
1236
|
+
command.query['resourceVersion'] = resource_version unless resource_version.nil?
|
1237
|
+
command.query['watch'] = watch unless watch.nil?
|
1238
|
+
command.query['fields'] = fields unless fields.nil?
|
1239
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1240
|
+
execute_or_queue_command(command, &block)
|
1241
|
+
end
|
1242
|
+
|
1079
1243
|
# Rpc to delete a revision.
|
1080
1244
|
# @param [String] name
|
1081
1245
|
# The name of the revision being deleted. If needed, replace `namespace_id` with
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-run_v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-run_v1alpha1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1alpha1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v1alpha1/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-run_v1alpha1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Run Admin API V1alpha1
|