Skip to content

Commit fe23bed

Browse files
feat: Automated regeneration of run v2 client (#27213)
Auto-created at 2026-07-05 09:54:54 +0000 using the toys pull request generator.
1 parent 56227f3 commit fe23bed

5 files changed

Lines changed: 41 additions & 90 deletions

File tree

generated/google-apis-run_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-run_v2
22

3+
### v0.117.0 (2026-07-05)
4+
5+
* Regenerated from discovery document revision 20260619
6+
37
### v0.116.0 (2026-06-14)
48

59
* Regenerated from discovery document revision 20260603

generated/google-apis-run_v2/lib/google/apis/run_v2/classes.rb

Lines changed: 21 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,8 +1391,8 @@ class GoogleCloudRunV2Instance
13911391
# @return [String]
13921392
attr_accessor :encryption_key_revocation_action
13931393

1394-
# If encryption_key_revocation_action is SHUTDOWN, the duration before shutting
1395-
# down all instances. The minimum increment is 1 hour.
1394+
# If `encryption_key_revocation_action` is `SHUTDOWN`, the duration before
1395+
# shutting down all instances. The minimum increment is 1 hour.
13961396
# Corresponds to the JSON property `encryptionKeyShutdownDuration`
13971397
# @return [String]
13981398
attr_accessor :encryption_key_shutdown_duration
@@ -1410,9 +1410,9 @@ class GoogleCloudRunV2Instance
14101410
attr_accessor :expire_time
14111411

14121412
# Output only. A number that monotonically increases every time the user
1413-
# modifies the desired state. Please note that unlike v1, this is an int64 value.
1414-
# As with most Google APIs, its JSON representation will be a `string` instead
1415-
# of an `integer`.
1413+
# modifies the desired state. Please note that unlike v1, this is an `int64`
1414+
# value. As with most Google APIs, its JSON representation will be a `string`
1415+
# instead of an `integer`.
14161416
# Corresponds to the JSON property `generation`
14171417
# @return [Fixnum]
14181418
attr_accessor :generation
@@ -1430,13 +1430,13 @@ class GoogleCloudRunV2Instance
14301430
alias_method :iap_enabled?, :iap_enabled
14311431

14321432
# Optional. Provides the ingress settings for this Instance. On output, returns
1433-
# the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
1434-
# revision is active.
1433+
# the currently observed ingress settings, or `INGRESS_TRAFFIC_UNSPECIFIED` if
1434+
# no revision is active.
14351435
# Corresponds to the JSON property `ingress`
14361436
# @return [String]
14371437
attr_accessor :ingress
14381438

1439-
# Optional. Disables IAM permission check for run.routes.invoke for callers of
1439+
# Optional. Disables IAM permission check for `run.routes.invoke` for callers of
14401440
# this Instance. For more information, visit https://cloud.google.com/run/docs/
14411441
# securing/managing-access#invoker_check.
14421442
# Corresponds to the JSON property `invokerIamDisabled`
@@ -1456,11 +1456,11 @@ class GoogleCloudRunV2Instance
14561456

14571457
# The launch stage as defined by [Google Cloud Platform Launch Stages](https://
14581458
# cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and
1459-
# `GA`. If no value is specified, GA is assumed. Set the launch stage to a
1459+
# `GA`. If no value is specified, `GA` is assumed. Set the launch stage to a
14601460
# preview stage on input to allow use of preview features in that stage. On read
14611461
# (or output), describes whether the resource uses preview features. For example,
1462-
# if ALPHA is provided as input, but only BETA and GA-level features are used,
1463-
# this field will be BETA on output.
1462+
# if `ALPHA` is provided as input, but only `BETA` and `GA`-level features are
1463+
# used, this field will be `BETA` on output.
14641464
# Corresponds to the JSON property `launchStage`
14651465
# @return [String]
14661466
attr_accessor :launch_stage
@@ -1470,10 +1470,9 @@ class GoogleCloudRunV2Instance
14701470
# @return [String]
14711471
attr_accessor :log_uri
14721472

1473-
# The fully qualified name of this Instance. In CreateInstanceRequest, this
1474-
# field is ignored, and instead composed from CreateInstanceRequest.parent and
1475-
# CreateInstanceRequest.instance_id. Format: projects/`project`/locations/`
1476-
# location`/instances/`instance_id`
1473+
# The fully qualified name of this Instance. In `CreateInstanceRequest`, this
1474+
# field is ignored, and instead composed from `CreateInstanceRequest.parent` and
1475+
# `CreateInstanceRequest.instance_id`.
14771476
# Corresponds to the JSON property `name`
14781477
# @return [String]
14791478
attr_accessor :name
@@ -1485,20 +1484,20 @@ class GoogleCloudRunV2Instance
14851484

14861485
# Output only. The generation of this Instance currently serving traffic. See
14871486
# comments in `reconciling` for additional information on reconciliation process
1488-
# in Cloud Run. Please note that unlike v1, this is an int64 value. As with most
1489-
# Google APIs, its JSON representation will be a `string` instead of an `integer`
1490-
# .
1487+
# in Cloud Run. Please note that unlike v1, this is an `int64` value. As with
1488+
# most Google APIs, its JSON representation will be a `string` instead of an `
1489+
# integer`.
14911490
# Corresponds to the JSON property `observedGeneration`
14921491
# @return [Fixnum]
14931492
attr_accessor :observed_generation
14941493

1495-
# Output only. Returns true if the Instance is currently being acted upon by the
1496-
# system to bring it into the desired state. When a new Instance is created, or
1497-
# an existing one is updated, Cloud Run will asynchronously perform all
1494+
# Output only. Returns `true` if the Instance is currently being acted upon by
1495+
# the system to bring it into the desired state. When a new Instance is created,
1496+
# or an existing one is updated, Cloud Run will asynchronously perform all
14981497
# necessary steps to bring the Instance to the desired serving state. This
14991498
# process is called reconciliation. While reconciliation is in process, `
15001499
# observed_generation` will have a transient value that might mismatch the
1501-
# intended state. Once reconciliation is over (and this field is false), there
1500+
# intended state. Once reconciliation is over (and this field is `false`), there
15021501
# are two possible outcomes: reconciliation succeeded and the serving state
15031502
# matches the Instance, or there was an error, and reconciliation failed. This
15041503
# state can be found in `terminal_condition.state`.
@@ -2507,11 +2506,6 @@ class GoogleCloudRunV2Revision
25072506
attr_accessor :reconciling
25082507
alias_method :reconciling?, :reconciling
25092508

2510-
# Configuration for sandboxes.
2511-
# Corresponds to the JSON property `sandboxes`
2512-
# @return [Google::Apis::RunV2::GoogleCloudRunV2SandboxConfiguration]
2513-
attr_accessor :sandboxes
2514-
25152509
# Output only. Reserved for future use.
25162510
# Corresponds to the JSON property `satisfiesPzs`
25172511
# @return [Boolean]
@@ -2610,7 +2604,6 @@ def update!(**args)
26102604
@node_selector = args[:node_selector] if args.key?(:node_selector)
26112605
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
26122606
@reconciling = args[:reconciling] if args.key?(:reconciling)
2613-
@sandboxes = args[:sandboxes] if args.key?(:sandboxes)
26142607
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
26152608
@scaling = args[:scaling] if args.key?(:scaling)
26162609
@scaling_status = args[:scaling_status] if args.key?(:scaling_status)
@@ -2788,11 +2781,6 @@ class GoogleCloudRunV2RevisionTemplate
27882781
# @return [String]
27892782
attr_accessor :revision
27902783

2791-
# Configuration for sandboxes.
2792-
# Corresponds to the JSON property `sandboxes`
2793-
# @return [Google::Apis::RunV2::GoogleCloudRunV2SandboxConfiguration]
2794-
attr_accessor :sandboxes
2795-
27962784
# Settings for revision-level scaling settings.
27972785
# Corresponds to the JSON property `scaling`
27982786
# @return [Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling]
@@ -2854,7 +2842,6 @@ def update!(**args)
28542842
@max_instance_request_concurrency = args[:max_instance_request_concurrency] if args.key?(:max_instance_request_concurrency)
28552843
@node_selector = args[:node_selector] if args.key?(:node_selector)
28562844
@revision = args[:revision] if args.key?(:revision)
2857-
@sandboxes = args[:sandboxes] if args.key?(:sandboxes)
28582845
@scaling = args[:scaling] if args.key?(:scaling)
28592846
@service_account = args[:service_account] if args.key?(:service_account)
28602847
@service_mesh = args[:service_mesh] if args.key?(:service_mesh)
@@ -2899,25 +2886,6 @@ def update!(**args)
28992886
end
29002887
end
29012888

2902-
# Configuration for sandboxes.
2903-
class GoogleCloudRunV2SandboxConfiguration
2904-
include Google::Apis::Core::Hashable
2905-
2906-
# Required. Container templates that can be launched through the `sandbox` CLI.
2907-
# Corresponds to the JSON property `templates`
2908-
# @return [Array<Google::Apis::RunV2::GoogleCloudRunV2Container>]
2909-
attr_accessor :templates
2910-
2911-
def initialize(**args)
2912-
update!(**args)
2913-
end
2914-
2915-
# Update properties of this object
2916-
def update!(**args)
2917-
@templates = args[:templates] if args.key?(:templates)
2918-
end
2919-
end
2920-
29212889
# SecretEnvVarSource represents a source for the value of an EnvVar.
29222890
class GoogleCloudRunV2SecretKeySelector
29232891
include Google::Apis::Core::Hashable

generated/google-apis-run_v2/lib/google/apis/run_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RunV2
1818
# Version of the google-apis-run_v2 gem
19-
GEM_VERSION = "0.116.0"
19+
GEM_VERSION = "0.117.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.19.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260603"
25+
REVISION = "20260619"
2626
end
2727
end
2828
end

generated/google-apis-run_v2/lib/google/apis/run_v2/representations.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
334334
include Google::Apis::Core::JsonObjectSupport
335335
end
336336

337-
class GoogleCloudRunV2SandboxConfiguration
338-
class Representation < Google::Apis::Core::JsonRepresentation; end
339-
340-
include Google::Apis::Core::JsonObjectSupport
341-
end
342-
343337
class GoogleCloudRunV2SecretKeySelector
344338
class Representation < Google::Apis::Core::JsonRepresentation; end
345339

@@ -1466,8 +1460,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
14661460

14671461
property :observed_generation, :numeric_string => true, as: 'observedGeneration'
14681462
property :reconciling, as: 'reconciling'
1469-
property :sandboxes, as: 'sandboxes', class: Google::Apis::RunV2::GoogleCloudRunV2SandboxConfiguration, decorator: Google::Apis::RunV2::GoogleCloudRunV2SandboxConfiguration::Representation
1470-
14711463
property :satisfies_pzs, as: 'satisfiesPzs'
14721464
property :scaling, as: 'scaling', class: Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling, decorator: Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling::Representation
14731465

@@ -1524,8 +1516,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
15241516
property :node_selector, as: 'nodeSelector', class: Google::Apis::RunV2::GoogleCloudRunV2NodeSelector, decorator: Google::Apis::RunV2::GoogleCloudRunV2NodeSelector::Representation
15251517

15261518
property :revision, as: 'revision'
1527-
property :sandboxes, as: 'sandboxes', class: Google::Apis::RunV2::GoogleCloudRunV2SandboxConfiguration, decorator: Google::Apis::RunV2::GoogleCloudRunV2SandboxConfiguration::Representation
1528-
15291519
property :scaling, as: 'scaling', class: Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling, decorator: Google::Apis::RunV2::GoogleCloudRunV2RevisionScaling::Representation
15301520

15311521
property :service_account, as: 'serviceAccount'
@@ -1550,14 +1540,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
15501540
end
15511541
end
15521542

1553-
class GoogleCloudRunV2SandboxConfiguration
1554-
# @private
1555-
class Representation < Google::Apis::Core::JsonRepresentation
1556-
collection :templates, as: 'templates', class: Google::Apis::RunV2::GoogleCloudRunV2Container, decorator: Google::Apis::RunV2::GoogleCloudRunV2Container::Representation
1557-
1558-
end
1559-
end
1560-
15611543
class GoogleCloudRunV2SecretKeySelector
15621544
# @private
15631545
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-run_v2/lib/google/apis/run_v2/service.rb

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def submit_project_location_build(parent, google_cloud_run_v2_submit_build_reque
227227

228228
# Creates an Instance.
229229
# @param [String] parent
230+
# Required. The location and project in which this Instance should be created.
230231
# @param [Google::Apis::RunV2::GoogleCloudRunV2Instance] google_cloud_run_v2_instance_object
231232
# @param [String] instance_id
232233
# Optional. The unique identifier for the Instance. It must begin with letter,
@@ -267,8 +268,9 @@ def create_project_location_instance(parent, google_cloud_run_v2_instance_object
267268
execute_or_queue_command(command, &block)
268269
end
269270

270-
# Deletes a Instance
271+
# Deletes an Instance
271272
# @param [String] name
273+
# Required. The name of the Instance to delete.
272274
# @param [String] etag
273275
# Optional. A system-generated fingerprint for this version of the resource. May
274276
# be used to detect modification conflict during updates.
@@ -304,8 +306,9 @@ def delete_project_location_instance(name, etag: nil, validate_only: nil, fields
304306
execute_or_queue_command(command, &block)
305307
end
306308

307-
# Gets a Instance
309+
# Gets an Instance
308310
# @param [String] name
311+
# Required. The name of the Instance to retrieve.
309312
# @param [String] fields
310313
# Selector specifying which fields to include in a partial response.
311314
# @param [String] quota_user
@@ -380,8 +383,7 @@ def get_project_location_instance_iam_policy(resource, options_requested_policy_
380383

381384
# Lists Instances. Results are sorted by creation time, descending.
382385
# @param [String] parent
383-
# Required. The location and project to list resources on. Format: projects/`
384-
# project`/locations/`location`, where `project` can be project id or number.
386+
# Required. The location and project to list resources on.
385387
# @param [Fixnum] page_size
386388
# Optional. Maximum number of Instances to return in this call.
387389
# @param [String] page_token
@@ -422,15 +424,14 @@ def list_project_location_instances(parent, page_size: nil, page_token: nil, sho
422424

423425
# Updates an Instance.
424426
# @param [String] name
425-
# The fully qualified name of this Instance. In CreateInstanceRequest, this
426-
# field is ignored, and instead composed from CreateInstanceRequest.parent and
427-
# CreateInstanceRequest.instance_id. Format: projects/`project`/locations/`
428-
# location`/instances/`instance_id`
427+
# The fully qualified name of this Instance. In `CreateInstanceRequest`, this
428+
# field is ignored, and instead composed from `CreateInstanceRequest.parent` and
429+
# `CreateInstanceRequest.instance_id`.
429430
# @param [Google::Apis::RunV2::GoogleCloudRunV2Instance] google_cloud_run_v2_instance_object
430431
# @param [Boolean] allow_missing
431-
# Optional. If set to true, and if the Instance does not exist, it will create a
432-
# new one. The caller must have 'run.instances.create' permissions if this is
433-
# set to true and the Instance does not exist.
432+
# Optional. If set to `true`, and if the Instance does not exist, it will create
433+
# a new one. The caller must have `run.instances.create` permissions if this is
434+
# set to `true` and the Instance does not exist.
434435
# @param [String] update_mask
435436
# Optional. The list of fields to be updated.
436437
# @param [Boolean] validate_only
@@ -506,9 +507,7 @@ def set_project_location_instance_iam_policy(resource, google_iam_v1_set_iam_pol
506507

507508
# Starts an Instance.
508509
# @param [String] name
509-
# Required. The name of the Instance to stop. Format: `projects/`project`/
510-
# locations/`location`/instances/`instance``, where ``project`` can be project
511-
# id or number.
510+
# Required. The name of the Instance to start.
512511
# @param [Google::Apis::RunV2::GoogleCloudRunV2StartInstanceRequest] google_cloud_run_v2_start_instance_request_object
513512
# @param [String] fields
514513
# Selector specifying which fields to include in a partial response.
@@ -541,9 +540,7 @@ def start_project_location_instance(name, google_cloud_run_v2_start_instance_req
541540

542541
# Stops an Instance.
543542
# @param [String] name
544-
# Required. The name of the Instance to stop. Format: `projects/`project`/
545-
# locations/`location`/instances/`instance``, where ``project`` can be project
546-
# id or number.
543+
# Required. The name of the Instance to stop.
547544
# @param [Google::Apis::RunV2::GoogleCloudRunV2StopInstanceRequest] google_cloud_run_v2_stop_instance_request_object
548545
# @param [String] fields
549546
# Selector specifying which fields to include in a partial response.

0 commit comments

Comments
 (0)