google-apis-run_v2 0.103.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/run_v2/classes.rb +399 -0
- data/lib/google/apis/run_v2/gem_version.rb +2 -2
- data/lib/google/apis/run_v2/representations.rb +116 -0
- data/lib/google/apis/run_v2/service.rb +219 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db88f82018e9b73c1922708773dffcc9769296f76191bd2e9b145cf6f3f176f3
|
|
4
|
+
data.tar.gz: 64b8557a5021c87f9c710291499182c1c185b2eb4b15fbd5ed15551efcb807cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41c277fa97bf37c53a9bd53a03b518b4ca5208b50b7c4a3f5465a116a1dfdd7620680ead7651536a01de1e77b3e3ddd251198d093cdd7440c75f73d9b0c2059e
|
|
7
|
+
data.tar.gz: 057db87239d7410f86270c6cde3fb18efcb35953d65b5fbcb42133f10dc7726b8685abadd71995bb1282c6ec673dbbe5ed3cda1e0d2235f7d98fd70f50d10ea7
|
data/CHANGELOG.md
CHANGED
|
@@ -440,6 +440,12 @@ module Google
|
|
|
440
440
|
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2ContainerPort>]
|
|
441
441
|
attr_accessor :ports
|
|
442
442
|
|
|
443
|
+
# Probe describes a health check to be performed against a container to
|
|
444
|
+
# determine whether it is alive or ready to receive traffic.
|
|
445
|
+
# Corresponds to the JSON property `readinessProbe`
|
|
446
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Probe]
|
|
447
|
+
attr_accessor :readiness_probe
|
|
448
|
+
|
|
443
449
|
# ResourceRequirements describes the compute resource requirements.
|
|
444
450
|
# Corresponds to the JSON property `resources`
|
|
445
451
|
# @return [Google::Apis::RunV2::GoogleCloudRunV2ResourceRequirements]
|
|
@@ -483,6 +489,7 @@ module Google
|
|
|
483
489
|
@liveness_probe = args[:liveness_probe] if args.key?(:liveness_probe)
|
|
484
490
|
@name = args[:name] if args.key?(:name)
|
|
485
491
|
@ports = args[:ports] if args.key?(:ports)
|
|
492
|
+
@readiness_probe = args[:readiness_probe] if args.key?(:readiness_probe)
|
|
486
493
|
@resources = args[:resources] if args.key?(:resources)
|
|
487
494
|
@source_code = args[:source_code] if args.key?(:source_code)
|
|
488
495
|
@startup_probe = args[:startup_probe] if args.key?(:startup_probe)
|
|
@@ -557,6 +564,33 @@ module Google
|
|
|
557
564
|
end
|
|
558
565
|
end
|
|
559
566
|
|
|
567
|
+
# ContainerStatus holds the information of container name and image digest value.
|
|
568
|
+
class GoogleCloudRunV2ContainerStatus
|
|
569
|
+
include Google::Apis::Core::Hashable
|
|
570
|
+
|
|
571
|
+
# ImageDigest holds the resolved digest for the image specified and resolved
|
|
572
|
+
# during the creation of Revision. This field holds the digest value regardless
|
|
573
|
+
# of whether a tag or digest was originally specified in the Container object.
|
|
574
|
+
# Corresponds to the JSON property `imageDigest`
|
|
575
|
+
# @return [String]
|
|
576
|
+
attr_accessor :image_digest
|
|
577
|
+
|
|
578
|
+
# The name of the container, if specified.
|
|
579
|
+
# Corresponds to the JSON property `name`
|
|
580
|
+
# @return [String]
|
|
581
|
+
attr_accessor :name
|
|
582
|
+
|
|
583
|
+
def initialize(**args)
|
|
584
|
+
update!(**args)
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
# Update properties of this object
|
|
588
|
+
def update!(**args)
|
|
589
|
+
@image_digest = args[:image_digest] if args.key?(:image_digest)
|
|
590
|
+
@name = args[:name] if args.key?(:name)
|
|
591
|
+
end
|
|
592
|
+
end
|
|
593
|
+
|
|
560
594
|
# Build the source using Docker. This means the source has a Dockerfile.
|
|
561
595
|
class GoogleCloudRunV2DockerBuild
|
|
562
596
|
include Google::Apis::Core::Hashable
|
|
@@ -1216,6 +1250,289 @@ module Google
|
|
|
1216
1250
|
end
|
|
1217
1251
|
end
|
|
1218
1252
|
|
|
1253
|
+
# A Cloud Run Instance represents a single group of containers running in a
|
|
1254
|
+
# region.
|
|
1255
|
+
class GoogleCloudRunV2Instance
|
|
1256
|
+
include Google::Apis::Core::Hashable
|
|
1257
|
+
|
|
1258
|
+
#
|
|
1259
|
+
# Corresponds to the JSON property `annotations`
|
|
1260
|
+
# @return [Hash<String,String>]
|
|
1261
|
+
attr_accessor :annotations
|
|
1262
|
+
|
|
1263
|
+
# Settings for Binary Authorization feature.
|
|
1264
|
+
# Corresponds to the JSON property `binaryAuthorization`
|
|
1265
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2BinaryAuthorization]
|
|
1266
|
+
attr_accessor :binary_authorization
|
|
1267
|
+
|
|
1268
|
+
# Arbitrary identifier for the API client.
|
|
1269
|
+
# Corresponds to the JSON property `client`
|
|
1270
|
+
# @return [String]
|
|
1271
|
+
attr_accessor :client
|
|
1272
|
+
|
|
1273
|
+
# Arbitrary version identifier for the API client.
|
|
1274
|
+
# Corresponds to the JSON property `clientVersion`
|
|
1275
|
+
# @return [String]
|
|
1276
|
+
attr_accessor :client_version
|
|
1277
|
+
|
|
1278
|
+
# Output only. The Conditions of all other associated sub-resources. They
|
|
1279
|
+
# contain additional diagnostics information in case the Instance does not reach
|
|
1280
|
+
# its Serving state. See comments in `reconciling` for additional information on
|
|
1281
|
+
# reconciliation process in Cloud Run.
|
|
1282
|
+
# Corresponds to the JSON property `conditions`
|
|
1283
|
+
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Condition>]
|
|
1284
|
+
attr_accessor :conditions
|
|
1285
|
+
|
|
1286
|
+
# Output only. Status information for each of the specified containers. The
|
|
1287
|
+
# status includes the resolved digest for specified images.
|
|
1288
|
+
# Corresponds to the JSON property `containerStatuses`
|
|
1289
|
+
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2ContainerStatus>]
|
|
1290
|
+
attr_accessor :container_statuses
|
|
1291
|
+
|
|
1292
|
+
# Required. Holds the single container that defines the unit of execution for
|
|
1293
|
+
# this Instance.
|
|
1294
|
+
# Corresponds to the JSON property `containers`
|
|
1295
|
+
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Container>]
|
|
1296
|
+
attr_accessor :containers
|
|
1297
|
+
|
|
1298
|
+
# Output only. The creation time.
|
|
1299
|
+
# Corresponds to the JSON property `createTime`
|
|
1300
|
+
# @return [String]
|
|
1301
|
+
attr_accessor :create_time
|
|
1302
|
+
|
|
1303
|
+
# Output only. Email address of the authenticated creator.
|
|
1304
|
+
# Corresponds to the JSON property `creator`
|
|
1305
|
+
# @return [String]
|
|
1306
|
+
attr_accessor :creator
|
|
1307
|
+
|
|
1308
|
+
# Output only. The deletion time.
|
|
1309
|
+
# Corresponds to the JSON property `deleteTime`
|
|
1310
|
+
# @return [String]
|
|
1311
|
+
attr_accessor :delete_time
|
|
1312
|
+
|
|
1313
|
+
# User-provided description of the Instance. This field currently has a 512-
|
|
1314
|
+
# character limit.
|
|
1315
|
+
# Corresponds to the JSON property `description`
|
|
1316
|
+
# @return [String]
|
|
1317
|
+
attr_accessor :description
|
|
1318
|
+
|
|
1319
|
+
# A reference to a customer managed encryption key (CMEK) to use to encrypt this
|
|
1320
|
+
# container image. For more information, go to https://cloud.google.com/run/docs/
|
|
1321
|
+
# securing/using-cmek
|
|
1322
|
+
# Corresponds to the JSON property `encryptionKey`
|
|
1323
|
+
# @return [String]
|
|
1324
|
+
attr_accessor :encryption_key
|
|
1325
|
+
|
|
1326
|
+
# The action to take if the encryption key is revoked.
|
|
1327
|
+
# Corresponds to the JSON property `encryptionKeyRevocationAction`
|
|
1328
|
+
# @return [String]
|
|
1329
|
+
attr_accessor :encryption_key_revocation_action
|
|
1330
|
+
|
|
1331
|
+
# If encryption_key_revocation_action is SHUTDOWN, the duration before shutting
|
|
1332
|
+
# down all instances. The minimum increment is 1 hour.
|
|
1333
|
+
# Corresponds to the JSON property `encryptionKeyShutdownDuration`
|
|
1334
|
+
# @return [String]
|
|
1335
|
+
attr_accessor :encryption_key_shutdown_duration
|
|
1336
|
+
|
|
1337
|
+
# Optional. A system-generated fingerprint for this version of the resource. May
|
|
1338
|
+
# be used to detect modification conflict during updates.
|
|
1339
|
+
# Corresponds to the JSON property `etag`
|
|
1340
|
+
# @return [String]
|
|
1341
|
+
attr_accessor :etag
|
|
1342
|
+
|
|
1343
|
+
# Output only. For a deleted resource, the time after which it will be
|
|
1344
|
+
# permamently deleted.
|
|
1345
|
+
# Corresponds to the JSON property `expireTime`
|
|
1346
|
+
# @return [String]
|
|
1347
|
+
attr_accessor :expire_time
|
|
1348
|
+
|
|
1349
|
+
# Output only. A number that monotonically increases every time the user
|
|
1350
|
+
# modifies the desired state. Please note that unlike v1, this is an int64 value.
|
|
1351
|
+
# As with most Google APIs, its JSON representation will be a `string` instead
|
|
1352
|
+
# of an `integer`.
|
|
1353
|
+
# Corresponds to the JSON property `generation`
|
|
1354
|
+
# @return [Fixnum]
|
|
1355
|
+
attr_accessor :generation
|
|
1356
|
+
|
|
1357
|
+
# Optional. True if GPU zonal redundancy is disabled on this instance.
|
|
1358
|
+
# Corresponds to the JSON property `gpuZonalRedundancyDisabled`
|
|
1359
|
+
# @return [Boolean]
|
|
1360
|
+
attr_accessor :gpu_zonal_redundancy_disabled
|
|
1361
|
+
alias_method :gpu_zonal_redundancy_disabled?, :gpu_zonal_redundancy_disabled
|
|
1362
|
+
|
|
1363
|
+
# Optional. IAP settings on the Instance.
|
|
1364
|
+
# Corresponds to the JSON property `iapEnabled`
|
|
1365
|
+
# @return [Boolean]
|
|
1366
|
+
attr_accessor :iap_enabled
|
|
1367
|
+
alias_method :iap_enabled?, :iap_enabled
|
|
1368
|
+
|
|
1369
|
+
# Optional. Provides the ingress settings for this Instance. On output, returns
|
|
1370
|
+
# the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
|
|
1371
|
+
# revision is active.
|
|
1372
|
+
# Corresponds to the JSON property `ingress`
|
|
1373
|
+
# @return [String]
|
|
1374
|
+
attr_accessor :ingress
|
|
1375
|
+
|
|
1376
|
+
# Optional. Disables IAM permission check for run.routes.invoke for callers of
|
|
1377
|
+
# this Instance. For more information, visit https://cloud.google.com/run/docs/
|
|
1378
|
+
# securing/managing-access#invoker_check.
|
|
1379
|
+
# Corresponds to the JSON property `invokerIamDisabled`
|
|
1380
|
+
# @return [Boolean]
|
|
1381
|
+
attr_accessor :invoker_iam_disabled
|
|
1382
|
+
alias_method :invoker_iam_disabled?, :invoker_iam_disabled
|
|
1383
|
+
|
|
1384
|
+
#
|
|
1385
|
+
# Corresponds to the JSON property `labels`
|
|
1386
|
+
# @return [Hash<String,String>]
|
|
1387
|
+
attr_accessor :labels
|
|
1388
|
+
|
|
1389
|
+
# Output only. Email address of the last authenticated modifier.
|
|
1390
|
+
# Corresponds to the JSON property `lastModifier`
|
|
1391
|
+
# @return [String]
|
|
1392
|
+
attr_accessor :last_modifier
|
|
1393
|
+
|
|
1394
|
+
# The launch stage as defined by [Google Cloud Platform Launch Stages](https://
|
|
1395
|
+
# cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and
|
|
1396
|
+
# `GA`. If no value is specified, GA is assumed. Set the launch stage to a
|
|
1397
|
+
# preview stage on input to allow use of preview features in that stage. On read
|
|
1398
|
+
# (or output), describes whether the resource uses preview features. For example,
|
|
1399
|
+
# if ALPHA is provided as input, but only BETA and GA-level features are used,
|
|
1400
|
+
# this field will be BETA on output.
|
|
1401
|
+
# Corresponds to the JSON property `launchStage`
|
|
1402
|
+
# @return [String]
|
|
1403
|
+
attr_accessor :launch_stage
|
|
1404
|
+
|
|
1405
|
+
# Output only. The Google Console URI to obtain logs for the Instance.
|
|
1406
|
+
# Corresponds to the JSON property `logUri`
|
|
1407
|
+
# @return [String]
|
|
1408
|
+
attr_accessor :log_uri
|
|
1409
|
+
|
|
1410
|
+
# The fully qualified name of this Instance. In CreateInstanceRequest, this
|
|
1411
|
+
# field is ignored, and instead composed from CreateInstanceRequest.parent and
|
|
1412
|
+
# CreateInstanceRequest.instance_id. Format: projects/`project`/locations/`
|
|
1413
|
+
# location`/instances/`instance_id`
|
|
1414
|
+
# Corresponds to the JSON property `name`
|
|
1415
|
+
# @return [String]
|
|
1416
|
+
attr_accessor :name
|
|
1417
|
+
|
|
1418
|
+
# Hardware constraints configuration.
|
|
1419
|
+
# Corresponds to the JSON property `nodeSelector`
|
|
1420
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2NodeSelector]
|
|
1421
|
+
attr_accessor :node_selector
|
|
1422
|
+
|
|
1423
|
+
# Output only. The generation of this Instance currently serving traffic. See
|
|
1424
|
+
# comments in `reconciling` for additional information on reconciliation process
|
|
1425
|
+
# in Cloud Run. Please note that unlike v1, this is an int64 value. As with most
|
|
1426
|
+
# Google APIs, its JSON representation will be a `string` instead of an `integer`
|
|
1427
|
+
# .
|
|
1428
|
+
# Corresponds to the JSON property `observedGeneration`
|
|
1429
|
+
# @return [Fixnum]
|
|
1430
|
+
attr_accessor :observed_generation
|
|
1431
|
+
|
|
1432
|
+
# Output only. Returns true if the Instance is currently being acted upon by the
|
|
1433
|
+
# system to bring it into the desired state. When a new Instance is created, or
|
|
1434
|
+
# an existing one is updated, Cloud Run will asynchronously perform all
|
|
1435
|
+
# necessary steps to bring the Instance to the desired serving state. This
|
|
1436
|
+
# process is called reconciliation. While reconciliation is in process, `
|
|
1437
|
+
# observed_generation` will have a transient value that might mismatch the
|
|
1438
|
+
# intended state. Once reconciliation is over (and this field is false), there
|
|
1439
|
+
# are two possible outcomes: reconciliation succeeded and the serving state
|
|
1440
|
+
# matches the Instance, or there was an error, and reconciliation failed. This
|
|
1441
|
+
# state can be found in `terminal_condition.state`.
|
|
1442
|
+
# Corresponds to the JSON property `reconciling`
|
|
1443
|
+
# @return [Boolean]
|
|
1444
|
+
attr_accessor :reconciling
|
|
1445
|
+
alias_method :reconciling?, :reconciling
|
|
1446
|
+
|
|
1447
|
+
# Output only. Reserved for future use.
|
|
1448
|
+
# Corresponds to the JSON property `satisfiesPzs`
|
|
1449
|
+
# @return [Boolean]
|
|
1450
|
+
attr_accessor :satisfies_pzs
|
|
1451
|
+
alias_method :satisfies_pzs?, :satisfies_pzs
|
|
1452
|
+
|
|
1453
|
+
#
|
|
1454
|
+
# Corresponds to the JSON property `serviceAccount`
|
|
1455
|
+
# @return [String]
|
|
1456
|
+
attr_accessor :service_account
|
|
1457
|
+
|
|
1458
|
+
# Defines a status condition for a resource.
|
|
1459
|
+
# Corresponds to the JSON property `terminalCondition`
|
|
1460
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Condition]
|
|
1461
|
+
attr_accessor :terminal_condition
|
|
1462
|
+
|
|
1463
|
+
# Output only. Server assigned unique identifier for the trigger. The value is a
|
|
1464
|
+
# UUID4 string and guaranteed to remain unchanged until the resource is deleted.
|
|
1465
|
+
# Corresponds to the JSON property `uid`
|
|
1466
|
+
# @return [String]
|
|
1467
|
+
attr_accessor :uid
|
|
1468
|
+
|
|
1469
|
+
# Output only. The last-modified time.
|
|
1470
|
+
# Corresponds to the JSON property `updateTime`
|
|
1471
|
+
# @return [String]
|
|
1472
|
+
attr_accessor :update_time
|
|
1473
|
+
|
|
1474
|
+
# Output only. All URLs serving traffic for this Instance.
|
|
1475
|
+
# Corresponds to the JSON property `urls`
|
|
1476
|
+
# @return [Array<String>]
|
|
1477
|
+
attr_accessor :urls
|
|
1478
|
+
|
|
1479
|
+
# A list of Volumes to make available to containers.
|
|
1480
|
+
# Corresponds to the JSON property `volumes`
|
|
1481
|
+
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]
|
|
1482
|
+
attr_accessor :volumes
|
|
1483
|
+
|
|
1484
|
+
# VPC Access settings. For more information on sending traffic to a VPC network,
|
|
1485
|
+
# visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
|
|
1486
|
+
# Corresponds to the JSON property `vpcAccess`
|
|
1487
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2VpcAccess]
|
|
1488
|
+
attr_accessor :vpc_access
|
|
1489
|
+
|
|
1490
|
+
def initialize(**args)
|
|
1491
|
+
update!(**args)
|
|
1492
|
+
end
|
|
1493
|
+
|
|
1494
|
+
# Update properties of this object
|
|
1495
|
+
def update!(**args)
|
|
1496
|
+
@annotations = args[:annotations] if args.key?(:annotations)
|
|
1497
|
+
@binary_authorization = args[:binary_authorization] if args.key?(:binary_authorization)
|
|
1498
|
+
@client = args[:client] if args.key?(:client)
|
|
1499
|
+
@client_version = args[:client_version] if args.key?(:client_version)
|
|
1500
|
+
@conditions = args[:conditions] if args.key?(:conditions)
|
|
1501
|
+
@container_statuses = args[:container_statuses] if args.key?(:container_statuses)
|
|
1502
|
+
@containers = args[:containers] if args.key?(:containers)
|
|
1503
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1504
|
+
@creator = args[:creator] if args.key?(:creator)
|
|
1505
|
+
@delete_time = args[:delete_time] if args.key?(:delete_time)
|
|
1506
|
+
@description = args[:description] if args.key?(:description)
|
|
1507
|
+
@encryption_key = args[:encryption_key] if args.key?(:encryption_key)
|
|
1508
|
+
@encryption_key_revocation_action = args[:encryption_key_revocation_action] if args.key?(:encryption_key_revocation_action)
|
|
1509
|
+
@encryption_key_shutdown_duration = args[:encryption_key_shutdown_duration] if args.key?(:encryption_key_shutdown_duration)
|
|
1510
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
1511
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
1512
|
+
@generation = args[:generation] if args.key?(:generation)
|
|
1513
|
+
@gpu_zonal_redundancy_disabled = args[:gpu_zonal_redundancy_disabled] if args.key?(:gpu_zonal_redundancy_disabled)
|
|
1514
|
+
@iap_enabled = args[:iap_enabled] if args.key?(:iap_enabled)
|
|
1515
|
+
@ingress = args[:ingress] if args.key?(:ingress)
|
|
1516
|
+
@invoker_iam_disabled = args[:invoker_iam_disabled] if args.key?(:invoker_iam_disabled)
|
|
1517
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
1518
|
+
@last_modifier = args[:last_modifier] if args.key?(:last_modifier)
|
|
1519
|
+
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
|
1520
|
+
@log_uri = args[:log_uri] if args.key?(:log_uri)
|
|
1521
|
+
@name = args[:name] if args.key?(:name)
|
|
1522
|
+
@node_selector = args[:node_selector] if args.key?(:node_selector)
|
|
1523
|
+
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
|
1524
|
+
@reconciling = args[:reconciling] if args.key?(:reconciling)
|
|
1525
|
+
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
|
|
1526
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
|
1527
|
+
@terminal_condition = args[:terminal_condition] if args.key?(:terminal_condition)
|
|
1528
|
+
@uid = args[:uid] if args.key?(:uid)
|
|
1529
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
1530
|
+
@urls = args[:urls] if args.key?(:urls)
|
|
1531
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
|
1532
|
+
@vpc_access = args[:vpc_access] if args.key?(:vpc_access)
|
|
1533
|
+
end
|
|
1534
|
+
end
|
|
1535
|
+
|
|
1219
1536
|
# Holds a single instance split entry for the Worker. Allocations can be done to
|
|
1220
1537
|
# a specific Revision name, or pointing to the latest Ready Revision.
|
|
1221
1538
|
class GoogleCloudRunV2InstanceSplit
|
|
@@ -1531,6 +1848,32 @@ module Google
|
|
|
1531
1848
|
end
|
|
1532
1849
|
end
|
|
1533
1850
|
|
|
1851
|
+
# Response message containing a list of Instances.
|
|
1852
|
+
class GoogleCloudRunV2ListInstancesResponse
|
|
1853
|
+
include Google::Apis::Core::Hashable
|
|
1854
|
+
|
|
1855
|
+
# The resulting list of Instances.
|
|
1856
|
+
# Corresponds to the JSON property `instances`
|
|
1857
|
+
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Instance>]
|
|
1858
|
+
attr_accessor :instances
|
|
1859
|
+
|
|
1860
|
+
# A token indicating there are more items than page_size. Use it in the next
|
|
1861
|
+
# ListInstances request to continue.
|
|
1862
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1863
|
+
# @return [String]
|
|
1864
|
+
attr_accessor :next_page_token
|
|
1865
|
+
|
|
1866
|
+
def initialize(**args)
|
|
1867
|
+
update!(**args)
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1870
|
+
# Update properties of this object
|
|
1871
|
+
def update!(**args)
|
|
1872
|
+
@instances = args[:instances] if args.key?(:instances)
|
|
1873
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1874
|
+
end
|
|
1875
|
+
end
|
|
1876
|
+
|
|
1534
1877
|
# Response message containing a list of Jobs.
|
|
1535
1878
|
class GoogleCloudRunV2ListJobsResponse
|
|
1536
1879
|
include Google::Apis::Core::Hashable
|
|
@@ -2920,6 +3263,62 @@ module Google
|
|
|
2920
3263
|
end
|
|
2921
3264
|
end
|
|
2922
3265
|
|
|
3266
|
+
# Request message for starting an Instance.
|
|
3267
|
+
class GoogleCloudRunV2StartInstanceRequest
|
|
3268
|
+
include Google::Apis::Core::Hashable
|
|
3269
|
+
|
|
3270
|
+
# Optional. A system-generated fingerprint for this version of the resource.
|
|
3271
|
+
# This may be used to detect modification conflict during updates.
|
|
3272
|
+
# Corresponds to the JSON property `etag`
|
|
3273
|
+
# @return [String]
|
|
3274
|
+
attr_accessor :etag
|
|
3275
|
+
|
|
3276
|
+
# Optional. Indicates that the request should be validated without actually
|
|
3277
|
+
# stopping any resources.
|
|
3278
|
+
# Corresponds to the JSON property `validateOnly`
|
|
3279
|
+
# @return [Boolean]
|
|
3280
|
+
attr_accessor :validate_only
|
|
3281
|
+
alias_method :validate_only?, :validate_only
|
|
3282
|
+
|
|
3283
|
+
def initialize(**args)
|
|
3284
|
+
update!(**args)
|
|
3285
|
+
end
|
|
3286
|
+
|
|
3287
|
+
# Update properties of this object
|
|
3288
|
+
def update!(**args)
|
|
3289
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
3290
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
|
3291
|
+
end
|
|
3292
|
+
end
|
|
3293
|
+
|
|
3294
|
+
# Request message for deleting an Instance.
|
|
3295
|
+
class GoogleCloudRunV2StopInstanceRequest
|
|
3296
|
+
include Google::Apis::Core::Hashable
|
|
3297
|
+
|
|
3298
|
+
# Optional. A system-generated fingerprint for this version of the resource.
|
|
3299
|
+
# This may be used to detect modification conflict during updates.
|
|
3300
|
+
# Corresponds to the JSON property `etag`
|
|
3301
|
+
# @return [String]
|
|
3302
|
+
attr_accessor :etag
|
|
3303
|
+
|
|
3304
|
+
# Optional. Indicates that the request should be validated without actually
|
|
3305
|
+
# stopping any resources.
|
|
3306
|
+
# Corresponds to the JSON property `validateOnly`
|
|
3307
|
+
# @return [Boolean]
|
|
3308
|
+
attr_accessor :validate_only
|
|
3309
|
+
alias_method :validate_only?, :validate_only
|
|
3310
|
+
|
|
3311
|
+
def initialize(**args)
|
|
3312
|
+
update!(**args)
|
|
3313
|
+
end
|
|
3314
|
+
|
|
3315
|
+
# Update properties of this object
|
|
3316
|
+
def update!(**args)
|
|
3317
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
3318
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
|
3319
|
+
end
|
|
3320
|
+
end
|
|
3321
|
+
|
|
2923
3322
|
# Location of the source in an archive file in Google Cloud Storage.
|
|
2924
3323
|
class GoogleCloudRunV2StorageSource
|
|
2925
3324
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module RunV2
|
|
18
18
|
# Version of the google-apis-run_v2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.104.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260117"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -88,6 +88,12 @@ module Google
|
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
+
class GoogleCloudRunV2ContainerStatus
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
+
|
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
95
|
+
end
|
|
96
|
+
|
|
91
97
|
class GoogleCloudRunV2DockerBuild
|
|
92
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
99
|
|
|
@@ -178,6 +184,12 @@ module Google
|
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
185
|
end
|
|
180
186
|
|
|
187
|
+
class GoogleCloudRunV2Instance
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
181
193
|
class GoogleCloudRunV2InstanceSplit
|
|
182
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
195
|
|
|
@@ -202,6 +214,12 @@ module Google
|
|
|
202
214
|
include Google::Apis::Core::JsonObjectSupport
|
|
203
215
|
end
|
|
204
216
|
|
|
217
|
+
class GoogleCloudRunV2ListInstancesResponse
|
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
219
|
+
|
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
221
|
+
end
|
|
222
|
+
|
|
205
223
|
class GoogleCloudRunV2ListJobsResponse
|
|
206
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
225
|
|
|
@@ -346,6 +364,18 @@ module Google
|
|
|
346
364
|
include Google::Apis::Core::JsonObjectSupport
|
|
347
365
|
end
|
|
348
366
|
|
|
367
|
+
class GoogleCloudRunV2StartInstanceRequest
|
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
369
|
+
|
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
class GoogleCloudRunV2StopInstanceRequest
|
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
375
|
+
|
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
377
|
+
end
|
|
378
|
+
|
|
349
379
|
class GoogleCloudRunV2StorageSource
|
|
350
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
351
381
|
|
|
@@ -890,6 +920,8 @@ module Google
|
|
|
890
920
|
property :name, as: 'name'
|
|
891
921
|
collection :ports, as: 'ports', class: Google::Apis::RunV2::GoogleCloudRunV2ContainerPort, decorator: Google::Apis::RunV2::GoogleCloudRunV2ContainerPort::Representation
|
|
892
922
|
|
|
923
|
+
property :readiness_probe, as: 'readinessProbe', class: Google::Apis::RunV2::GoogleCloudRunV2Probe, decorator: Google::Apis::RunV2::GoogleCloudRunV2Probe::Representation
|
|
924
|
+
|
|
893
925
|
property :resources, as: 'resources', class: Google::Apis::RunV2::GoogleCloudRunV2ResourceRequirements, decorator: Google::Apis::RunV2::GoogleCloudRunV2ResourceRequirements::Representation
|
|
894
926
|
|
|
895
927
|
property :source_code, as: 'sourceCode', class: Google::Apis::RunV2::GoogleCloudRunV2SourceCode, decorator: Google::Apis::RunV2::GoogleCloudRunV2SourceCode::Representation
|
|
@@ -921,6 +953,14 @@ module Google
|
|
|
921
953
|
end
|
|
922
954
|
end
|
|
923
955
|
|
|
956
|
+
class GoogleCloudRunV2ContainerStatus
|
|
957
|
+
# @private
|
|
958
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
959
|
+
property :image_digest, as: 'imageDigest'
|
|
960
|
+
property :name, as: 'name'
|
|
961
|
+
end
|
|
962
|
+
end
|
|
963
|
+
|
|
924
964
|
class GoogleCloudRunV2DockerBuild
|
|
925
965
|
# @private
|
|
926
966
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1082,6 +1122,57 @@ module Google
|
|
|
1082
1122
|
end
|
|
1083
1123
|
end
|
|
1084
1124
|
|
|
1125
|
+
class GoogleCloudRunV2Instance
|
|
1126
|
+
# @private
|
|
1127
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1128
|
+
hash :annotations, as: 'annotations'
|
|
1129
|
+
property :binary_authorization, as: 'binaryAuthorization', class: Google::Apis::RunV2::GoogleCloudRunV2BinaryAuthorization, decorator: Google::Apis::RunV2::GoogleCloudRunV2BinaryAuthorization::Representation
|
|
1130
|
+
|
|
1131
|
+
property :client, as: 'client'
|
|
1132
|
+
property :client_version, as: 'clientVersion'
|
|
1133
|
+
collection :conditions, as: 'conditions', class: Google::Apis::RunV2::GoogleCloudRunV2Condition, decorator: Google::Apis::RunV2::GoogleCloudRunV2Condition::Representation
|
|
1134
|
+
|
|
1135
|
+
collection :container_statuses, as: 'containerStatuses', class: Google::Apis::RunV2::GoogleCloudRunV2ContainerStatus, decorator: Google::Apis::RunV2::GoogleCloudRunV2ContainerStatus::Representation
|
|
1136
|
+
|
|
1137
|
+
collection :containers, as: 'containers', class: Google::Apis::RunV2::GoogleCloudRunV2Container, decorator: Google::Apis::RunV2::GoogleCloudRunV2Container::Representation
|
|
1138
|
+
|
|
1139
|
+
property :create_time, as: 'createTime'
|
|
1140
|
+
property :creator, as: 'creator'
|
|
1141
|
+
property :delete_time, as: 'deleteTime'
|
|
1142
|
+
property :description, as: 'description'
|
|
1143
|
+
property :encryption_key, as: 'encryptionKey'
|
|
1144
|
+
property :encryption_key_revocation_action, as: 'encryptionKeyRevocationAction'
|
|
1145
|
+
property :encryption_key_shutdown_duration, as: 'encryptionKeyShutdownDuration'
|
|
1146
|
+
property :etag, as: 'etag'
|
|
1147
|
+
property :expire_time, as: 'expireTime'
|
|
1148
|
+
property :generation, :numeric_string => true, as: 'generation'
|
|
1149
|
+
property :gpu_zonal_redundancy_disabled, as: 'gpuZonalRedundancyDisabled'
|
|
1150
|
+
property :iap_enabled, as: 'iapEnabled'
|
|
1151
|
+
property :ingress, as: 'ingress'
|
|
1152
|
+
property :invoker_iam_disabled, as: 'invokerIamDisabled'
|
|
1153
|
+
hash :labels, as: 'labels'
|
|
1154
|
+
property :last_modifier, as: 'lastModifier'
|
|
1155
|
+
property :launch_stage, as: 'launchStage'
|
|
1156
|
+
property :log_uri, as: 'logUri'
|
|
1157
|
+
property :name, as: 'name'
|
|
1158
|
+
property :node_selector, as: 'nodeSelector', class: Google::Apis::RunV2::GoogleCloudRunV2NodeSelector, decorator: Google::Apis::RunV2::GoogleCloudRunV2NodeSelector::Representation
|
|
1159
|
+
|
|
1160
|
+
property :observed_generation, :numeric_string => true, as: 'observedGeneration'
|
|
1161
|
+
property :reconciling, as: 'reconciling'
|
|
1162
|
+
property :satisfies_pzs, as: 'satisfiesPzs'
|
|
1163
|
+
property :service_account, as: 'serviceAccount'
|
|
1164
|
+
property :terminal_condition, as: 'terminalCondition', class: Google::Apis::RunV2::GoogleCloudRunV2Condition, decorator: Google::Apis::RunV2::GoogleCloudRunV2Condition::Representation
|
|
1165
|
+
|
|
1166
|
+
property :uid, as: 'uid'
|
|
1167
|
+
property :update_time, as: 'updateTime'
|
|
1168
|
+
collection :urls, as: 'urls'
|
|
1169
|
+
collection :volumes, as: 'volumes', class: Google::Apis::RunV2::GoogleCloudRunV2Volume, decorator: Google::Apis::RunV2::GoogleCloudRunV2Volume::Representation
|
|
1170
|
+
|
|
1171
|
+
property :vpc_access, as: 'vpcAccess', class: Google::Apis::RunV2::GoogleCloudRunV2VpcAccess, decorator: Google::Apis::RunV2::GoogleCloudRunV2VpcAccess::Representation
|
|
1172
|
+
|
|
1173
|
+
end
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1085
1176
|
class GoogleCloudRunV2InstanceSplit
|
|
1086
1177
|
# @private
|
|
1087
1178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1146,6 +1237,15 @@ module Google
|
|
|
1146
1237
|
end
|
|
1147
1238
|
end
|
|
1148
1239
|
|
|
1240
|
+
class GoogleCloudRunV2ListInstancesResponse
|
|
1241
|
+
# @private
|
|
1242
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1243
|
+
collection :instances, as: 'instances', class: Google::Apis::RunV2::GoogleCloudRunV2Instance, decorator: Google::Apis::RunV2::GoogleCloudRunV2Instance::Representation
|
|
1244
|
+
|
|
1245
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1246
|
+
end
|
|
1247
|
+
end
|
|
1248
|
+
|
|
1149
1249
|
class GoogleCloudRunV2ListJobsResponse
|
|
1150
1250
|
# @private
|
|
1151
1251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1467,6 +1567,22 @@ module Google
|
|
|
1467
1567
|
end
|
|
1468
1568
|
end
|
|
1469
1569
|
|
|
1570
|
+
class GoogleCloudRunV2StartInstanceRequest
|
|
1571
|
+
# @private
|
|
1572
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1573
|
+
property :etag, as: 'etag'
|
|
1574
|
+
property :validate_only, as: 'validateOnly'
|
|
1575
|
+
end
|
|
1576
|
+
end
|
|
1577
|
+
|
|
1578
|
+
class GoogleCloudRunV2StopInstanceRequest
|
|
1579
|
+
# @private
|
|
1580
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1581
|
+
property :etag, as: 'etag'
|
|
1582
|
+
property :validate_only, as: 'validateOnly'
|
|
1583
|
+
end
|
|
1584
|
+
end
|
|
1585
|
+
|
|
1470
1586
|
class GoogleCloudRunV2StorageSource
|
|
1471
1587
|
# @private
|
|
1472
1588
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -225,6 +225,225 @@ module Google
|
|
|
225
225
|
execute_or_queue_command(command, &block)
|
|
226
226
|
end
|
|
227
227
|
|
|
228
|
+
# Creates an Instance.
|
|
229
|
+
# @param [String] parent
|
|
230
|
+
# @param [Google::Apis::RunV2::GoogleCloudRunV2Instance] google_cloud_run_v2_instance_object
|
|
231
|
+
# @param [String] instance_id
|
|
232
|
+
# Required. The unique identifier for the Instance. It must begin with letter,
|
|
233
|
+
# and cannot end with hyphen; must contain fewer than 50 characters. The name of
|
|
234
|
+
# the instance becomes `parent`/instances/`instance_id`.
|
|
235
|
+
# @param [Boolean] validate_only
|
|
236
|
+
# Optional. Indicates that the request should be validated and default values
|
|
237
|
+
# populated, without persisting the request or creating any resources.
|
|
238
|
+
# @param [String] fields
|
|
239
|
+
# Selector specifying which fields to include in a partial response.
|
|
240
|
+
# @param [String] quota_user
|
|
241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
243
|
+
# @param [Google::Apis::RequestOptions] options
|
|
244
|
+
# Request-specific options
|
|
245
|
+
#
|
|
246
|
+
# @yield [result, err] Result & error if block supplied
|
|
247
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
|
248
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
249
|
+
#
|
|
250
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
|
251
|
+
#
|
|
252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
255
|
+
def create_project_location_instance(parent, google_cloud_run_v2_instance_object = nil, instance_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
256
|
+
command = make_simple_command(:post, 'v2/{+parent}/instances', options)
|
|
257
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2Instance::Representation
|
|
258
|
+
command.request_object = google_cloud_run_v2_instance_object
|
|
259
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
|
260
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
|
261
|
+
command.params['parent'] = parent unless parent.nil?
|
|
262
|
+
command.query['instanceId'] = instance_id unless instance_id.nil?
|
|
263
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
264
|
+
command.query['fields'] = fields unless fields.nil?
|
|
265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
266
|
+
execute_or_queue_command(command, &block)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Deletes a Instance
|
|
270
|
+
# @param [String] name
|
|
271
|
+
# @param [String] etag
|
|
272
|
+
# Optional. A system-generated fingerprint for this version of the resource. May
|
|
273
|
+
# be used to detect modification conflict during updates.
|
|
274
|
+
# @param [Boolean] validate_only
|
|
275
|
+
# Optional. Indicates that the request should be validated without actually
|
|
276
|
+
# deleting any resources.
|
|
277
|
+
# @param [String] fields
|
|
278
|
+
# Selector specifying which fields to include in a partial response.
|
|
279
|
+
# @param [String] quota_user
|
|
280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
282
|
+
# @param [Google::Apis::RequestOptions] options
|
|
283
|
+
# Request-specific options
|
|
284
|
+
#
|
|
285
|
+
# @yield [result, err] Result & error if block supplied
|
|
286
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
|
287
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
288
|
+
#
|
|
289
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
|
290
|
+
#
|
|
291
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
292
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
293
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
294
|
+
def delete_project_location_instance(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
295
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
|
296
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
|
297
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
|
298
|
+
command.params['name'] = name unless name.nil?
|
|
299
|
+
command.query['etag'] = etag unless etag.nil?
|
|
300
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
301
|
+
command.query['fields'] = fields unless fields.nil?
|
|
302
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
303
|
+
execute_or_queue_command(command, &block)
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Gets a Instance
|
|
307
|
+
# @param [String] name
|
|
308
|
+
# @param [String] fields
|
|
309
|
+
# Selector specifying which fields to include in a partial response.
|
|
310
|
+
# @param [String] quota_user
|
|
311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
313
|
+
# @param [Google::Apis::RequestOptions] options
|
|
314
|
+
# Request-specific options
|
|
315
|
+
#
|
|
316
|
+
# @yield [result, err] Result & error if block supplied
|
|
317
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Instance] parsed result object
|
|
318
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
319
|
+
#
|
|
320
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Instance]
|
|
321
|
+
#
|
|
322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
325
|
+
def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
326
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
|
327
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Instance::Representation
|
|
328
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Instance
|
|
329
|
+
command.params['name'] = name unless name.nil?
|
|
330
|
+
command.query['fields'] = fields unless fields.nil?
|
|
331
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
332
|
+
execute_or_queue_command(command, &block)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Lists Instances. Results are sorted by creation time, descending.
|
|
336
|
+
# @param [String] parent
|
|
337
|
+
# Required. The location and project to list resources on. Format: projects/`
|
|
338
|
+
# project`/locations/`location`, where `project` can be project id or number.
|
|
339
|
+
# @param [Fixnum] page_size
|
|
340
|
+
# Optional. Maximum number of Instances to return in this call.
|
|
341
|
+
# @param [String] page_token
|
|
342
|
+
# Optional. A page token received from a previous call to ListInstances. All
|
|
343
|
+
# other parameters must match.
|
|
344
|
+
# @param [Boolean] show_deleted
|
|
345
|
+
# Optional. If true, returns deleted (but unexpired) resources along with active
|
|
346
|
+
# ones.
|
|
347
|
+
# @param [String] fields
|
|
348
|
+
# Selector specifying which fields to include in a partial response.
|
|
349
|
+
# @param [String] quota_user
|
|
350
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
351
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
352
|
+
# @param [Google::Apis::RequestOptions] options
|
|
353
|
+
# Request-specific options
|
|
354
|
+
#
|
|
355
|
+
# @yield [result, err] Result & error if block supplied
|
|
356
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListInstancesResponse] parsed result object
|
|
357
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
358
|
+
#
|
|
359
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ListInstancesResponse]
|
|
360
|
+
#
|
|
361
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
362
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
363
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
364
|
+
def list_project_location_instances(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
365
|
+
command = make_simple_command(:get, 'v2/{+parent}/instances', options)
|
|
366
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListInstancesResponse::Representation
|
|
367
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListInstancesResponse
|
|
368
|
+
command.params['parent'] = parent unless parent.nil?
|
|
369
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
370
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
371
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
|
372
|
+
command.query['fields'] = fields unless fields.nil?
|
|
373
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
374
|
+
execute_or_queue_command(command, &block)
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Starts an Instance.
|
|
378
|
+
# @param [String] name
|
|
379
|
+
# Required. The name of the Instance to stop. Format: `projects/`project`/
|
|
380
|
+
# locations/`location`/instances/`instance``, where ``project`` can be project
|
|
381
|
+
# id or number.
|
|
382
|
+
# @param [Google::Apis::RunV2::GoogleCloudRunV2StartInstanceRequest] google_cloud_run_v2_start_instance_request_object
|
|
383
|
+
# @param [String] fields
|
|
384
|
+
# Selector specifying which fields to include in a partial response.
|
|
385
|
+
# @param [String] quota_user
|
|
386
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
387
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
388
|
+
# @param [Google::Apis::RequestOptions] options
|
|
389
|
+
# Request-specific options
|
|
390
|
+
#
|
|
391
|
+
# @yield [result, err] Result & error if block supplied
|
|
392
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
|
393
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
394
|
+
#
|
|
395
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
|
396
|
+
#
|
|
397
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
398
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
399
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
400
|
+
def start_project_location_instance(name, google_cloud_run_v2_start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
401
|
+
command = make_simple_command(:post, 'v2/{+name}:start', options)
|
|
402
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2StartInstanceRequest::Representation
|
|
403
|
+
command.request_object = google_cloud_run_v2_start_instance_request_object
|
|
404
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
|
405
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
|
406
|
+
command.params['name'] = name unless name.nil?
|
|
407
|
+
command.query['fields'] = fields unless fields.nil?
|
|
408
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
409
|
+
execute_or_queue_command(command, &block)
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
# Stops an Instance.
|
|
413
|
+
# @param [String] name
|
|
414
|
+
# Required. The name of the Instance to stop. Format: `projects/`project`/
|
|
415
|
+
# locations/`location`/instances/`instance``, where ``project`` can be project
|
|
416
|
+
# id or number.
|
|
417
|
+
# @param [Google::Apis::RunV2::GoogleCloudRunV2StopInstanceRequest] google_cloud_run_v2_stop_instance_request_object
|
|
418
|
+
# @param [String] fields
|
|
419
|
+
# Selector specifying which fields to include in a partial response.
|
|
420
|
+
# @param [String] quota_user
|
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
423
|
+
# @param [Google::Apis::RequestOptions] options
|
|
424
|
+
# Request-specific options
|
|
425
|
+
#
|
|
426
|
+
# @yield [result, err] Result & error if block supplied
|
|
427
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
|
428
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
429
|
+
#
|
|
430
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
|
431
|
+
#
|
|
432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
435
|
+
def stop_project_location_instance(name, google_cloud_run_v2_stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
436
|
+
command = make_simple_command(:post, 'v2/{+name}:stop', options)
|
|
437
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2StopInstanceRequest::Representation
|
|
438
|
+
command.request_object = google_cloud_run_v2_stop_instance_request_object
|
|
439
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
|
440
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
|
441
|
+
command.params['name'] = name unless name.nil?
|
|
442
|
+
command.query['fields'] = fields unless fields.nil?
|
|
443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
444
|
+
execute_or_queue_command(command, &block)
|
|
445
|
+
end
|
|
446
|
+
|
|
228
447
|
# Creates a Job.
|
|
229
448
|
# @param [String] parent
|
|
230
449
|
# Required. The location and project in which this Job should be created. Format:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-run_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.104.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.104.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|