Skip to content

Commit c31ce9e

Browse files
feat: update gapic-common dependency to 1.3 and document retry jitter (#32252)
* docs: update SelectiveGapicGeneration usage doc PiperOrigin-RevId: 892649773 Source-Link: googleapis/googleapis@06a20b2 Source-Link: googleapis/googleapis-gen@d9ae664 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiZDlhZTY2NDUxZjgxYzlkZjk5ZGJkYzliMjNiZDc1ZDAwNzM4MGY0ZSJ9 feat: publish client batch config schema feat: publish new error reasons docs: fix documentation formatting docs: update various comments docs: update license year PiperOrigin-RevId: 889289393 Source-Link: googleapis/googleapis@94bc991 Source-Link: googleapis/googleapis-gen@db7143a Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiZGI3MTQzYTMzOGE3Yzc1ODM5YjQ2OThjYjNlYTZmMTAxM2I0YzNjNyJ9 docs: An existing repeated string field custom_audiences is marked deprecated for WorkerPools API PiperOrigin-RevId: 886276550 Source-Link: googleapis/googleapis@c063f49 Source-Link: googleapis/googleapis-gen@1adb05f Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiMWFkYjA1ZmU4NDU3YjQ4NzlkZGU2ODhjMjZiMGZlMGFjYTU2NTQ3OSJ9 feat: Add irb as explicit dependency for Ruby 4.0 compatibility PiperOrigin-RevId: 885280435 Source-Link: googleapis/googleapis@f29d228 Source-Link: googleapis/googleapis-gen@fca7136 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiZmNhNzEzNmMxYzBhYTkwMGNhNGZhMGE0YmExNGYxYWViMjliMGJmZCJ9 feat: Update minimum Ruby to v3.2 and required dependencies for Ruby v4.0 PiperOrigin-RevId: 883373063 Source-Link: googleapis/googleapis@e1443bf Source-Link: googleapis/googleapis-gen@8ecc70c Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiOGVjYzcwYzI5MjJjZmM0NjQ5YTA0NTRiYzhkMmUxZjNhNThhOWQ3OCJ9 feat: upgrade protobuf from v25.7 to v31.0 PiperOrigin-RevId: 881595129 Source-Link: googleapis/googleapis@d90d23f Source-Link: googleapis/googleapis-gen@f1a9443 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiZjFhOTQ0MzM2NjRmODY1MGE0YWNiNzNkNjA5Yjk0M2QyZWNiYjZlMCJ9 feat: add instances client library docs: add instances description PiperOrigin-RevId: 856756379 Source-Link: googleapis/googleapis@a79ccb6 Source-Link: googleapis/googleapis-gen@fc9fbef Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiZmM5ZmJlZmI3NGE0MmJjYThiMDc4MDIwNWI1YTYyNWNmMjRkNWIwZSJ9 chore: update copyright year for auto-generated protos PiperOrigin-RevId: 855295338 Source-Link: googleapis/googleapis@1e3baa9 Source-Link: googleapis/googleapis-gen@3dd13c3 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiM2RkMTNjM2E3ZjAwZGNjYTM0OWEzNjRlMmQ5NjBlODZjZmRmMWEzMSJ9 feat: add custom prompt config in the request and return prompt in the response feat: update min_speaker_count and max_speaker_count to be optional docs: Clarify that min_speaker_count and max_speaker_count in SpeakerDiarizationConfig are not currently used docs: Update guidance on how to enable speaker diarization; to enable, set the diarization_config field to an empty SpeakerDiarizationConfig message PiperOrigin-RevId: 852383212 Source-Link: googleapis/googleapis@1a14153 Source-Link: googleapis/googleapis-gen@c84243c Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiYzg0MjQzY2FhMTFjN2ZjODkwNTZlMGJkMDdiNGM0YzZhZWEwNTEwYiJ9 feat: add SourceCode proto to Run container config docs: A comment for field `etag` in message `.google.cloud.run.v2.Job` is changed docs: A comment for field `limits` in message `.google.cloud.run.v2.ResourceRequirements` is changed docs: A comment for field `items` in message `.google.cloud.run.v2.SecretVolumeSource` is changed docs: A comment for field `name` in message `.google.cloud.run.v2.Service` is changed docs: A comment for field `invoker_iam_disabled` in message `.google.cloud.run.v2.Service` is changed docs: A comment for field `etag` in message `.google.cloud.run.v2.Service` is changed docs: A comment for field `observed_generation` in message `.google.cloud.run.v2.WorkerPool` is changed docs: A comment for field `latest_ready_revision` in message `.google.cloud.run.v2.WorkerPool` is changed docs: A comment for field `custom_audiences` in message `.google.cloud.run.v2.WorkerPool` is changed docs: A comment for field `reconciling` in message `.google.cloud.run.v2.WorkerPool` is changed docs: A comment for field `etag` in message `.google.cloud.run.v2.WorkerPool` is changed PiperOrigin-RevId: 840919560 Source-Link: googleapis/googleapis@d534d01 Source-Link: googleapis/googleapis-gen@2382e28 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiMjM4MmUyODg5ZjFjYmI3MTEwNzMzMmNiOGYzODM0YmY0YmQzMGEzOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: update gapic-common dependency to 1.3 and document retry jitter docs: list Ruby 3.2+ as supported versions in README fix: rename client variable in tests PiperOrigin-RevId: 930120621 Source-Link: googleapis/googleapis@f7b1717 Source-Link: googleapis/googleapis-gen@e38df62 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLXJ1bi12Mi8uT3dsQm90LnlhbWwiLCJoIjoiZTM4ZGY2Mjg1ZDkxOThmZTY5MWU2ZDhiNTNlNzZmYjUxY2RkZjVjYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2d6d0c5 commit c31ce9e

102 files changed

Lines changed: 8304 additions & 1083 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google-cloud-run-v2/.owlbot-manifest.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"lib/google/cloud/run/v2/builds/rest/client.rb",
2626
"lib/google/cloud/run/v2/builds/rest/service_stub.rb",
2727
"lib/google/cloud/run/v2/condition_pb.rb",
28+
"lib/google/cloud/run/v2/container_status_pb.rb",
2829
"lib/google/cloud/run/v2/execution_pb.rb",
2930
"lib/google/cloud/run/v2/execution_services_pb.rb",
3031
"lib/google/cloud/run/v2/execution_template_pb.rb",
@@ -37,7 +38,18 @@
3738
"lib/google/cloud/run/v2/executions/rest/client.rb",
3839
"lib/google/cloud/run/v2/executions/rest/operations.rb",
3940
"lib/google/cloud/run/v2/executions/rest/service_stub.rb",
41+
"lib/google/cloud/run/v2/instance_pb.rb",
42+
"lib/google/cloud/run/v2/instance_services_pb.rb",
4043
"lib/google/cloud/run/v2/instance_split_pb.rb",
44+
"lib/google/cloud/run/v2/instances.rb",
45+
"lib/google/cloud/run/v2/instances/client.rb",
46+
"lib/google/cloud/run/v2/instances/credentials.rb",
47+
"lib/google/cloud/run/v2/instances/operations.rb",
48+
"lib/google/cloud/run/v2/instances/paths.rb",
49+
"lib/google/cloud/run/v2/instances/rest.rb",
50+
"lib/google/cloud/run/v2/instances/rest/client.rb",
51+
"lib/google/cloud/run/v2/instances/rest/operations.rb",
52+
"lib/google/cloud/run/v2/instances/rest/service_stub.rb",
4153
"lib/google/cloud/run/v2/job_pb.rb",
4254
"lib/google/cloud/run/v2/job_services_pb.rb",
4355
"lib/google/cloud/run/v2/jobs.rb",
@@ -108,8 +120,10 @@
108120
"proto_docs/google/api/routing.rb",
109121
"proto_docs/google/cloud/run/v2/build.rb",
110122
"proto_docs/google/cloud/run/v2/condition.rb",
123+
"proto_docs/google/cloud/run/v2/container_status.rb",
111124
"proto_docs/google/cloud/run/v2/execution.rb",
112125
"proto_docs/google/cloud/run/v2/execution_template.rb",
126+
"proto_docs/google/cloud/run/v2/instance.rb",
113127
"proto_docs/google/cloud/run/v2/instance_split.rb",
114128
"proto_docs/google/cloud/run/v2/job.rb",
115129
"proto_docs/google/cloud/run/v2/k8s.min.rb",
@@ -140,6 +154,12 @@
140154
"snippets/executions/delete_execution.rb",
141155
"snippets/executions/get_execution.rb",
142156
"snippets/executions/list_executions.rb",
157+
"snippets/instances/create_instance.rb",
158+
"snippets/instances/delete_instance.rb",
159+
"snippets/instances/get_instance.rb",
160+
"snippets/instances/list_instances.rb",
161+
"snippets/instances/start_instance.rb",
162+
"snippets/instances/stop_instance.rb",
143163
"snippets/jobs/create_job.rb",
144164
"snippets/jobs/delete_job.rb",
145165
"snippets/jobs/get_iam_policy.rb",
@@ -178,6 +198,10 @@
178198
"test/google/cloud/run/v2/executions_paths_test.rb",
179199
"test/google/cloud/run/v2/executions_rest_test.rb",
180200
"test/google/cloud/run/v2/executions_test.rb",
201+
"test/google/cloud/run/v2/instances_operations_test.rb",
202+
"test/google/cloud/run/v2/instances_paths_test.rb",
203+
"test/google/cloud/run/v2/instances_rest_test.rb",
204+
"test/google/cloud/run/v2/instances_test.rb",
181205
"test/google/cloud/run/v2/jobs_operations_test.rb",
182206
"test/google/cloud/run/v2/jobs_paths_test.rb",
183207
"test/google/cloud/run/v2/jobs_rest_test.rb",

google-cloud-run-v2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
8686

8787
## Supported Ruby Versions
8888

89-
This library is supported on Ruby 3.0+.
89+
This library is supported on Ruby 3.2+.
9090

9191
Google provides official support for Ruby versions that are actively supported
9292
by Ruby Core—that is, Ruby versions that are either in normal maintenance or

google-cloud-run-v2/gapic_metadata.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,45 @@
4848
}
4949
}
5050
},
51+
"Instances": {
52+
"clients": {
53+
"grpc": {
54+
"libraryClient": "::Google::Cloud::Run::V2::Instances::Client",
55+
"rpcs": {
56+
"CreateInstance": {
57+
"methods": [
58+
"create_instance"
59+
]
60+
},
61+
"DeleteInstance": {
62+
"methods": [
63+
"delete_instance"
64+
]
65+
},
66+
"GetInstance": {
67+
"methods": [
68+
"get_instance"
69+
]
70+
},
71+
"ListInstances": {
72+
"methods": [
73+
"list_instances"
74+
]
75+
},
76+
"StopInstance": {
77+
"methods": [
78+
"stop_instance"
79+
]
80+
},
81+
"StartInstance": {
82+
"methods": [
83+
"start_instance"
84+
]
85+
}
86+
}
87+
}
88+
}
89+
},
5190
"Jobs": {
5291
"clients": {
5392
"grpc": {

google-cloud-run-v2/google-cloud-run-v2.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
2323

2424
gem.required_ruby_version = ">= 3.2"
2525

26-
gem.add_dependency "gapic-common", "~> 1.2"
26+
gem.add_dependency "gapic-common", "~> 1.3"
2727
gem.add_dependency "google-cloud-errors", "~> 1.0"
2828
gem.add_dependency "google-cloud-location", "~> 1.0"
2929
gem.add_dependency "grpc-google-iam-v1", "~> 1.11"

google-cloud-run-v2/lib/google/cloud/run/v2.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
require "google/cloud/run/v2/builds"
2020
require "google/cloud/run/v2/executions"
21+
require "google/cloud/run/v2/instances"
2122
require "google/cloud/run/v2/jobs"
2223
require "google/cloud/run/v2/revisions"
2324
require "google/cloud/run/v2/services"

google-cloud-run-v2/lib/google/cloud/run/v2/build_pb.rb

Lines changed: 4 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-run-v2/lib/google/cloud/run/v2/builds/client.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def logger
212212
# @param options [::Gapic::CallOptions, ::Hash]
213213
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
214214
#
215-
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil)
215+
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil, machine_type: nil, release_track: nil, client: nil)
216216
# Pass arguments to `submit_build` via keyword arguments. Note that at
217217
# least one keyword argument is required. To specify no parameters, or to keep all
218218
# the default parameter values, pass an empty Hash as a request object (see above).
@@ -246,6 +246,14 @@ def logger
246246
# worker pool.
247247
# @param tags [::Array<::String>]
248248
# Optional. Additional tags to annotate the build.
249+
# @param machine_type [::String]
250+
# Optional. The machine type from default pool to use for the build. If left
251+
# blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
252+
# is supported. If worker_pool is set, this field will be ignored.
253+
# @param release_track [::Google::Api::LaunchStage]
254+
# Optional. The release track of the client that initiated the build request.
255+
# @param client [::String]
256+
# Optional. The client that initiated the build request.
249257
#
250258
# @yield [response, operation] Access the result along with the RPC operation
251259
# @yieldparam response [::Google::Cloud::Run::V2::SubmitBuildResponse]
@@ -407,6 +415,7 @@ def submit_build request, options = nil
407415
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
408416
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
409417
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
418+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
410419
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
411420
# trigger a retry.
412421
# @return [::Hash]
@@ -490,6 +499,7 @@ def channel_pool
490499
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
491500
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
492501
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
502+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
493503
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
494504
# trigger a retry.
495505
#

google-cloud-run-v2/lib/google/cloud/run/v2/builds/rest/client.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def logger
205205
# @param options [::Gapic::CallOptions, ::Hash]
206206
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
207207
#
208-
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil)
208+
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil, machine_type: nil, release_track: nil, client: nil)
209209
# Pass arguments to `submit_build` via keyword arguments. Note that at
210210
# least one keyword argument is required. To specify no parameters, or to keep all
211211
# the default parameter values, pass an empty Hash as a request object (see above).
@@ -239,6 +239,14 @@ def logger
239239
# worker pool.
240240
# @param tags [::Array<::String>]
241241
# Optional. Additional tags to annotate the build.
242+
# @param machine_type [::String]
243+
# Optional. The machine type from default pool to use for the build. If left
244+
# blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
245+
# is supported. If worker_pool is set, this field will be ignored.
246+
# @param release_track [::Google::Api::LaunchStage]
247+
# Optional. The release track of the client that initiated the build request.
248+
# @param client [::String]
249+
# Optional. The client that initiated the build request.
242250
# @yield [result, operation] Access the result along with the TransportOperation object
243251
# @yieldparam result [::Google::Cloud::Run::V2::SubmitBuildResponse]
244252
# @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -367,6 +375,7 @@ def submit_build request, options = nil
367375
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
368376
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
369377
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
378+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
370379
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
371380
# trigger a retry.
372381
# @return [::Hash]
@@ -439,6 +448,7 @@ def rpcs
439448
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
440449
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
441450
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
451+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
442452
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
443453
# trigger a retry.
444454
#

0 commit comments

Comments
 (0)