google-apis-run_v2 0.47.0 → 0.49.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: db658075ffd12c8b3c060fa6bbcefe914f28cbccbeac0755408ca1c36ddfe513
4
- data.tar.gz: fe1ba994015c1587fa3894a4eac6a707b2b0dce7fab8ff2ecdff52a87cb6210f
3
+ metadata.gz: 769d00f0e7bc64597681875569588eca6fc43f3cbee72170fc8eb55fd1209029
4
+ data.tar.gz: b91f0fa0e70244dafb672b14e876462b89ea495183a6104603871663dec28406
5
5
  SHA512:
6
- metadata.gz: e5c3b42a471636ff16d947974b4c2a242addccbd063044bee0018215269e85ffd3a3040fc3357f31cb5cb552b4ee9e1405d5ae651771dd0aa1798f8e53110a39
7
- data.tar.gz: a091629fbdde5caf67208c18b5f8213e3ea6473f36dd1e0c8f3ac96da865e22df07b98a9212435b79785b30afeda9c95987c0b14278dcbb1fcfcd037874fcd4b
6
+ metadata.gz: a2af93453f11002a0c3b699784fb9c8d4b0cac31dcbd8e1c156631f30f6d5fc86038c03da07e532f11fc5bfedf419cb834f788113c1a507c68020b1d0536f4a7
7
+ data.tar.gz: 66598e83c1b10a732a365f60d5015fc02436bdfc69b878d7c0ff97d707a1ea981e98fa561cbab86b34cc7e4f8c78ef1972c9d84b62a8e07eaeccfb7ca4f0fbc5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-run_v2
2
2
 
3
+ ### v0.49.0 (2023-10-01)
4
+
5
+ * Regenerated from discovery document revision 20230924
6
+
7
+ ### v0.48.0 (2023-09-24)
8
+
9
+ * Regenerated from discovery document revision 20230917
10
+
3
11
  ### v0.47.0 (2023-09-17)
4
12
 
5
13
  * Regenerated from discovery document revision 20230910
@@ -266,6 +266,45 @@ module Google
266
266
  end
267
267
  end
268
268
 
269
+ # Per-container override specification.
270
+ class GoogleCloudRunV2ContainerOverride
271
+ include Google::Apis::Core::Hashable
272
+
273
+ # Optional. Arguments to the entrypoint. Will replace existing args for override.
274
+ # Corresponds to the JSON property `args`
275
+ # @return [Array<String>]
276
+ attr_accessor :args
277
+
278
+ # Optional. True if the intention is to clear out existing args list.
279
+ # Corresponds to the JSON property `clearArgs`
280
+ # @return [Boolean]
281
+ attr_accessor :clear_args
282
+ alias_method :clear_args?, :clear_args
283
+
284
+ # List of environment variables to set in the container. Will be merged with
285
+ # existing env for override.
286
+ # Corresponds to the JSON property `env`
287
+ # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2EnvVar>]
288
+ attr_accessor :env
289
+
290
+ # The name of the container specified as a DNS_LABEL.
291
+ # Corresponds to the JSON property `name`
292
+ # @return [String]
293
+ attr_accessor :name
294
+
295
+ def initialize(**args)
296
+ update!(**args)
297
+ end
298
+
299
+ # Update properties of this object
300
+ def update!(**args)
301
+ @args = args[:args] if args.key?(:args)
302
+ @clear_args = args[:clear_args] if args.key?(:clear_args)
303
+ @env = args[:env] if args.key?(:env)
304
+ @name = args[:name] if args.key?(:name)
305
+ end
306
+ end
307
+
269
308
  # ContainerPort represents a network port in a single container.
270
309
  class GoogleCloudRunV2ContainerPort
271
310
  include Google::Apis::Core::Hashable
@@ -1119,21 +1158,29 @@ module Google
1119
1158
  end
1120
1159
  end
1121
1160
 
1122
- # VPC network settings.
1161
+ # Direct VPC egress settings.
1123
1162
  class GoogleCloudRunV2NetworkInterface
1124
1163
  include Google::Apis::Core::Hashable
1125
1164
 
1126
- # The VPC network name to access to. Defaults to "default" network.
1165
+ # The VPC network that the Cloud Run resource will be able to send traffic to.
1166
+ # At least one of network or subnetwork must be specified. If both network and
1167
+ # subnetwork are specified, the given VPC subnetwork must belong to the given
1168
+ # VPC network. If network is not specified, it will be looked up from the
1169
+ # subnetwork.
1127
1170
  # Corresponds to the JSON property `network`
1128
1171
  # @return [String]
1129
1172
  attr_accessor :network
1130
1173
 
1131
- # The VPC subnetwork name to access to. Defaults to the same vaule of network.
1174
+ # The VPC subnetwork that the Cloud Run resource will get IPs from. At least one
1175
+ # of network or subnetwork must be specified. If both network and subnetwork are
1176
+ # specified, the given VPC subnetwork must belong to the given VPC network. If
1177
+ # subnetwork is not specified, the subnetwork with the same name with the
1178
+ # network will be used.
1132
1179
  # Corresponds to the JSON property `subnetwork`
1133
1180
  # @return [String]
1134
1181
  attr_accessor :subnetwork
1135
1182
 
1136
- # Network tags applied to this VPC network.
1183
+ # Network tags applied to this Cloud Run resource.
1137
1184
  # Corresponds to the JSON property `tags`
1138
1185
  # @return [Array<String>]
1139
1186
  attr_accessor :tags
@@ -1150,6 +1197,40 @@ module Google
1150
1197
  end
1151
1198
  end
1152
1199
 
1200
+ # RunJob Overrides that contains Execution fields to be overridden.
1201
+ class GoogleCloudRunV2Overrides
1202
+ include Google::Apis::Core::Hashable
1203
+
1204
+ # Per container override specification.
1205
+ # Corresponds to the JSON property `containerOverrides`
1206
+ # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2ContainerOverride>]
1207
+ attr_accessor :container_overrides
1208
+
1209
+ # Optional. The desired number of tasks the execution should run. Will replace
1210
+ # existing task_count value.
1211
+ # Corresponds to the JSON property `taskCount`
1212
+ # @return [Fixnum]
1213
+ attr_accessor :task_count
1214
+
1215
+ # Duration in seconds the task may be active before the system will actively try
1216
+ # to mark it failed and kill associated containers. Will replace existing
1217
+ # timeout_seconds value.
1218
+ # Corresponds to the JSON property `timeout`
1219
+ # @return [String]
1220
+ attr_accessor :timeout
1221
+
1222
+ def initialize(**args)
1223
+ update!(**args)
1224
+ end
1225
+
1226
+ # Update properties of this object
1227
+ def update!(**args)
1228
+ @container_overrides = args[:container_overrides] if args.key?(:container_overrides)
1229
+ @task_count = args[:task_count] if args.key?(:task_count)
1230
+ @timeout = args[:timeout] if args.key?(:timeout)
1231
+ end
1232
+ end
1233
+
1153
1234
  # Probe describes a health check to be performed against a container to
1154
1235
  # determine whether it is alive or ready to receive traffic.
1155
1236
  class GoogleCloudRunV2Probe
@@ -1429,10 +1510,8 @@ module Google
1429
1510
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]
1430
1511
  attr_accessor :volumes
1431
1512
 
1432
- # VPC Access settings. For more information on creating a VPC Connector, visit
1433
- # https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
1434
- # information on how to configure Cloud Run with an existing VPC Connector,
1435
- # visit https://cloud.google.com/run/docs/configuring/connecting-vpc
1513
+ # VPC Access settings. For more information on sending traffic to a VPC network,
1514
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
1436
1515
  # Corresponds to the JSON property `vpcAccess`
1437
1516
  # @return [Google::Apis::RunV2::GoogleCloudRunV2VpcAccess]
1438
1517
  attr_accessor :vpc_access
@@ -1587,10 +1666,8 @@ module Google
1587
1666
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]
1588
1667
  attr_accessor :volumes
1589
1668
 
1590
- # VPC Access settings. For more information on creating a VPC Connector, visit
1591
- # https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
1592
- # information on how to configure Cloud Run with an existing VPC Connector,
1593
- # visit https://cloud.google.com/run/docs/configuring/connecting-vpc
1669
+ # VPC Access settings. For more information on sending traffic to a VPC network,
1670
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
1594
1671
  # Corresponds to the JSON property `vpcAccess`
1595
1672
  # @return [Google::Apis::RunV2::GoogleCloudRunV2VpcAccess]
1596
1673
  attr_accessor :vpc_access
@@ -1627,6 +1704,11 @@ module Google
1627
1704
  # @return [String]
1628
1705
  attr_accessor :etag
1629
1706
 
1707
+ # RunJob Overrides that contains Execution fields to be overridden.
1708
+ # Corresponds to the JSON property `overrides`
1709
+ # @return [Google::Apis::RunV2::GoogleCloudRunV2Overrides]
1710
+ attr_accessor :overrides
1711
+
1630
1712
  # Indicates that the request should be validated without actually deleting any
1631
1713
  # resources.
1632
1714
  # Corresponds to the JSON property `validateOnly`
@@ -1641,6 +1723,7 @@ module Google
1641
1723
  # Update properties of this object
1642
1724
  def update!(**args)
1643
1725
  @etag = args[:etag] if args.key?(:etag)
1726
+ @overrides = args[:overrides] if args.key?(:overrides)
1644
1727
  @validate_only = args[:validate_only] if args.key?(:validate_only)
1645
1728
  end
1646
1729
  end
@@ -2159,6 +2242,13 @@ module Google
2159
2242
  attr_accessor :satisfies_pzs
2160
2243
  alias_method :satisfies_pzs?, :satisfies_pzs
2161
2244
 
2245
+ # Output only. Represents time when the task was scheduled to run by the system.
2246
+ # It is not guaranteed to be set in happens-before order across separate
2247
+ # operations.
2248
+ # Corresponds to the JSON property `scheduledTime`
2249
+ # @return [String]
2250
+ attr_accessor :scheduled_time
2251
+
2162
2252
  # Email address of the IAM service account associated with the Task of a Job.
2163
2253
  # The service account represents the identity of the running task, and
2164
2254
  # determines what permissions the task has. If not provided, the task will use
@@ -2196,10 +2286,8 @@ module Google
2196
2286
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]
2197
2287
  attr_accessor :volumes
2198
2288
 
2199
- # VPC Access settings. For more information on creating a VPC Connector, visit
2200
- # https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
2201
- # information on how to configure Cloud Run with an existing VPC Connector,
2202
- # visit https://cloud.google.com/run/docs/configuring/connecting-vpc
2289
+ # VPC Access settings. For more information on sending traffic to a VPC network,
2290
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
2203
2291
  # Corresponds to the JSON property `vpcAccess`
2204
2292
  # @return [Google::Apis::RunV2::GoogleCloudRunV2VpcAccess]
2205
2293
  attr_accessor :vpc_access
@@ -2233,6 +2321,7 @@ module Google
2233
2321
  @reconciling = args[:reconciling] if args.key?(:reconciling)
2234
2322
  @retried = args[:retried] if args.key?(:retried)
2235
2323
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
2324
+ @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
2236
2325
  @service_account = args[:service_account] if args.key?(:service_account)
2237
2326
  @start_time = args[:start_time] if args.key?(:start_time)
2238
2327
  @timeout = args[:timeout] if args.key?(:timeout)
@@ -2324,10 +2413,8 @@ module Google
2324
2413
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Volume>]
2325
2414
  attr_accessor :volumes
2326
2415
 
2327
- # VPC Access settings. For more information on creating a VPC Connector, visit
2328
- # https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
2329
- # information on how to configure Cloud Run with an existing VPC Connector,
2330
- # visit https://cloud.google.com/run/docs/configuring/connecting-vpc
2416
+ # VPC Access settings. For more information on sending traffic to a VPC network,
2417
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
2331
2418
  # Corresponds to the JSON property `vpcAccess`
2332
2419
  # @return [Google::Apis::RunV2::GoogleCloudRunV2VpcAccess]
2333
2420
  attr_accessor :vpc_access
@@ -2546,15 +2633,15 @@ module Google
2546
2633
  end
2547
2634
  end
2548
2635
 
2549
- # VPC Access settings. For more information on creating a VPC Connector, visit
2550
- # https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
2551
- # information on how to configure Cloud Run with an existing VPC Connector,
2552
- # visit https://cloud.google.com/run/docs/configuring/connecting-vpc
2636
+ # VPC Access settings. For more information on sending traffic to a VPC network,
2637
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
2553
2638
  class GoogleCloudRunV2VpcAccess
2554
2639
  include Google::Apis::Core::Hashable
2555
2640
 
2556
2641
  # VPC Access connector name. Format: projects/`project`/locations/`location`/
2557
- # connectors/`connector`, where `project` can be project id or number.
2642
+ # connectors/`connector`, where `project` can be project id or number. For more
2643
+ # information on sending traffic to a VPC network via a connector, visit https://
2644
+ # cloud.google.com/run/docs/configuring/vpc-connectors.
2558
2645
  # Corresponds to the JSON property `connector`
2559
2646
  # @return [String]
2560
2647
  attr_accessor :connector
@@ -2565,7 +2652,8 @@ module Google
2565
2652
  # @return [String]
2566
2653
  attr_accessor :egress
2567
2654
 
2568
- # VPC network to access to. Currently only single network interface is supported.
2655
+ # Direct VPC egress settings. Currently only single network interface is
2656
+ # supported.
2569
2657
  # Corresponds to the JSON property `networkInterfaces`
2570
2658
  # @return [Array<Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface>]
2571
2659
  attr_accessor :network_interfaces
@@ -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.47.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230910"
25
+ REVISION = "20230924"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class GoogleCloudRunV2ContainerOverride
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class GoogleCloudRunV2ContainerPort
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -154,6 +160,12 @@ module Google
154
160
  include Google::Apis::Core::JsonObjectSupport
155
161
  end
156
162
 
163
+ class GoogleCloudRunV2Overrides
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
157
169
  class GoogleCloudRunV2Probe
158
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
171
 
@@ -407,6 +419,17 @@ module Google
407
419
  end
408
420
  end
409
421
 
422
+ class GoogleCloudRunV2ContainerOverride
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ collection :args, as: 'args'
426
+ property :clear_args, as: 'clearArgs'
427
+ collection :env, as: 'env', class: Google::Apis::RunV2::GoogleCloudRunV2EnvVar, decorator: Google::Apis::RunV2::GoogleCloudRunV2EnvVar::Representation
428
+
429
+ property :name, as: 'name'
430
+ end
431
+ end
432
+
410
433
  class GoogleCloudRunV2ContainerPort
411
434
  # @private
412
435
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -612,6 +635,16 @@ module Google
612
635
  end
613
636
  end
614
637
 
638
+ class GoogleCloudRunV2Overrides
639
+ # @private
640
+ class Representation < Google::Apis::Core::JsonRepresentation
641
+ collection :container_overrides, as: 'containerOverrides', class: Google::Apis::RunV2::GoogleCloudRunV2ContainerOverride, decorator: Google::Apis::RunV2::GoogleCloudRunV2ContainerOverride::Representation
642
+
643
+ property :task_count, as: 'taskCount'
644
+ property :timeout, as: 'timeout'
645
+ end
646
+ end
647
+
615
648
  class GoogleCloudRunV2Probe
616
649
  # @private
617
650
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -712,6 +745,8 @@ module Google
712
745
  # @private
713
746
  class Representation < Google::Apis::Core::JsonRepresentation
714
747
  property :etag, as: 'etag'
748
+ property :overrides, as: 'overrides', class: Google::Apis::RunV2::GoogleCloudRunV2Overrides, decorator: Google::Apis::RunV2::GoogleCloudRunV2Overrides::Representation
749
+
715
750
  property :validate_only, as: 'validateOnly'
716
751
  end
717
752
  end
@@ -813,6 +848,7 @@ module Google
813
848
  property :reconciling, as: 'reconciling'
814
849
  property :retried, as: 'retried'
815
850
  property :satisfies_pzs, as: 'satisfiesPzs'
851
+ property :scheduled_time, as: 'scheduledTime'
816
852
  property :service_account, as: 'serviceAccount'
817
853
  property :start_time, as: 'startTime'
818
854
  property :timeout, as: 'timeout'
@@ -402,9 +402,9 @@ module Google
402
402
 
403
403
  # Cancels an Execution.
404
404
  # @param [String] name
405
- # Required. The name of the Execution to cancel. Format: projects/`project`/
406
- # locations/`location`/jobs/`job`/executions/`execution`, where `project` can be
407
- # project id or number.
405
+ # Required. The name of the Execution to cancel. Format: `projects/`project`/
406
+ # locations/`location`/jobs/`job`/executions/`execution``, where ``project`` can
407
+ # be project id or number.
408
408
  # @param [Google::Apis::RunV2::GoogleCloudRunV2CancelExecutionRequest] google_cloud_run_v2_cancel_execution_request_object
409
409
  # @param [String] fields
410
410
  # Selector specifying which fields to include in a partial response.
@@ -437,9 +437,9 @@ module Google
437
437
 
438
438
  # Deletes an Execution.
439
439
  # @param [String] name
440
- # Required. The name of the Execution to delete. Format: projects/`project`/
441
- # locations/`location`/jobs/`job`/executions/`execution`, where `project` can be
442
- # project id or number.
440
+ # Required. The name of the Execution to delete. Format: `projects/`project`/
441
+ # locations/`location`/jobs/`job`/executions/`execution``, where ``project`` can
442
+ # be project id or number.
443
443
  # @param [String] etag
444
444
  # A system-generated fingerprint for this version of the resource. This may be
445
445
  # used to detect modification conflict during updates.
@@ -477,9 +477,9 @@ module Google
477
477
 
478
478
  # Gets information about an Execution.
479
479
  # @param [String] name
480
- # Required. The full name of the Execution. Format: projects/`project`/locations/
481
- # `location`/jobs/`job`/executions/`execution`, where `project` can be project
482
- # id or number.
480
+ # Required. The full name of the Execution. Format: `projects/`project`/
481
+ # locations/`location`/jobs/`job`/executions/`execution``, where ``project`` can
482
+ # be project id or number.
483
483
  # @param [String] fields
484
484
  # Selector specifying which fields to include in a partial response.
485
485
  # @param [String] quota_user
@@ -510,9 +510,9 @@ module Google
510
510
  # Lists Executions from a Job.
511
511
  # @param [String] parent
512
512
  # Required. The Execution from which the Executions should be listed. To list
513
- # all Executions across Jobs, use "-" instead of Job name. Format: projects/`
514
- # project`/locations/`location`/jobs/`job`, where `project` can be project id or
515
- # number.
513
+ # all Executions across Jobs, use "-" instead of Job name. Format: `projects/`
514
+ # project`/locations/`location`/jobs/`job``, where ``project`` can be project id
515
+ # or number.
516
516
  # @param [Fixnum] page_size
517
517
  # Maximum number of Executions to return in this call.
518
518
  # @param [String] page_token
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-run_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.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: 2023-09-17 00:00:00.000000000 Z
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
63
63
  post_install_message:
64
64
  rdoc_options: []